[[emailprotected] app]# bzip2 shell.txt #提示命令没有找到
-bash: bzip2: 未找到命令
[[emailprotected] app]# yum -y install bzip2 #安装bzip2命令
[[emailprotected] app]# ll -h#shell.txt文件141k
总用量 168K
-rw-r--r--. 1 root root 181 11月 22 17:34 99.sh
-rw-------. 1 root root 12K 11月 22 14:08 messages
-rw-r--r--. 1 root root 1.2K 11月 22 15:17 messages2.gz
-rw-r--r--. 1 root root 1.2K 11月 22 14:36 messages.gz
-rw-r--r--. 1 root root 141K 11月 23 10:17 shell.txt
[[emailprotected] app]# bzip2 shell.txt#提示命令没有找到
[[emailprotected] app]# ll -h#shell.txt压缩后由141k变为48k,原文件shell.txt没了
总用量 72K
-rw-r--r--. 1 root root 181 11月 22 17:34 99.sh
-rw-------. 1 root root 12K 11月 22 14:08 messages
-rw-r--r--. 1 root root 1.2K 11月 22 15:17 messages2.gz
-rw-r--r--. 1 root root 1.2K 11月 22 14:36 messages.gz
-rw-r--r--. 1 root root 48K 11月 23 10:17 shell.txt.bz2