In this video, I go over how to find files in Linux terminal. In this Linux Tutorial you will learn everything you ever wanted to know about the find commend and even some stuff you didn’t know you wanted to know.
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
💻 Recommendations 💻
– My Windows Anti-Virus ➜
– My VPN Service ➜
– Website Recommendations ➜
🕹 Live Streams Monday & Friday 🕹
– Twitch ➜
– YouTube Archive ➜
🖥 Contact me 🖥
– Patreon ➜
– Official Site ➜
– Twitter ➜
🚑 Need Help!? Ask our community! 🚑
– Discord ➜
– Reddit ➜
💰 My Amazon Store (YouTube Gear, PC Hardware, and Books I recommend) 💰
–
DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps supports the channel and allows us to continue to make videos like this. Thank you for your support!
Nguồn: https://ftlinuxcourse.com
Xem thêm bài viết khác: https://ftlinuxcourse.com/lap-trinh-linux
Xem thêm Bài Viết:
- Trải nghiệm mới hay ho với hướng dẫn cài Mac Os trên vmware
- Bật mí cách cài đặt ssl miễn phí lên Let’s Encrypt
- Tuyệt chiêu tạo usb boot kali linux đơn giản dành cho bạn
- Hướng dẫn chi tiết từ A – Z các bước cài đặt Python trên Windows 10
- Bật mí quy trình cài đặt Kali Linux trên Vmware đúng chuẩn và chi tiết