Skip to content

Commit

Permalink
Update 01_the_filesystem.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mistrm82 authored Jan 25, 2018
1 parent 32d7fc5 commit aa35d72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Intro_shell/lessons/01_the_filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,9 @@ $ rm backup/Mov*
> The `rm` file permanently removes the file. Be careful with this command. The shell doesn't
just nicely put the files in the Trash. They're really gone.
>
> Same with moving and renaming files. It will **not** ask you if you are sure that you want to "replace existing file". You can use `rm -i` if you want it to ask before deleting the file(s).
> Same with moving and renaming files. It will **not** ask you if you are sure that you want to "replace existing file".
>
> You can use `-i` modifier with both `rm` and `mv`. This will write a prompt to standard error before moving a file that would overwrite an existing file or ask before deleting the file(s).
We really don't need these backup directories, so, let's delete both. By default, `rm`, will NOT delete directories, but you use the `-r` flag if you are sure that you want to delete the directories and everything within them. To be safe, let's use it with the `-i` flag.

Expand Down

0 comments on commit aa35d72

Please sign in to comment.