一、硬件相关
hdparm -tT /dev/vda
badblocks -v /dev/hda1
二、文本处理
sed '/^$/d' example.txt
sed '/ *#/d; /^$/d' example.txt
echo 'esempio' | tr '[:lower:]' '[:upper:]'
sed -e '1d' result.txt
sed -n '/stringa1/p'
sed -e 's/ *$//' example.txt
sed -e 's/stringa1//g' example.txt
sed -n '1,5p;5q' example.txt
sed -n '5p;5q' example.txt
sed -e 's/00*/0/g' example.txt
cat example.txt | awk 'NR%2==1'
paste -d '+' file1 file2
sort file1 file2 | uniq
sort file1 file2 | uniq -u
sort file1 file2 | uniq -d
comm -1 file1 file2
comm -2 file1 file2
comm -3 file1 file2
tail+10 /etc/passwd
三、查找&备份
find /home/user1 -name '*.txt' | xargs cp -av --target-directory=/home/backup/ --parents
find /var/log -name '*.log' | tar cv --files-from=- | bzip2 > log.tar.bz2