Linux find file in whole system

ubuntu
centos7
shell
find

#1

I want to find file in whole system. My file name just say is “resume.pdf” and I forgot where I saved it. How to search entire Linux hard drive for a file?


#2

Use the find command:

sudo find / -name "resume.pdf"
sudo find / -type f -name "resume.pdf"
# Find all pdf files
sudo find / -type f -iname "*.pdf"

See


#3

You can use the following commands to find files on whole server file system:

# updatedb
$ locate resume.pdf