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

How do you grep recursively?

1152


What is the comma to show the space allocation of files?

1135


How many unix commands are there?

1206


Explain ‘library functions’ with respect to unix commands?

1214


What does sed command do in unix?

1247


Describe the zip/unzip command using gzip.

1225


What is grep in bash?

1116


What is the difference between cat command and more command?

1270


What is awk command used for?

1327


What is the difference between cat and more command?

1364


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

1357


What is unix command line?

1336


What is the command to find maximum memory taking process on the server?

1264


Why is it called grep?

1085


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

1278