1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| date -d@1234567890
> file.txt
du -s * | sort -n | tail
ps aux | sort -nk +4 | tail
ssh user@host cat /path/to/remotefile | diff /path/to/localfile -
!!
$mkdir mydir $mv mydir yourdir $cd yourdir 可以改成: $mkdir mydir $mv !$ yourdir $cd !$
cd -
cd ~
esc+.
find /home/htdocs/ -name ‘*.php’ -exec grep -i “answerPostTime!=0″ {} \; -print
du -b –max-depth 1 | sort -nr | perl -pe ‘s{([0-9]+)}{sprintf “%.1f%s”, $1>=2**30? ($1/2**30, “G”): $1>=2**20? ($1/2**20, “M”): $1>=2**10? ($1/2**10, “K”): ($1, “”)}e’ du -sbh * ls -lh
watch -n 1 “(echo status; sleep 0.1) | nc 127.0.0.1 4730″
|
v1.4.14