Safety first: the -i switch
• Prompt before overwriting or deleting files
• Use the-i switch
• “cp-i” and “mv-i” will ask you before overwriting files
• “rm -i” will ask before deletion
• Combine it with other options
• cp-Ri
□ rm -ri
Safety Switch -i
feel free to call us +800.241.0630 russ@russellcoder.com
Related Articles
-
List Command Options – ls
russellc, , BASH, 0
Options An argument that starts with a dash is called an option Is -a list all files (including hidden)...
-
-
Opening other files on Mac OS with Bash
russellc, , BASH, 0
Opening other files on Mac OS How to open non-text files? Mac OS: "open" • Opens the program associated...
-
-
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...
-
Bash History
russellc, , BASH, 0
Bash keeps a history of your commands No need to re-enter long commands up and down arrow keys •...
-
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.
-
Getting Help with bash commands
russellc, , BASH, 0
Getting Help Manual Pages • command: “man” • “man Is” • “man cd” • “man man” Using the manual...