or rm -rf directory
the -f option is force, which means it will not prompt you for deleting any of the files in the directory. If you delete without force, you will be prompted for every file in that directory. The -r option is recursively, which means that all files in that directory and its subdirectories will be deleted. So be careful with the rm -rf command.
The command rm -rf / would be equivalent to format c: in windows and even worse. It would be like a windows command format c: and format d: and format e: and format f: ..... all combined. The rm -rf / actually erases everything on your harddisk or your harddisks.
SO BE CAREFUL!!
However this caution is intended only if you run as root or you have messed your permissions. Running rm -rf / as an ordinary user in a healthy system would result in error messages stating that a user has no permission for deleting /
As every other thing you do as root, is to be very careful.
Last edited by marghorp; 06-05-2004 at 09:26 PM.