我下载了一个压缩的 tar 文件filename.tar.gz
,使用命令转换后,gunzip
它现在名为filename.tar-1
。这是什么-1
意思?
答案1
gunzip
如果您的别名为gunzip -N
并且原始文件名为 ,则会看到此行为filename-1
。举例来说:
$ ls
filename-1
$ gzip filename-1
$ mv filename-1.gz filename.gz
$ gunzip -Nv filename.gz
filename.gz: -0.5% -- replaced with filename-1
从man gunzip
:
-N --name
When compressing, always save the original file name and time
stamp; this is the default. When decompressing, restore the
original file name and time stamp if present. This option is
useful on systems which have a limit on file name length or when
the time stamp has been lost after a file transfer.