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
How do you repeat a command in terminal?
What is rmdir command?
What does 'mkdir' command do in UNIX?
Which command is used to restrict incoming messages?
What is the general format of unix command syntax?
What does the “echo” command do?
What is the functionality of a top command?
What does sed command do in unix?
Are you in or at the office?
How to display no of records in oracle using unix command?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is grep and how do you use it?
Explain command to view process running?
What is the nmap command?
What is unix command?