About 11,600,000 results
Open links in new tab
  1. How to Find a File in Linux | Find Command - GeeksforGeeks

    Apr 11, 2025 · To find a file in Linux, open a terminal and use the following basic syntax: Replace “/path/to/search" with the directory where you want to start the search and customize the options and criteria based on your requirements. For example : To find a file named “example.txt” in the home directory, you would use:

  2. Find Command in Linux (Find Files and Directories)

    Nov 19, 2020 · The find command is one of the most powerful tools in the Linux system administrators arsenal. It searches for files and directories in a directory hierarchy based on a user given expression and can perform user-specified action on each matched file.

  3. linux - How can I recursively find all files in current and …

    May 5, 2011 · On linux, the path is optional if you want to use dot. @Seatter "foo*" tells find to look for all files that start with "foo". It is just his example. You could use "gpio*" to find all files who's names start with gpio, or just "gpio1" to find all files named gpio1.

  4. Find all files containing a specific text (string) on Linux?

    Jun 6, 2013 · Use find to search files, Execute grep on all of them. This gives you the power of find to find files. Use -name Pattern if you want to grep only certain files: find /path/to/somewhere/ -type f -name \*.cpp -exec grep -nw 'textPattern' {} \; You can use different options of find to improve your file search.

  5. How To Use Find and Locate to Search for Files on Linux

    Nov 11, 2021 · One problem users run into when first learning how to work with Linux is how to find the files they are looking for. This guide will cover how to use the aptly named find command. This will help you search for files on your system using a variety of filters and parameters.

  6. How can I find a file/directory that could be anywhere on linux command ...

    Jul 9, 2014 · To fix this, use find -name "filename" If the file in question is not in the current working directory, you can search your entire machine via. This also works with stuff like find / -name "*.pdf", etc.

  7. command line - How to find a file from any directory - Unix & Linux

    May 1, 2017 · First, an argument to -iname is a shell pattern. You can read more about patterns in Bash manual. The gist is that in order for find to actually find a file the filename must match the specified pattern. To make a case-insensitive string book1 match Book1.gnumeric you either have to add * so it looks like this: or specify the full name:

  8. 25+ most used find commands in Linux [Cheat Sheet]

    May 19, 2024 · find command is one of the popular and commonly used tools in Unix-based operating systems. As its name suggests, it finds the files and directories in a directory hierarchy. You can pass different parameters and search files by their name, extension, type, size, permissions, modification time, owner, groups, and more.

  9. How To Locate files on Linux using find Command

    Aug 5, 2024 · Maybe there is that config file you are not sure where to find it and you are left to search for it. The find command will help you find it. This command simply searches for files in a directory hierarchy. It is a powerful command and can search for files based on various criteria such as permissions, modification time, ownership, size.

  10. Find Files by Names in Linux - Command in Line

    Mar 15, 2025 · Here’s a detailed overview of how to find files by name in Linux, highlighting different commands and options: 1. find Command. The find command is the most versatile tool for searching for files by name in Linux. Basic Syntax: The syntax for the find command to search by name is: find [PATH] -name "filename" Searching in a Specific Directory:

  11. Some results have been removed
Refresh