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 is grep and how do you use it?

1112


Why is it called grep?

1029


What is the use of egrep command in unix?

1185


What does #!/ Bin sh do?

1068


Can you enlist some commonly used network commands?

1113


What is a bash command?

1180


What is command statement?

1174


What do know about tee command and its usage?

1182


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

1070


What is grep in bash?

1063


Does cp command overwrite files?

1203


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1221


What is time_t?

1113


What are the dos commands?

1260


How do I run a bash script?

1184