如何恢复 gzip 压缩的文件夹,例如被压缩为“文件”的folder.gz;
我有一个压缩的文件夹:
gzip -c filename > filename.gz
我知道这是错误的,因为我应该使用:
gzip -r directory
我现在有一个压缩文件夹,我的系统认为它是一个文件。当我尝试使用以下命令解压缩它时:
gzip -dr directory
它只是作为文件解压缩,而它应该是目录。
我刚刚损坏了这个文件夹还是有什么方法可以恢复这些数据?非常感谢任何帮助。
I have a folder which I compressed using:
gzip -c filename > filename.gz
I know this is wrong as I was supposed to use:
gzip -r directory
I now have a compressed folder which my system thinks is a file. When I try to unzip it using:
gzip -dr directory
it just uncompresses as a file when it should be a directory.
Have I just corrupted this folder or is there any way to recover this data? Any help greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论