what is the meaning of this command rm -rf /
what will it do ?
Answers were Sorted based on User's Feedback
Answer / chitra
rm -rf removes the directory recursively and also forcefully.
r stands for recursively
f stands for forcefully
The above command can also be used for removing a file.
| Is This Answer Correct ? | 25 Yes | 0 No |
Answer / monu verma
It will remove a directory including its subdirectories and
files
| Is This Answer Correct ? | 24 Yes | 0 No |
Answer / sailesh k
recursively forcely delete the objects even the subfolders
contains any files.
| Is This Answer Correct ? | 14 Yes | 0 No |
Answer / bharath kumar
this is used to delete the directoy even it is containing
files or sub folders.......
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / sricharan
It is a very good question for a fresher to tackle.
rm -rf
yes ofcourse r stands for recursively
f stands for forcefully
and this is used to remove normalfiles, tarfiles, zip files
etc..
One more important thing is, it can be used in scripts
where in it works/ removes only if the file exists. If we
use rm filename in scripts, it removes if it exits else it
throws error message telling this file not exist. Hence
using rm -rf is better option for shell scripting than rm.
| Is This Answer Correct ? | 3 Yes | 0 No |
What is {} in find command?
The rm command removes links to file. What does this mean? How then is a file deleted from the file system?
What is use of sed command?
12 Answers BitWise, Infosys, Reliance,
Where LOG fiels resides in AIX and pls tel me how to remove the log file
How do you move a process which is running background to foreground?
Where can I get the free download of Unix by Yeswant Kanetkar?
How does a user get the current date, time in UNIX?
what will this do $cat > file.c ?(file.c is a file in current directory)
What is an Unix command to convert HEX value to ASCII value located in any flat file.
In vi editor how do you execute unix commands?
Briefly, how do you install Oracle software on UNIX.
How to view the hidden files in /etc directory?