gzip 识别.gz 后缀,把原来的文件改名再解压缩即可
例子:
[root@cqhdtest mnt]# file initramfs-2.6.32-431.el6.x86_64.img
initramfs-2.6.32-431.el6.x86_64.img: gzip compressed data, from Unix, last modified: Tue Apr 5 19:55:55 2016, max compression
[root@cqhdtest mnt]# gzip -d initramfs-2.6.32-431.el6.x86_64.img
gzip: initramfs-2.6.32-431.el6.x86_64.img: unknown suffix -- ignored
[root@cqhdtest mnt]# mv initramfs-2.6.32-431.el6.x86_64.img initramfs-2.6.32-431.el6.x86_64.img.gz
[root@cqhdtest mnt]# gzip -d initramfs-2.6.32-431.el6.x86_64.img
[root@cqhdtest mnt]# file initramfs-2.6.32-431.el6.x86_64.img
initramfs-2.6.32-431.el6.x86_64.img: ASCII cpio archive (SVR4 with no CRC)
本文转自biao007h51CTO博客,原文链接:http://blog.51cto.com/linzb/1763078 ,如需转载请自行联系原作者