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 are grep patterns?
Why is it called grep?
What does awk stand for?
Does cp command overwrite files?
What is used to type command?
What is updatedb?
Explain how to use grep command to list find the records of a file containing 10 different strings?
What is grep in bash?
Name the various commands that are used for the user information in unix.
How can you see the command line history?
How do I run a whois command?
What is awk command used for?
What command will change your prompt to myprompt?
What is the unix command to confirm a remote host is alive or not?
Can you explain a little bit about command substitution?