Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are grep patterns?

1098


Why is it called grep?

1040


What does awk stand for?

1095


Does cp command overwrite files?

1219


What is used to type command?

1067


What is updatedb?

1060


Explain how to use grep command to list find the records of a file containing 10 different strings?

1082


What is grep in bash?

1075


Name the various commands that are used for the user information in unix.

1093


How can you see the command line history?

1150


How do I run a whois command?

1162


What is awk command used for?

1255


What command will change your prompt to myprompt?

1336


What is the unix command to confirm a remote host is alive or not?

1226


Can you explain a little bit about command substitution?

1124