Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to use yes -command to all questions when removing

Tags:

rm

I get a long list of read-only protected files when I run

rm -r trunk | yes 

I am trying to answer yes to all by one command.

How can you answer yes to all questions?

like image 754
Léo Léopold Hertz 준영 Avatar asked Apr 25 '09 22:04

Léo Léopold Hertz 준영


People also ask

Why can't I turn off two-factor authentication on my iPhone?

If you already use two-factor authentication, you can no longer turn it off. Certain features in the latest versions of iOS and macOS require this extra level of security, which is designed to protect your information. If you recently updated your account, you can unenroll within two weeks of enrollment.

How do I turn off two-factor authentication on Apple?

After you turn on two-factor authentication, you have a two-week period during which you can turn it off. After that period, you can't turn off two-factor authentication. To turn it off, open your confirmation email and click the link to return to your previous security settings.

How can I get Apple ID verification code without phone or trusted device?

If you use security questions with your Apple ID, or if you don't have access to a trusted device or phone number, go to iforgot.apple.com. Then you can unlock your account with your existing password or reset your password.


1 Answers

You have it backward, the correct way is:

yes | rm -r trunk 

But the better command would be to have rm not ask you in the first place with:

rm -rf trunk 
like image 65
AndrewF Avatar answered Sep 26 '22 01:09

AndrewF