查看CPU
cat /proc/cpuinfo
查看内存
free -m
查看当前进程
ps -aux
剩余空间
df -h
更新软件包数据库
apt-get update
安装screen
apt-get install screen
超级ping
http://ping.chinaz.com/
VPS端口测速
VPS上运行:wget http://cachefly.cachefly.net/100mb.test && rm -f 100mb.test
文件或目录打包
tar -cvf temp2.tar wwwroot
解包展开
tar -xvf /u0/temp2.tar
压缩:
compress /u0/temp2.tar压缩为/u0/temp2.tar.Z
解压:
uncompress /u0/temp2.tar.Z则还原为/u0/temp2.tar
tar.gz
解压:tar zxvf FileName.tar.gz
压缩:tar zcvf FileName.tar.gz
删除
rm -rf 名字
-r向下
-f强行
开启iptables
iptables -A INPUT -p icmp –icmp-type 8 -s 0/0 -j DROP
关闭
iptables -D INPUT -p icmp –icmp-type 8 -s 0/0 -j DROP
转载请注明:游隼 » linux debian命令记录