我正在尝试压缩文件,但我使用其他用户
假设这里有两个用户,用户 1“test1”和用户 2“test2”
我以用户 2“test2”的身份登录
然后,我想压缩用户目录“test1”中的文件
"/Home/test1/Downloads/repos/"
我已经运行了命令
$ Tar -zcvf $HOME/backup_file.tar.gz /home/test1/Downloads/repos/
压缩过程出错时
tar : Exiting with failure status due to previous errors
我已经尝试了下面链接的方式,但仍然错误
tar Exiting with failure status due to previous errors
非常感谢您的帮助和解决方案
最佳答案
压缩的原始文件夹由 创建。根权限,以及您对 的实现 tar 也许没有须藤
关于ubuntu - 用 tar 压缩,tar : Exiting with failure status due to previous errors,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35568688/