Notice that the beginning of the file name is included or there would be more files listed. To find files that have group write permissions, you could use a command like this one: $ find /usr/bin -name "net*" -perm -g=w -lsĢ6666 0 lrwxrwxrwx 1 root root 24 /usr/bin/netcat -> /etc/alternatives/netcat Group IDs can be used in place of group names. To find files by group, use the “-group gname” specification. The third example below send output that generates an error (e.g., permission denied) to /dev/null so that it doesn't clutter up the screen. You can specify the username or the user ID. To find files by user, include the “-user uname” specification. This command will remove any file with a “.old” extension from your home directory (including subdirectories). To delete a file, you need to add the -exec rm command as shown below. You probably noticed in the two previous commands that you can list ( -ls means a long listing) or simply display the name of a file ( -print).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |