GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing ss64.com — rm Man Page - Linux rmRemove files (delete/unlink). Syntax
rm [options]... file...
Options
-f, --force
Ignore nonexistent files, never prompt.
-i
Prompt before every removal.
-I
Prompt once before removing more than three files, or when removing recursively.
Less intrusive than -i, while still giving protection against most mistakes.
--interactive[=WHEN]
Prompt according to WHEN: never, once (-I), or always (-i). Without WHEN, prompt always.
--one-file-system
When removing a hierarchy recursively, skip any directory that is on a file system
different from that of the corresponding command line argument.
--no-preserve-root
Do not treat '/' specially. Use with great caution.
--preserve-root
Do not remove '/' (default).
-r, -R, --recursive
Remove directories and their contents recursively.
-v, --verbose
Explain what is being done.
--help
Display this help and exit.
--version
Output version information and exit.
To remove a file you must have write permission on the file and
the folder where it is stored. By default, rm does not remove directories. Use the --recursive (-r or -R) option to remove each listed directory too, along with all of its contents. Note that if you use rm to remove a file, it is usually possible to recover the contents of that file. If you want more assurance that the contents are truly unrecoverable, consider using shred. Expanding variables
Undeletable files
Bulk Deletes
ExamplesRemove demo.txt:
Remove demo1.txt and demo2.txt:
Delete the folder named "temp", and all its contents:
Remove all the .txt files in the current directory and prompt before each deletion:
Remove all the files from the current directory apart from text.txt.
“But over all things brooding slept, The quiet sense of something lost” ~ Alfred Tennyson Related Linux commandsls - List information about files. Copyright © 1999-2026 SS64.com
Some rights reserved |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |