工作中常用命令

sed -n '21592,23591p'  log

perl -pi -e 's/str1/str2/g' log

prstat -s size -n 10

prstat -s cpu -n 10

ls -lR | sort -bn +4 (smallest to largest)

ls -lR | sort -bnr +4 (largest to smallest)

find . -name "*" -exec gzgrep "str" {} \;

find . -type f -mtime +3 -size +20480 -print

du -k . | sort -nr | head -20

df -h

/usr/ucb/ps auxwww

nohup ./program > log 2>&1 &

 

你可能感兴趣的:(工作中常用命令)