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 src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script> name="google_ads_frame" marginwidth="0" marginheight="0" src="http://pagead2.googlesyndication.com/pagead/ads?client=ca-pub-3366293608227832&dt=1135748847296&lmt=1135748847&format=468x60_as&output=html&url=http%3A%2F%2Fblog.youkuaiyun.com%2Ffckeditor%2Feditor%2Ffckeditor.html%3FInstanceName%3DEditor_Edit_FCKEditor%26Toolbar%3DDefault&color_bg=003366&color_text=AECCEB&color_link=FFFFFF&color_url=AECCEB&color_border=6699CC&ad_type=text_image&u_h=768&u_w=1024&u_ah=740&u_aw=1024&u_cd=16&u_tz=480&u_his=13&u_java=true" frameborder="0" width="468" scrolling="no" height="60" allowtransparency="65535">