ls -l

Randy Suess randy at chinet.chi.il.us
Sat Dec 9 03:42:00 AEST 1989


In article <1989Dec1.093729.20250 at dlcq15.datlog.co.uk> scm at dlcq15.datlog.co.uk (Steve Mawer) writes:
]In article <21519 at adm.BRL.MIL> SIMSN%NUSDISCS.BITNET at cunyvm.cuny.edu writes:
]> What could be the possible reasons that cause ls -l
]> to be slow, i.e. one line at a time at 1 sec interval?
]On AIX (spit!) I've found that this happens when the user and/or group IDs
]don't exist in the password and/or group files.  With lots of entries in
]the password file it takes a looooooong time to not find a name.

	Another possibility is that you have a large /etc/passwd file.
	ls -l looks up the name and group for the actual uid and
	gid.  This gets real slow.  To find out if this is the case,
	use ls -n.  This will just print out the numeric uid/gid without
	the passwd lookup.  It should be a lot faster if this is the problem.
-randy
-- 
Randy Suess
randy at chinet.chi.il.us



More information about the Comp.unix.questions mailing list