This is the README file for Lab2
Here are some shortened definitions of some simple UNIX commands and options... These definitions are according to the
integrated manual. (man command)
'w' displays information about the users currently on the machine, and
their processes. The header shows, in this order, the current time,
how long the system has been running, how many users are currently
logged on, and the system load averages for the past 1, 5, and 15 min-
utes.
The following entries are displayed for each user: login name, the tty
name, the remote host, login time, idle time, JCPU, PCPU, and the com-
mand line of their current process.
'finger' displays information about the system users
Options are:
-s Finger displays the user's login name, real name, terminal name and
write status (as a ``*'' after the terminal name if write permis-
sion is denied), idle time, login time, office location and office
phone number.
Login time is displayed as month, day, hours and minutes, unless
more than six months ago, in which case the year is displayed
rather than the hours and minutes.
Unknown devices as well as nonexistent idle and login times are
displayed as single asterisks.
-l Produces a multi-line format displaying all of the information
described for the -s option as well as the user's home directory,
home phone number, login shell, mail status, and the contents of
the files ``.plan'', ``.project'', ``.pgpkey'' and ``.forward''
from the user's home directory.
If write permission is denied to the device, the phrase ``(messages
off)'' is appended to the line containing the device name. One
entry per user is displayed with the -l option; if a user is logged
on multiple times, terminal information is repeated once per login.
Mail status is shown as ``No Mail.'' if there is no mail at all,
``Mail last read DDD MMM ## HH:MM YYYY (TZ)'' if the person has
looked at their mailbox since new mail arriving, or ``New mail
received ...'', `` Unread since ...'' if they have new mail.
-p Prevents the -l option of finger from displaying the contents of
the ``.plan'', ``.project'' and ``.pgpkey'' files.
-m Prevent matching of user names. User is usually a login name; how-
ever, matching will also be done on the users' real names, unless
the -m option is supplied. All name matching performed by finger
is case insensitive.
If no options are specified, finger defaults to the -l style output if
operands are provided.
If no arguments are specified, finger will print an entry for each user
currently logged into the system.
Finger may be used to look up users on a remote machine. The format is
to specify a user as ``user@host'', or ``@host''. The -l option is the only option that
may be passed to a remote machine.
'Who' - show who is logged on
-a, --all
same as -b -d --login -p -r -t -T -u
-b, --boot
time of last system boot
-d, --dead
print dead processes
-H, --heading
print line of column headings
-l, --login
print system login processes
--lookup
attempt to canonicalize hostnames via DNS
-m only hostname and user associated with stdin
-p, --process
print active processes spawned by init
-q, --count
all login names and number of users logged on
-r, --runlevel
print current runlevel
-s, --short
print only name, line, and time (default)
-t, --time
print last system clock change
-T, -w, --mesg
add user's message status as +, - or ?
-u, --users
list users logged in
--message
same as -T
--writable
same as -T
--help display this help and exit
--version
output version information and exit
'Uptime'
gives a one line display of the following information. The cur
rent time, how long the system has been running, how many users are
currently logged on, and the system load averages for the past 1, 5,
and 15 minutes.
This is the same information contained in the header line displayed by
w(1).
'Mv' - move (rename) files
Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
Mandatory arguments to long options are mandatory for short options
too.
--backup[=CONTROL]
make a backup of each existing destination file
-b like --backup but does not accept an argument
-f, --force
do not prompt before overwriting