LINUX常用命令

来源:互联网 发布:java高级工程师书籍 编辑:程序博客网 时间:2024/04/20 18:32

1。打包

tar cfz xiaoyouxi.tar.gz   xiaoyouxi(要打包的目录)

2。查看进程

  ps [选项]

  下面对命令选项进行说明:

  -e 显示所有进程。

  -f 全格式。

  -h 不显示标题。

  -l 长格式。

  -w 宽输出。

  a 显示终端上的所有进程,包括其他用户的进程。

  r 只显示正在运行的进程。

  x 显示没有控制终端的进程。

4。关闭进程

killall  -9   wget(要关闭的进程)

5。查看服务器状况

top

6。查看文件容量

du -sm 查看当前目录下的所有文件的容量

du -sm /opt  查看/opt这个目录的容量


<script type="text/javascript">&lt;!--google_ad_client = "pub-3366293608227832";google_ad_width = 468;google_ad_height = 60;google_ad_format = "468x60_as";google_ad_type = "text_image";google_ad_channel ="";google_color_border = "6699CC";google_color_bg = "003366";google_color_link = "FFFFFF";google_color_url = "AECCEB";google_color_text = "AECCEB";//--&gt;</script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script><iframe name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-3366293608227832&amp;dt=1135748847296&amp;lmt=1135748847&amp;format=468x60_as&amp;output=html&amp;url=http%3A%2F%2Fblog.csdn.net%2Ffckeditor%2Feditor%2Ffckeditor.html%3FInstanceName%3DEditor_Edit_FCKEditor%26Toolbar%3DDefault&amp;color_bg=003366&amp;color_text=AECCEB&amp;color_link=FFFFFF&amp;color_url=AECCEB&amp;color_border=6699CC&amp;ad_type=text_image&amp;u_h=768&amp;u_w=1024&amp;u_ah=740&amp;u_aw=1024&amp;u_cd=16&amp;u_tz=480&amp;u_his=13&amp;u_java=true" frameborder="0" width="468" scrolling="no" height="60" allowtransparency="65535"></iframe>