I am new to unix scripting, learning it experimenting my own ways. But then I was trying to list the directory and found numbers like 1000 and 1001.
I google and understood that those are the userid's I verified the same. But then I wish to display the username for readability on the unix ls command.
Please help me and guide on the same.
Thanks ^_^
-- Edit_1
When I type the "ls -al" the out put of that was as mentioned below.
But then in that there were id's like 1000 of the owner and I wanted the name of the user instead of the id.
--Solution
I have logged in as root user and used the below command.
sudo chown -R :
And the above solution worked and I am able to see the username instead of userid.
The link to the actual answer is [this][2]
Thank you all for the help :)
ls -l
? Could it have beenls -n
? What is the output oftype ls
? – terdon Jun 05 '19 at 10:30