/usr/ucb/u - (nf)

alt at Sri-Tsc.ARPA alt at Sri-Tsc.ARPA
Wed Apr 4 05:42:00 AEST 1984


From:  E. Howard Alt <alt at Sri-Tsc.ARPA>


Actually, /usr/ucb/u is linked to /usr/ucb/users.  The reason
/usr/ucb/w checks for u as the first character in argv[0] is to see if
the name is 'uptime' (too lazy to do a strcmp I guess).
/usr/ucb/uptime is linked to /usr/ucb/w.  u displays a list of users in
alpha order, uptime dispalys the first line of w (number of users, load
average, etc).

This is how it is set up on the 4.1 and 2.9 systems that I have seen.
I am pretty sure this is how 4.2 is set up.

							Howard.



More information about the Comp.unix.wizards mailing list