Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!texbell!nuchat!buster!rli From: rli@buster.irby.com (Buster Irby) Newsgroups: comp.unix.wizards Subject: Re: ls -A Message-ID: <603@buster.irby.com> Date: 9 Oct 89 08:56:24 GMT References: <15@minya.UUCP> <14611@bloom-beacon.MIT.EDU> <1989Oct7.191435.26382@rpi.edu> <1248@virtech.UUCP> <6466@ficc.uu.net> Distribution: na Organization: Buster Irby, Stafford, Tx Lines: 30 peter@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