xltfes 最近的时间轴更新
xltfes

xltfes

V2EX 第 502765 号会员,加入于 2020-08-07 14:29:38 +08:00
慢出 oculus rift s
二手交易  •  xltfes  •  2023-02-06 18:05:40 PM  •  最后回复来自 mrrobot97
1
tar 使用管道的困惑
Bash  •  xltfes  •  2021-03-07 15:05:24 PM  •  最后回复来自 julyclyde
9
在 shell 中替换 rm
Linux  •  xltfes  •  2021-03-12 11:58:11 AM  •  最后回复来自 KakuCicada
24
xltfes 最近回复了
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   ·   我们的愿景   ·   实用小工具   ·   5512 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 19ms · UTC 08:18 · PVG 16:18 · LAX 01:18 · JFK 04:18
Developed with CodeLauncher
♥ Do have faith in what you're doing.