ubuntu - 用 tar 压缩,tar : Exiting with failure status due to previous errors

标签 ubuntu command-line compression tar

我正在尝试压缩文件,但我使用其他用户

假设这里有两个用户,用户 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/

相关文章:

ubuntu - 编译错误不可读

适用于 Linux 的 Windows 资源编辑器

php - 如何在 php(ubuntu) 上模拟 on_script_close,就像 .net on_form_close 行为一样?

python - 远程 Jupyter Notebook + Docker -- 不更新文件目录?

java - 从命令行在 Java 代码中进行更高级别的语义搜索和替换

c# - 大字符串列表应该是不可能的

ios - 如何在swift 3中压缩数据?

c - 如何在 C 中哈希 CPU ID

json - 服务器返回 text/html header 而不是 application/json header

Git 别名链添加、提交、 pull 、推送?