Revision [607]

This is an old revision of CommandRm made by DavidLee on 2009-05-31 14:00:30.

 

Command rm


This command is part of the posix extensions and needs to be imported to be available to the shell.
See 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 rmdir to remove directories.

Return Value

Returns 0 if the command executed successfully, 1 if there was an error.

CategoryCommands
CommandsPosix
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki