fbpx

How to Find a File in

  • Click on the button “terminal” on the CentOS desktop to open the Linux command prompt window.
  • Type the command “find -name tables.txt” and press “Enter” to start searching a file. In this example, you search the file “tables.txt.”
  • Use an asterisk (*) in the file name as a wild-card character to search for multiple files or if you do not know the exact name. For example, the command “find -n tables.*” finds all files with the name “tables” and any extension such as files “tables.txt”, “tables.doc” or tables.xls.”
  • Read the command output that is the list of found files with the full directory path. If no files are found, the command produces no output.

Leave a Reply

Your email address will not be published. Required fields are marked *