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 do chown command do?
What command is used to switching between users in unix?
What is the difference between awk and grep?
Explain the steps that a shell follows while processing a command.
What is the behavioural difference between cmp and diff commands?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include
What is ‘ps’ command for?
What is the nmap command?
What are the general commands in using unix os for a beginner?
What is the use of finger command?
What is the difference between grep and grep?
Which command is used to kill the last background job?
What are grep patterns?
How do I open a port?
Write a command that will display files in the current directory, in a colored, long format.