Thursday, May 2, 2024
11
rated 0 times [  11] [ 0]  / answers: 1 / hits: 8310  / 2 Years ago, tue, july 26, 2022, 2:16:27

What exactly means



ls --author


It really returns writer of a file or owner? How to set author for a file? I have to implement this part (ls --author), so need to know what exactly it is.


More From » command-line

 Answers
1

The Ubuntu manual page for "ls" neither explains what the "author" is and it also does not mention that the option only applies to long format.
From a GNU/Hurd man page:



--author List each file's author when producing long format directory
listings. In GNU/Hurd, file authors can differ from their owners, but
in other operating systems the two are the same.



Example:




ls -l --author
total 0
lrwxrwxrwx 1 rinzwind rinzwind rinzwind 20 2011-06-18 19:33 Desktop


will shows 3 names instead of 2 (owner, group, author).



I found some good information on this on an old mail archive for gnu from 2002 but in Ubuntu it is the same as the user name.



If you need to set 'author' the idea is you create a man page for your function and add an author tag in the man page. Unless you use something other than Ubuntu and actually can set this.


[#44561] Wednesday, July 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aslity

Total Points: 336
Total Questions: 133
Total Answers: 98

Location: Zimbabwe
Member since Thu, Jul 21, 2022
2 Years ago
;