
It supports these protocols: DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS.

If you like this article on Find command in Unix or If you have any suggestions kindly comment in to comment Section.Curl is a tool for transferring data from or to a server. I hope you like this article on Find command in Unix. These are some most important examples of Find command in Unix. # find / -type f -perm 0777 -print -exec chmod 644 \ Find Files with 777 Permissions and Chmod to 644įind all 777 permission files and use chmod command to set permissions to 644. Find Executable Filesįind all Executable files. Find Read Only Filesįind all Read Only files. Find Sticky Bit Files with 551 Permissionsįind all the Sticky Bit set files whose permission are 551. Find SGID Files with 644 Permissionsįind all the SGID bit files whose permissions set to 644. Find Files Without 777 Permissionsįind all the files without permission 777. type f -name "*.java"įind all the files whose permissions are 777. Find all java Files in Directoryįind all java files in a directory. Find java Files Using Nameįind all java files whose name is complexsql.java in a current working directory. Find Directories Using Nameįind all directories whose name is complexsql in / directory. txt and contains both capital and small letters in /home directory. Find Files Using Name and Ignoring Caseįind all the files whose name is Complexsql. Find Files Under Home Directoryįind all the files under /home directory with name complexsql.txt. Find Files Using Name in Current Directoryįind all the files whose name is complexsql. In this section I would like to give you multiple examples of Find command in Unix.These examples are used in day to day life in industry for so many purpose. This option is used to return True if ‘expr’ is false. This option is used to check for True if ‘expr’ is true used for grouping criteria combined with OR or AND. This option is used to search for files owned by user name or ID ‘name’. This option is used to search for files of ‘N’ blocks ‘N’ followed by ‘c’can be used to measure size in characters ‘+N’ means size > ‘N’ blocks and ‘-N’ means size < ‘N’ blocks. This option is used to search for empty files and directories. This option is used to display the path name of the files found by using the rest of the criteria.

This option is used to search for the file if permission is ‘octal’. This option is used to search for files that were modified/created after ‘file’. This option is used to search for files that are specified by ‘demo’. This option is used to search for files with ‘N’ links. This option used to search for the file with inode of number ‘N’. It works same as -exec except the user is prompted first. The file being searched which meets the above criteria and returns 0 for as its exit status for successful command execution.

There are following important Options of Find Command : The basic syntax of Find command in Unix specifies above. This section will give the basic understanding of Find command.įind In this section i would like to give you the find command syntax with its main options. Find Command in Unix Syntax and Options : I would like to explain the working of Find command in Unix and how it is used.I would also like to give you different option of Find Command in Unix.The most basic use of Find Command is to search the file from Unix directory hierarchy,The Find command is one of the most important as well as most used command in unix.Find Command in unix not only used to find the specific file from the directory structure but also it uses to find the files with specific criteria like-įile permissions,date,users,usergroups,size e.t.c. In my previous articles i have given the brief idea about different unix commands with real life examples.In this article i would like to give you information about the Find Command in Unix with its examples.
