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
What is grep and how do you use it?
Why is it called grep?
What is the use of egrep command in unix?
What does #!/ Bin sh do?
Can you enlist some commonly used network commands?
What is a bash command?
What is command statement?
What do know about tee command and its usage?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What is grep in bash?
Does cp command overwrite files?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What is time_t?
What are the dos commands?
How do I run a bash script?