Skip to Content
Learn Linux Shell Scripting - Fundamentals of Bash 4.4
book

Learn Linux Shell Scripting - Fundamentals of Bash 4.4

by Sebastiaan Tammer
December 2018
Beginner
452 pages
12h 17m
English
Packt Publishing
Content preview from Learn Linux Shell Scripting - Fundamentals of Bash 4.4

rm

Description

Remove files or directories.

Syntax

rm [OPTION]... [FILE]...

Practical uses

  • rm -f: Ignore nonexistent files and arguments, never prompt.
  • rm -i: Prompt before every removal.
  • rm -I (capital i): Prompt once before removing more than three files, or when removing recursively; less intrusive than -i, while still giving protection against most mistakes.
  • rm -r and rm -R: Remove directories and their contents recursively.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Bash Scripting Fundamentals

Bash Scripting Fundamentals

Sander van Vugt

Publisher Resources

ISBN: 9781788995597Supplemental Content