Deleting files
■ rm
• Warning: will delete files permanently.
• rm a
• rm a b c
• rm dir/a dir/b
• rm *
• rmdir
• Invocation like rm
• Will remove empty directories only
• rm -r
• Will recursively remove a directory and everything in it
Deleting files – rm
feel free to call us +800.241.0630 russ@russellcoder.com
Related Articles
-
About filenames with bash
russellc, , BASH, 0
About filenames Filenames can contain just about anything • Except/ • Hidden files start with a dot Case sensitivity...
-
How do you list a the contents of a directory? – LS
russellc, , BASH, 0
At the command line just type – ls
-
How to Remove Directories (Folders) – Centos 7
russellc, , BASH, command line, Linux OS, terminal, 0
How to Remove Directories (Folders) To remove an empty directory use the -d option. rm -d dirname Copy To remove non-empty...
-
Getting Help with bash commands
russellc, , BASH, 0
Getting Help Manual Pages • command: “man” • “man Is” • “man cd” • “man man” Using the manual...
-
-
Relative Paths
russellc, , BASH, 0 -
-
How do you go up one level in a directory? cd ..
russellc, , BASH, 0
type cd .. or cd by itself takes you to the users home directory.