Is there a shell command to just print the owner of a file?
I guess I could just do:
ls -l | awk '{print $3}'
but this feels like there would be a more straightforward answer to the problem.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try using
stat(1)There are lots of format sequences available: user ID, total size, etc.