[size=medium] 这个常用命令应该说是自己经常用的一些的总结吧,遇到了就加进来
1.重启:reboot
2.关机:shutdown -h now
3.查看Linux版本信息:cat /proc(内核文件)/version
4.创建一个文件:touch 文件名
5.将一个文件或目录隐藏:mv test .test
显示就倒过来:mv .test test
查看隐藏文件:ls -a
6.删除目录:rm -r 目录名
7.查看进程信息:ps -ef
8.防火墙操作
chkconfig iptables --list //查看防火墙状态
chkconfig iptables on // 开
chkconfig iptables off //关
9.查看磁盘分区情况
[color=red] fdisk -l[/color]
10.查看磁盘使用情况
[color=red]df -h[/color]
11.查看当前路径
[color=red]pwd(print working directory)[/color][/size]
1.重启:reboot
2.关机:shutdown -h now
3.查看Linux版本信息:cat /proc(内核文件)/version
4.创建一个文件:touch 文件名
5.将一个文件或目录隐藏:mv test .test
显示就倒过来:mv .test test
查看隐藏文件:ls -a
6.删除目录:rm -r 目录名
7.查看进程信息:ps -ef
8.防火墙操作
chkconfig iptables --list //查看防火墙状态
chkconfig iptables on // 开
chkconfig iptables off //关
9.查看磁盘分区情况
[color=red] fdisk -l[/color]
10.查看磁盘使用情况
[color=red]df -h[/color]
11.查看当前路径
[color=red]pwd(print working directory)[/color][/size]