V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  xltfes  ›  全部回复第 1 页 / 共 1 页
回复总数  4
2021-03-05 09:43:22 +08:00
回复了 xltfes 创建的主题 Bash tar 使用管道的困惑
@polaa 手册居然还有不一样的,用的 tar 不一样么?
tar --version
tar (GNU tar) 1.29
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
2021-03-04 21:03:24 +08:00
回复了 xltfes 创建的主题 Linux 在 shell 中替换 rm
已经装了 trash-cli,不用脚本改了,看来不是一句命令可以解决的,还是要自己小心,感谢回复
2021-03-04 11:27:54 +08:00
回复了 xltfes 创建的主题 Linux 在 shell 中替换 rm
我一直觉得不用,直到昨天 rm -r ../*

测试了一下不好使,把 tar 改成 cp 了,但 tar 还是不明白
在( https://linuxpip.org/fix-directory-not-empty-mv/)的 method 2 看到的 tar 命令
(cd backup && tar c .) | (cd backupArchives && tar xf -)
想要"earn more geek points"
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5368 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 15ms · UTC 09:10 · PVG 17:10 · LAX 02:10 · JFK 05:10
Developed with CodeLauncher
♥ Do have faith in what you're doing.