(1) ls ls #查看当前目录下的文件 ls -l #列举出文件的详细信息 (2) shutdown shutdown now #立即关机 shutdown -r now #立即重启 (3) pwd pwd #显示当前目录 (4) 查看端口 netstat -lnp|grep 80 #查看80端口 (5) 查看进程 ps -aux | grep apache #查看apache相关进程