gzip命令
-d 解压
-# 1 为最快 但容量问题 、 9为最好 、6为默认
gzip install.log
比较好理解,windows里面类似的,记住zip 和unzip是可以目录或者文件解压缩, -d 是解压到指定文件
vim和vi的区别目前只是知道颜色的不同
[root@localhost ~]# gz: tar -zcvf 1.tar.gz 111 222 ; tar -zxvf 1.tar.gz ^C
[root@localhost ~]# bzip2: tar -jcvf 1.tar.bz2 111 222 ; tar -jxcf 1.tar.bz2 ^C
[root@localhost ~]# xz: tar -Jcvf 1.tar.xz 111 222; tar -jxvf 1.tar.xz ^C
[root@localhost ~]# tar -tf 1.tar.gz 1.tar.bz2
[root@localhost ~]# rpm -q 包名 ^C
[root@localhost ~]# rpm -qa 查询所有安装过得包 ^C
[root@localhost ~]# rpm -qi 包名 查询包的信息 ^C
[root@localhost ~]# rpm -ql 包名 列出该包所安装的文件列表 ^C
[root@localhost ~]# rpm -qf 文件的绝对路径 ^C
错误提示
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
Error: Cannot find a valid baseurl for repo: dvd