Questions? Feedback? powered by Olark live chat software
Knowledgebase
Author Avatar

Finding A File On Linux

Written by: on 31 May 2016 04:52 PM 31 May 2016 04:52 PM

Finding a file in a Linux system can be difficult if you don't know how. Know the best way by reading this steps.

The easiest way to find a file on Linux is to:

  • SSH to your linux server
  • Install mlocate (assuming it's not already installed):
    • CentOS/Fedora: yum install mlocate
    • Ubuntu/Debian: apt-get install mlocate
  • Answer yes to download and install mlocate
  • You now need to update the file location database by typing: updatedb
  • Wait for it to complete, may take quite a while depending on the number of files on your server

To find a specific file type: locate filetofind

(0 vote(s))
Helpful
Not helpful