氺菓
氺菓回复给帖子:2660431

[mw_shl_code=bash,true]Usage: rm [OPTION]... FILE...

Remove (unlink) the FILE(s).

-f, --force ignore nonexistent files, never prompt

-i, --interactive prompt before any removal

--no-preserve-root do not treat `/' specially (the default)

--preserve-root fail to operate recursively on `/'

-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

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.

To remove a file whose name starts with a `-', for example `-foo',

use one of these commands:

rm -- -foo

rm ./-foo

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.[/mw_shl_code]