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 grep recursively?
What is the comma to show the space allocation of files?
How many unix commands are there?
Explain ‘library functions’ with respect to unix commands?
What does sed command do in unix?
Describe the zip/unzip command using gzip.
What is grep in bash?
What is the difference between cat command and more command?
What is awk command used for?
What is the difference between cat and more command?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
What is unix command line?
What is the command to find maximum memory taking process on the server?
Why is it called grep?
What is the unix command to confirm a remote host is alive or not?