Remove (unlink) the FILE(s).
It can't remove folders as default.
You can use -r parameter for removing folder(s)with its(theirs) content.
Basic Usage:
rm -r directory
Examples:
rm aaa.txt bbb.txt
Remove aaa.txt and bbb.txt files.
rm -- -foo
rm ./-foo
To remove a file whose name starts with a '-', for example '-foo',use one of these commands.
rm -r aaa bbb cccc ddd eee
It removes aaa,bbb,ccc,ddd and eee folders.
Pressing Alt and * keys in current directory after rm, it writes all file and folder names.
rm -fr aaa
-f veya --force parameter: ignore nonexistent files and arguments, never prompt.
This command removes aaa folder with contents and never prompt.
rm --help
Display help page.
Above process applied on "GNU bash, version 4.3.11(1)-release (i686-pc-linux-gnu)"
Date of Article: 10.03.2016