shell的重定向
輸出重定向
將命令的輸出結果輸出到一個指定文件
ps -ef >ps.txt
錯誤重定向
tar zxvf text.tar.gz 2> error.txt
shell管道
管道就是把一個命令的輸出看成下一個命令的輸入,而不通過任何中間文件
ps -ef|grep httpd|wc -1 查看系統中正在運行的httpd進程,並統計httpd的進程數 ios
系統管理與維護
ls
pwd
cd
date
passwd
su
clear
man
who
w
uname
uptime
last
dmesg
free
ps
top
文件管理與編輯
mkdir
more
cat
diff
grep
rm
touch
ln
file
cp
find
split
mv
壓縮與解壓
zip/unzip
gzip/gunzip
bzip2/bunzip2
tar
dd
cpio
網絡設置與維護
ifconfig
scp
netstat
traceroute
telnet
wget
curl
文本編工具VIshell
軟件安裝與管理
源碼安裝方式
RPM包方式安裝
yum安裝方式
二進制軟件安裝方式網絡
內存管理
物理內存和虛擬內存
內存監控
交換空間的使用
查看進程佔用的內存
free
watch與free結合
vmstat
進程管理
ps監控進程
pstree監控進程
lso監控進程
pgrep監控進程與程序
kill終止進程
CPU評估
vmstat
sar
iostat
uptimecurl