linux 中gz文件解压的同时保留源文件

 

001、

[root@PC1 test01]# ls          ## 测试文件
a.txt.gz
[root@PC1 test01]# gzip -dc a.txt.gz > a.txt    ## 解压,同时保留源文件
[root@PC1 test01]# ls
a.txt  a.txt.gz
[root@PC1 test01]# cat a.txt
1
2
3
4
5
6
7
8
9
10

。 

 

posted @ 2023-07-15 20:53  小鲨鱼2018  阅读(172)  评论(0编辑  收藏  举报