linux常用命令

来源:互联网 发布:百度卫士软件管理 编辑:程序博客网 时间:2024/06/07 10:35
1、netstat -a  看网络的联机状态:
2、ifconfig     查看ip地址
3、pwd        查看用户
4、ping       查看网络是否联通
5、cd         进入目录
6、cd ../      返回上级目录
7、date       查看日期
8、cat         查看日历
9、kill  ( kill -9  2325 ,杀死进程号为2325的进程, 
        killall  programe1 ,杀死programe1进程 )
10、who      查看谁在线
11、 reboot (重启系统 )
12、init 0 ( 关机 ,仅 root 用户有权操作)
13、 init 6 (重启系统 ,仅 root 用户有权操作 )
14、gzip  ( gzip file1 ,压缩文件 file1 )
15、gunzip ( gunzipfile1.gz  解压缩文件 file1.gz )
16、shutdown -h now立刻关机
shutdown-h 21:30 今天21:30关机
shutdown -h +10 十分钟后关机
shutdown -r now 立刻重启
0 0
原创粉丝点击