What is the commmand used to remove or delete file with out - ProProfs Discuss
Advertisement

What is the commmand used to remove or delete file with out confirmation msg?

What is the commmand used to remove or delete file with out confirmation msg?<br/>

Change Image    Delete

Asked by Ranganath, Last updated: Dec 18, 2024

+ Answer
Request
Question menu
Vote up Vote down

2 Answers

RoseySoft

RoseySoft

RoseySoft
This question's answer is incorrect.

This is cut from the man page.

rm prompts the user for whether to remove
the file. If the response is not affirmative, the file is skipped.

--interactive[=WHEN]
prompt according to WHEN: never, once (-I), or always (-i);
without WHEN, prompt always
{ie.. rm --interactive=never }
You state that rm -f is incorrect.
The following is also cut and pasted from it's man page
-f, --force
ignore nonexistent files and arguments, never prompt
So according to it's own documentation states that rm prompts the user. rm -f forces rm to ignore all errors and arguments and to never prompt.

So if you leave the question the way it is the answer needs to be rm -f.

Also all the quesions are capitalized. Linux and unix alike are caps sensitive. That would make all the answers incorrect being that Mkdir and mkdir in the eyes of the OS are two different animals. If some one is learning they are learning the wrong way. Caps is extremely important in Linux unlike windows.

MAY THE CODE BE WITH YOU
upvote 1 downvote
Reply 

John Smith

John Smith

John Smith
John Smith

Answered Oct 19, 2016

Rm

rm this command removes/deleates the file which is not required,but it does not display confirmation message.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.