摘要: 参考:https://www.cnblogs.com/wf-linux/p/9488257.html diff的三种模式,normal, context(-c), unified(-u),后面两种模块可使结果看起来更直观些,就是加上参数-c , -u. 可自己实验下 一. 基本用法和例子 现在让我们 阅读全文
posted @ 2017-11-15 11:18 坚强的小蚂蚁 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: 一. 使用du命令进行大小排序 du -h --max-depth=1 | sort -hr 参数说明: --max-depth:表示要查看几层目录, 也可以用 -d 1表示查看1层目录 sort -r:反向显示 sort -h:compare human readable numbers (e.g 阅读全文
posted @ 2017-11-15 11:03 坚强的小蚂蚁 阅读(9988) 评论(0) 推荐(1) 编辑
摘要: 中文显示菱形乱码的一个解决方法: apt-get install zhcon zhcon --utf8 crtl + d 退出 安装中文支持:apt-get install `check-language-support -l zh-hans` 一. ubuntu修改字符编码 1. 添加字符编码,例 阅读全文
posted @ 2017-11-15 10:54 坚强的小蚂蚁 阅读(38443) 评论(0) 推荐(0) 编辑
摘要: 貌似只需要改红色的就行了,要保险就都改,比如阿里云服务器就要2个都改 ubuntu:修改 /etc/hostname 修改 /etc/hosts 比如:127.0.0.1 localhost calm centos: 修改 /etc/hosts 修改/etc/sysconfig/network 都需 阅读全文
posted @ 2017-11-15 10:00 坚强的小蚂蚁 阅读(724) 评论(0) 推荐(0) 编辑
摘要: 一. 基本方法:date -s "2018-09-02 04:23:45"clock -w 把时间写入cmos(一个RAM芯片) hwclock 查看硬件时间 hwclock -w :将系统时间写入硬件时间hwclock --hctosys: 将系统时间调整为和硬件时间一样hwclock --sys 阅读全文
posted @ 2017-11-15 09:41 坚强的小蚂蚁 阅读(5547) 评论(0) 推荐(0) 编辑