www.fromthevalley.com.au

Using Find Command

Examples:

COMMAND:

find . -type f ! -user uucp -exec chown uucp.uucp {} \;

DESC:

find everything in the current directory that isn't owned by uucp and execute a chown to uucp.uucp on it.

Notes:
{} is a sub for the items found from find

\; is the syntax to end the command

. is all in the dir

! is not

 

 

HOME |  AJAX |  APACHE |  Bizphone |  CSS |  DNS |  General |  Graphics |  HTML |  Hardware |  Javascript |  Linux |  MAC |  MS SQL |  Mail |  Microsoft |  OFFICE 365 |  Perl |  Postgres |  SEO |  Social Media |  VMware |  Windows 10