压缩
# compress:
compress -c demo > demo.Z
zcat demo.Z > demo
# gzip:
gzip -c demo > demo.gz
zcat demo.gz > demo
# bzip2:
bzip2 -k demo
bzip2 -k -d demo.bz2
# xz:(-k means keep the input files)
xz -k demo
xz -k -d demo.xz
# tar:
tar -czvf demo.tar demo
tar -xzvf demo.tar
磁盘
fdisk -l /dev/sda