分类: LINUX
2006-06-26 12:59:54
There are many options to rm. To view them all, enter man rm at the shell prompt.
-i (interactive) — Prompts you to confirm the deletion. This option can stop you from deleting a file by mistake.
-f (force) — Overrides interactive mode and removes the file(s) without prompting. This might not be a good idea, unless you know exactly what you are doing.
-v (verbose) — Shows the progress of the files as they are being removed.
-r (recursive) — Deletes a directory and all files and subdirectories it contains. . To view them all, enter man rm at the shell prompt.
-i (interactive) — Prompts you to confirm the deletion. This option can stop you from deleting a file by mistake.
-f (force) — Overrides interactive mode and removes the file(s) without prompting. This might not be a good idea, unless you know exactly what you are doing.
-v (verbose) — Shows the progress of the files as they are being removed.
-r (recursive) — Deletes a directory and all files and subdirectories it contains.