How do I find a file on a Linux server?

Daniel William

New member
How do I find a file on a Linux server?
Answer
How to search or find a File / Folder on your Linux Server ?
  1. find {dirctory_to_search} {search_by} {pattern_to_search} [action] For Example, if you wish to search a file called ‘filename. …
  2. fine / -name filename.php. …
  3. find /home -name myfile.txt. …
  4. find /var/usr -user WPOven. …
  5. find /srv -perm 665. …
  6. find /var/www -type d -name mydir. …
  7. find /srv -type f -name temp -print | rm -f.
 

Tìm kiếm

Back
Top