Type sudo apt-get update and press ↵ Enter. You can install it in Debian and Ubuntu like this: Type sudo apt-get install mlocate and press ↵ Enter. If locate is already installed, you’ll see the message mlocate is already the newest version. In Arch Linux, use the pacman package manager: pacman -S mlocate For Gentoo, use emerge: emerge mlocate
Type sudo apt-get update and press ↵ Enter. You can install it in Debian and Ubuntu like this: Type sudo apt-get install mlocate and press ↵ Enter. If locate is already installed, you’ll see the message mlocate is already the newest version. In Arch Linux, use the pacman package manager: pacman -S mlocate For Gentoo, use emerge: emerge mlocate
Type sudo updatedb and press ↵ Enter.
Type sudo updatedb and press ↵ Enter.
This command will search you entire system for files with the . jpg extension. The wildcard character * functions the same way it does with the find command. Like the find command, the -i ignores the case of your query.
This command will search you entire system for files with the . jpg extension. The wildcard character * functions the same way it does with the find command. Like the find command, the -i ignores the case of your query.
Only the first 20 results that match the query will be displayed. You can also use the | pipe to send the results to less for easy scrolling.
Using -iname instead of -name ignores the case of your query. The -name command is case-sensitive.
You can start the search in a specific directory by replacing the / with a directory path, such as /home/pat. You can use a . instead of / to force the search to only be performed on the current directory and subdirectories.
This will return all of the . conf files in Pat’s user folder (and subdirectories). You can also use it to find everything that matches part of the file name. For example, if you have a lot of documents related to wikiHow, you could find them all by typing “wiki”.
This will return all of the . conf files in Pat’s user folder (and subdirectories). You can also use it to find everything that matches part of the file name. For example, if you have a lot of documents related to wikiHow, you could find them all by typing “wiki”.
This will return results that are 50 megabytes or larger. You can use + or - to search for greater or lesser sizes. Omitting the + or - will search for files exactly the specified size. You can filter by bytes (c), kilobytes (k), megabytes (M), gigabytes (G), or 512-byte blocks (b). Note that the size flag is case-sensitive.
The command will find files in the “travelphotos” directory that are greater than 200 kilobytes in size but do not have “2015” anywhere in the file name.
The above examples will search the specified users, groups, or permissions for the query. You can also omit the filename query to return all of the files that match that type. For example, find / -perm 777 will return all of the files with the 777 (no restrictions) permissions.
This will search the current directory (and all subdirectories) for files that have 777 permissions. It will then use the chmod command to change the permissions to 755.
The -r sets the search to “recursive”, so it will search the current directory and all subdirectories for any file that contains the query string. The -i indicates that the query is not case-sensitive. If you want to force the search to pay attention to case, omit the -i operator.
The -r sets the search to “recursive”, so it will search the current directory and all subdirectories for any file that contains the query string. The -i indicates that the query is not case-sensitive. If you want to force the search to pay attention to case, omit the -i operator.