How to see the UID of all files or folders

Well, If you meant that you want to see the UIDs of the file then ls command can help.

You can use ls with n flag.

    ls -n

-n explanation from man page :

-n, --numeric-uid-gid
              like -l, but list numeric user and group IDs.

Well, linux tracks ownership by uid only so

find / -uid 1000

Change the uid 1000 to the uid you wish to search on.


$ ls -lnR yourdir

  • In case information is needed of a directory