这里使用的是centos操作系统
history
基本命令 --help
tail -f test.txt
ps -aux | grep nginx
netstat -anp | grep 9501
ls -l等同于ll
kill -9 [进程id]
mkdir test
cd test
pwd
rm -rf test
cp [原文件或目录] [目标文件或目录]
mv [原文件或目录] [目标文件或目录] //加入都是在同一目录,则直接更改文件名称
zip [压缩文件名] [源目录]
upzip [压缩文件]
tar -zcvf [压缩名.tar.gz] [源文件]
tar -zxvf [压缩名.tar,gz]
shutdown [选项] //选项-h关机、-r重启 :
lastlog
vim test.php
ifconfig
wget [资源地址]
yum install [依赖包]
ctrl+l
原文:https://www.cnblogs.com/legendheng/p/9127586.html