When I do a ls -al
, I can see the owner and group of files or folders. However, I recently changed my UID, so how do I find out if all my folders belong to my username and the new uid?
When I do a ls -al
, I can see the owner and group of files or folders. However, I recently changed my UID, so how do I find out if all my folders belong to my username and the new uid?
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.-n
explanation from man page :Well, linux tracks ownership by uid only so
Change the uid 1000 to the uid you wish to search on.
$ ls -lnR yourdir
For checking the uid:gid of a directory owner:group