Linux 常用命令
存储相关
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| df -h
du -sh
du -h --time --max-depth=1 | sort -hr
find / -name *wine*
head -n 50 filePath
tail -n 50 filePath
|
进程相关
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| kill -s 9 PID
netstat -tunlp|grep 22
ps -ef|grep java
cd /proc/PID
pmap -d 1
ps -aux | sort -k4nr | head -10
|
系统参数
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| uname -a
getconf LONG_BIT
cat /proc/cpuinfo lscpu
iftop
hostnamectl set-hostname <hostname>
|
curl
1 2 3 4 5
| curl www.baidu.com
curl -o /dev/null -s -w %{time_namelookup}::%{time_connect}::%{time_starttransfer}::%{time_total}::%{speed_download}"\n" http://www.baidu.com
|