When using chgrp or chown I see zero used quite frequently as the named group or user, instead of root.
Is there a preference for either?
And in what use case is the numeric arg preferable?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
We know that
root is always
0, but for other users we don't know there uid.
In the old days memory and punch-cards were expensive,
0 is 3 less characters than
root. It was encouraged to make programs small, to save memory, but at the expense of readability.
Now memory is cheap. It is better to focus on readability. People are still being taught old habits, because the teachers don't know why we did it that way.