Linux的压缩打包实验报告.doc
文本预览下载声明
实验四
文件的压缩和打包
实验内容:
1.compress,压缩文件
2.gzip压缩、gunzip解压缩、zcat解压并输出到标准输出
3.tar打包
学号:520913080429
姓名:
专业:信息安全
compress,压缩文件
可能在某些Linux版本不支持
[root@localhost ~]# cd /tmp
[root@localhost tmp]# cp /etc/man.config .
[root@localhost tmp]# ls -l
总计 44
drwx 3 root root 4096 02-02 12:25 gconfd-root
srwxr-xr-x 1 root root 0 2011-09-16 gnome-system-monitor.root.344302126
drwx 2 root root 4096 02-02 12:25 keyring-jC3ek9
-rw-r--r-- 1 root root 4617 02-02 12:34 man.config
srwxr-xr-x 1 root root 0 02-02 12:25 mapping-root
drwx 2 root root 4096 02-02 12:33 orbit-root
-rw-r--r-- 1 root root 5 02-02 12:25 scim-bridge-0.3.0.lockfile-0@localhost:0.0
srwxr-xr-x 1 root root 0 02-02 12:25 scim-bridge-0.3.0.socket-0@localhost:0.0
srw 1 root root 0 02-02 12:25 scim-helper-manager-socket-root
srw 1 root root 0 02-02 12:25 scim-panel-socket:0-root
srw 1 root root 0 02-02 12:25 scim-socket-frontend-root
-rw-r--r-- 1 root root 194 02-02 12:25 sealert.log
drwx 2 root root 4096 02-02 12:25 ssh-EbNpQR4791
drwx 2 root root 4096 02-02 12:25 virtual-root.4c8XGh
drwx 2 root root 4096 02-02 12:25 vmware-root
[root@localhost tmp]# compress man.config
bash: compress: command not found
[root@localhost tmp]#
该命令无法再Redhat中运行
2.gzip压缩、gunzip解压缩、zcat解压并输出到标准输出
[root@localhost tmp]# gzip man.config
[root@localhost tmp]# zcat man.config.gz
#
# Generated automatically from man.conf.in by the
# configure script.
#
# man.conf from man-1.6d
#
# For more information about this file, see the man pages man(1)
# and man.conf(5).
#
# This file is read by man to configure the default manpath (also used
# when MANPATH contains an empty substring), to find out where the cat
# pages corresponding to given man pages should be stored,
# and to map each PATH element to a manpath element.
# It may also record the pathname of the man binary. [This is unused.]
# The format is:
#
# MANBIN pathname
# MANPATH manpath_element [corresponding_catdir]
# MANPATH_MAP path_element
显示全部