The first is the - character (dash), and the second is the / character (slash). What if you need a little more flexibility? There are two additional parameters that can be very useful. The above example only finds resources with exactly the specified permission-no more and no less. The command is: Search the /etc directory for resources with the 777 access level (rwx for all identities). The statement reads as "find a resource with these permissions." The most fundamental permissions search uses no additional parameters. Find resource permissions by using absolute mode
![find any file unixx find any file unixx](https://asiasupergrid.com/images/who-command-in-unix-with-syntax-and-example-4.png)
Gives the others identity read and write to file1. Symbolic mode uses symbols to represent access levels, and it uses mathematical operators to give ( +) or remove ( -) permissions. Sets the user with 7 (rwx), group with 6 (rw), and others with 4 (r) for file1. The values are listed in order as the permission to be assigned to the user, group, and all others. Absolute modeĪbsolute mode uses octal values to represent permissions. You need to recall a few things about absolute mode and symbolic mode to effectively use the find -perms command.
![find any file unixx find any file unixx](https://i.ytimg.com/vi/MCCIZbFokik/maxresdefault.jpg)
The find command also recognizes either mode, so you're able to use whichever comes most naturally to you.
#Find any file unixx how to
See my recent article How to manage Linux permissions for users, groups, and others for a review of managing resource access, including the two modes. The chmod command recognizes both absolute mode and symbolic mode. Recall that permissions are set by using the chmod command. However, this article focuses on using the -perm option, which searches based on permissions settings.