Best Answer: How Do You Use Find Command to Search a File in Linux?
Contents

How do I find a file using Find command?

The following are examples of how to use the find command:

  1. To list all files in the file system with the name .profile, type the following: find / -name .profile. …
  2. To list files having a specific permission code of 0600 in the current directory tree, type the following: find . –

How do I search for a file in find?

You can use the find command to search for a file or directory on your file system.
…
Basic Examples.

Command Description
find /home -name *.jpg Find all .jpg files in the /home and sub-directories.
find . -type f -empty Find an empty file within the current directory.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest