Quick reference guide Linux

Previous Contents Index Next 

8. Local information

date U
Print the system date and time  
hostname U
Show the system's host name  
last[-n] [name] U
Indicate last logins by user name (limit output to n lines).  
plan [-h] [-d] [-v] [-t [date [n]]] P
plan [mmdd]hhmm [message]  
Interactive X/Motif calendar and day planner. Without arguments it starts up with a calendar window. With options it displays a help text (-h), version information (-v), X resources (-d) or appointments (-t) for (n days starting with) date (or today). With a time argument it adds an appointment.  
uname [-snrvma] U
Print system information (sysname, nodename, release, version, machine, all)  
uptime U
Tell how long the system has been running and the average load over the last 1, 5 and 15 minutes.  
w [-hsu] [name] U
Show who is logged on and what they are doing (preferred over who).  
who U
Show who is logged on. Options and output vary with the UNIX flavor.  
whoami U
Print effective userid (can be different from login userid, see su).  
ypcat [-k] [mapname] U
List all values stored in (NIS) mapname. Option -k displays also map keys.  
yplist [-s] [netgroup] N
List contents of netgroup (in NIS map netgroup). With option -s list subgroups of netgroup or the primary groups.  
ypmatch [-k] key mapname U
Print key values in NIS map mapname. Typical usage:
ypmatch username passwd
 

Previous Contents Index Next