Find a file unix command


















Last modified on Skip to: content search login. Knowledge Base Toggle local menu Menus About the team. Knowledge Base Search. Log in. Options Help Chat with a consultant. Include archived documents.

Use the Unix find command to search for files To use the find command, at the Unix prompt, enter: find. Options The general form of the command is: find starting directory matching criteria and actions The find command will begin looking in the starting directory you specify and proceed to search through all accessible subdirectories. Follow symbolic links. When find examines or prints information about files, the information used shall be taken from the properties of the file to which the link points, not from the link itself unless it is a broken symbolic link or find is unable to examine the file to which the link points.

Use of this option implies -noleaf. If you later use the -P option, -noleaf will still be in effect. If -L is in effect and find discovers a symbolic link to a subdirectory during its search, the subdirectory pointed to by the symbolic link will be searched. Do not follow symbolic links, except while processing the command line arguments. When find examines or prints information about files, the information used shall be taken from the properties of the symbolic link itself.

The only exception to this behaviour is when a file specified on the command line is a symbolic link, and the link can be resolved. We can find and delete a file using the find command in Unix. This is a guide to Find Command in Unix.

Here we discuss the introduction; what can we do from the find command? And examples, respectively. You may also have a look at the following articles to learn more —. Submit Next Question. By signing up, you agree to our Terms of Use and Privacy Policy. Forgot Password?



0コメント

  • 1000 / 1000