Rm command

From Linux Shell Scripting Tutorial - A Beginner's handbook
Jump to navigation Jump to search
  • The rm command is used to remove given file or directory.
  • By default, it does not remove directories.

Syntax

The syntax is as follows:

rm filename
rm -rf dirname