December 2018
Beginner
320 pages
8h 57m
English
Find is the most useful and often used utility in a Linux system. It traverses through the filesystem directory tree from any location to search for a file on a specified condition. Its general syntax is as follows:
$ find [pathnames] [conditions]
We can search for a file in the /var directory containing a specific string in its name, as shown in the following command line:
$ find /var -name "*.log"
We can use the find command to search a file or directory in the /usr directory having the name gcc, as shown in the following command line:
$ find /usr -name gcc
We can narrow down our search by specifying the type of file to ...
Read now
Unlock full access