Channel | Publish Date | Thumbnail & View Count | Actions |
---|---|---|---|
| 2019-02-14 16:00:11 | ![]() 56,407 Views |
Basic syntax
-find options starting/path expression
$ find ~ -name media*
Note: -name is CASE SENSITIVE for results
$ find /var/html -name *.html
$ find ~ -type d -iname Downloads
Note: -iname makes it so results are not matched based on CASE.
Advanced syntax
Find Files based on modified in the past 1 day
$ find ~ -mtime -1
Note: cull this down by using | grep partial file name
Or Find Files based on modified in the past 10 minutes
$ find ~ -mmin -10
OR find Files based on modified in the past 10 minutes and greater than 10 megs
$ find ~ -mmin -10 -size +10M
You can also add the -delete command at the end to delete ALL FILES FOUND!!! Use with extreme caution!
Bonus easily find where a program is located with /”whereis/”
$ whereis gimp .
►► Digital Downloads https://www.cttstore.com
►► Patreon https://www.patreon.com/christitustech
►► Reddit https://www.reddit.com/r/ChrisTitusTech/
►► Titus Tech Talk https://www.youtube.com/c/TitusTechTalk
►► Twitch https://www.twitch.tv/christitustech
Please take the opportunity to connect and share this video with your friends and family if you find it useful.