How to turn on ls -l headers? [closed]

How do I turn on the labels for ls -l?

-rw------- 1 root     root             0 Jan  2  2014 php_logging.log

The first is permissions but root root confuses me. One is the username of the owner and the other is something else. I’m looking at a similar PHP log file that has root httpd, so I need to figure out what the second name is, so I can change that. It might be chgrp httpd.

Answer

Second root in your example is a group ownership (to change it use chgrp). If you’re looking to understand it better, get yourself familiar with chown, chgrp and chmod.

Attribution
Source : Link , Question Author : user268506 , Answer Author : alexus

Leave a Comment