First page Back Continue Last page Overview Graphics
Example 1-7
Erasing a directory rm
We always need to erase directories of files that we do not need. In this example first copy directory mloc to a new directtory named mloc2 using following command,
cp -rf mloc mloc2
Then use following command to erase directory mloc2,
rm -rf mloc2
be careful in using rm -rf because this command without asking your confirmation, will erase all files inside a given directory including all of its subdirectories.