

If you want to search file by type then you can use the following expressions: you can use -type expression to specify file type. : ~$ find -L /etc -name passwdįind: ‘/etc/ssl/private’: Permission deniedįind: ‘/etc/polkit-1/localauthority’: Permission denied : ~$ : ~$ find -L /home/ -name vijayĪs you know, different files have different types, regular file, directory and more. Expression: -name which allow to search with given name.Path: /etc/ which allow to search entire directory as per path.Options is -L which allow to follow symbolic links.Let’s take a look at the following example:


The attribute is made up of options, search patterns and actions separated by operators.If you want to search in complete system use only / or if you want to search file in etc directory path would be /etc/ The an attribute defines the path where find will look for the file.The options attribute controls the treatment of the symbolic links, debugging options and optimization method.The basic usage of find utility expressions take the following form: Review the basic syntax of find command before go “How to use find command in Linux or how to find a file in Linux by using find command. If you want to be an expert in using commands You must know what is the basic syntax of the same command. Find a File in Linux by Modification Date.
