ls -A

Buster Irby rli at buster.irby.com
Mon Oct 9 18:56:24 AEST 1989


peter at ficc.uu.net (Peter da Silva) writes:

>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.

Peter, you must be using a different ls than the rest of us.  ls -l 
under System V/386 gives you both the user id and group id regardless
of who you are.  

     from ls(1) - Unix System V/386

     -l   List in long format, giving mode, number of links, owner, group,
          size in bytes, and time of last modification for each file.
          If the file is a special file, the size field will instead
          contain the major and minor device numbers rather than size.

     -o   Same as -l except that group is not printed.

     -g   Same as -l except that owner is not printed.

This is true of ls(1) on both the System V/386 and standard 
System V as distributed on AT&T 3B2 machines.  You must be confusing 
Unix behavior with Xenix behavior, and they are not the same.
-- 
Buster Irby  buster!rli



More information about the Comp.unix.wizards mailing list