Linux基本命令

关闭与重启

关闭

shutdown –h now

shutdown –h 45

halt

init 0

重启

shutdown –r now “system will be reboot now.”

reboot

init 6

目录管理

cd

ls(更多用ll)

mkdir

文件管理

touch 建文件;更新文件目录时间

cat/tac/more/less/ 查看文件

tail –f xx.log 跟踪查看日志文件

目录文件管理

cp 复制;备份

mv 移动;重命名

rm