what is the meaning of this command rm -rf /
what will it do ?

Answers were Sorted based on User's Feedback



what is the meaning of this command rm -rf / what will it do ?..

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

what is the meaning of this command rm -rf / what will it do ?..

Answer / monu verma

It will remove a directory including its subdirectories and
files

Is This Answer Correct ?    24 Yes 0 No

what is the meaning of this command rm -rf / what will it do ?..

Answer / sailesh k

recursively forcely delete the objects even the subfolders
contains any files.

Is This Answer Correct ?    14 Yes 0 No

what is the meaning of this command rm -rf / what will it do ?..

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

what is the meaning of this command rm -rf / what will it do ?..

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

Post New Answer

More Unix Commands Interview Questions

Using unix command how to display no of records in oracle?

0 Answers  


distinguish between user mode and kernel mode?

6 Answers   Infosys,


how to unzip the contents of the gzip file

1 Answers   Epsilon,


How does the user view the contents of a text file in UNIX?

9 Answers   IBM,


What is the difference between pipe (|) and tee command in unix

14 Answers   Cap Gemini, TCS,






Name the general commands in using unix os for a beginner?

0 Answers  


What is an Unix command to convert HEX value to ASCII value located in any flat file.

2 Answers  


How we will execute previous command in vi editor?

8 Answers   Infosys,


What does mkdir up2date; touch outdated up2date do?

2 Answers  


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

0 Answers  


What is "type" command in unix?what is the functionality??

2 Answers  


what does a process mean?

7 Answers   Infosys,


Categories