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

 

 

HOMEAJAXAPACHEBizphoneCSSDNSGeneralGraphicsHTMLHardwareJavascriptLinuxMACMS SQLMailMicrosoftOFFICE 365PerlPostgresSEOSocial MediaVMwareWindows 10