Technotes for future me


Find Files Using Name in Current Directory

# find . -name blaat.txt


Find Files Under Home Directory

# find /home -name blaat.txt


Find Files Using Name and Ignoring Case

# find /home -iname blaat.txt


Find Directories Using Name

# find / -type d -name blaat


Find PHP Files Using Name

# find . -type f -name blaat.php


Find all PHP Files in the Directory

# find . -type f -name "*.php"


Find and remove Multiple File

# find . -type f -name "*.txt" -exec rm -f {} \;


# find . -type f -name "*.mp3" -exec rm -f {} \;

Find Last 50 Days Modified Files

# find / -mtime 50

Find Last 50 Days Accessed Files

# find / -atime 50


Last updated on 6 Sep 2021
Published on 6 Sep 2021
Edit on GitHub