Update readme.md (#69)

* Update readme.md

* Update readme.md

* Update readme.md
This commit is contained in:
Steve Mao 2021-10-10 19:12:13 +11:00 committed by GitHub
parent 29cf171f92
commit 91910df07d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,7 @@ As a computer expert, we want to be more efficient and do our jobs better. We kn
1. [peek files in a zip file](#peek-files-in-a-zip-file)
1. [remove a file](#remove-a-file)
1. [remove a directory](#remove-a-directory)
1. [remove all files of certain criteria](#remove-all-files-of-certain-criteria)
1. [list directory contents](#list-directory-contents)
1. [tree view a directory and its subdirectories](#tree-view-a-directory-and-its-subdirectories)
1. [find a stale file](#find-a-stale-file)
@ -267,7 +268,7 @@ $ lsar -l archive_name.tar.gz
$ rm my_useless_file
```
IMPORTANT: The rm command deletes my_useless_file permanently, which is equivalent to move my_useless_file to Recycle Bin and hit Empty Recycle Bin.
**IMPORTANT**: The rm command deletes my_useless_file permanently, which is equivalent to move my_useless_file to Recycle Bin and hit Empty Recycle Bin.
## remove a directory
@ -277,6 +278,14 @@ IMPORTANT: The rm command deletes my_useless_file permanently, which is equivale
$ rm -r my_useless_folder
```
## remove all files of certain criteria
```shell
find . -name "*.bak" -type f -delete
```
**IMPORTANT**: run `find . -name "*.bak" -type f` first to see exactly which files you will remove.
## list directory contents
**STOP OPENING YOUR FINDER OR FILE EXPLORER** :-1: