Main Menu

Search

LINUX: FIND COMMAND TO LIST USER AND GROUPS OF ALL FILES IN A DIRECTORY 

Following is command to use.

find -printf "%u %g %h/%f\n" | sort

Following is sample output of above command.

 root root ./testdir 
root root ./testdir/test1 
root root ./testdir/testing 
root root ./testdir/testing/1 
root root ./testdir/testing/1/1 
root root ./testdir/testing/1/1/2.txt 
root root ./testdir/test.txt 

 


Products to which Article Applies

All Linux Operating Systems 

Search Keywords: linux unix find finding user users group groups list listing in particular directory directories command commands

Article Author: Tarun Boyella

 

No comments:

Post a Comment