Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
运行时,我得到一长串受只读保护的文件
rm -r trunk | yes
我正在尝试通过一个命令对所有人回答“是”。
你怎么能对所有问题都回答是?
你有它倒退,正确的方法是:
yes | rm -r trunk
但更好的命令是首先rm不要问你:
rm
rm -rf trunk