Wiki source for CommandRm


Show raw source

=====Command rm=====

This command is part of the [[CommandsPosix posix]] extensions and needs to be imported to be available to the shell.
See [[CommandsPosix Posix Commands]]

====Name====
**rm** removes (deletes) files


====Synopsis====
rm [options] file [file ...]

====Options====

||-r|| recursively delete files||
||-f|| force deletion ||
||-rf|| both -r and -f||

====Description====

Removes each argument. If -r or -rf is specified and the argument is a directory, then recursively deletes all files in the directory first.
If -r is not specified then directories are not deleted (see [[CommandsRmdir rmdir]]) to remove directories.

====Return Value====
Returns 0 if the command executed successfully, 1 if there was an error.
----
[[Commands]]
[[CategoryCommands]]
[[CommandsPosix]]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki