ls -A

Guy Harris guy at auspex.auspex.com
Tue Oct 10 06:35:05 AEST 1989


 >Another difference in 'ls' when you're root, of course, is that you get the
 >owner and group displayed in the 'ls -l' listing, instead of just the owner.
 >
 >This is nice, though surprising to new super-users.
 >
 >How do you get this behaviour when you're NOT root? ls -g just gives the group
 >and not the owner.

You replace whatever Mutant UNIX From Hell you're running with one that
offers an "ls" that's either more like vanilla S5 or vanilla 4.xBSD than
the one you have, and:

	1) if it's more like vanilla S5, just do "ls -l", and get the
	   owner and group *regardless* of the UID under which it's
	   running;

	2) if it's more like vanilla 4.xBSD, just do "ls -lg", and get
	   the owner and group *regardless* of the UID under which it's
	   running.



More information about the Comp.unix.wizards mailing list