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

Finding A File On Linux

Written by: on 09 May 2014 02:19 PM 09 May 2014 02:19 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))
Not helpful