Skip to content

Commit c8f1628

Browse files
committed
feat: Upgraded rm -r description to a callout, added warning that it cannot be undone, suggested rm -i
1 parent abe09c2 commit c8f1628

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

episodes/03-working-with-files.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,20 @@ $ cd ..
577577
$ rm -r backup
578578
```
579579

580-
This will delete not only the directory, but all files within the directory. If you have write-protected files in the directory,
581-
you will be asked whether you want to override your permission settings.
580+
::::::::::::::::::::::::::::::::::::::::: callout
581+
582+
## Risks of `rm`
583+
584+
`rm -r` will delete not only the directory, but all files within the directory.
585+
If you have write-protected files in the directory, you will be asked whether you want to override your permission settings.
586+
587+
**Important: This cannot be undone.**
588+
589+
`rm -i` will prompt you to confirm that you want to delete every file regardless of permission settings.
590+
591+
::::::::::::::::::::::::::::::::::::::::::::::::::
592+
593+
582594

583595
::::::::::::::::::::::::::::::::::::::: challenge
584596

0 commit comments

Comments
 (0)