Name

log - Display log files

Syntax

log [ option ]

Description

Log displays the various contents of the system’s log files. Log, without any options, displays actual logins only. Other events can be shown selectively by specifying the following options:

-a

Show entire log, same as cat $spool/logs/syslog.

-c

Lists all cron and kybd tasks that were issued.

-g

Display log of guest callers only.

-m

Display the mdss log, same as cat $spool/logs/mdsslog.

-M

Lists only the major entries in the mdss log.

-mp

Prints only mdss POLL attempt entries.

-mm

Prints only MDSS login entries.

-n

Lists the newsgroup processing log, same as cat $spool/logs/newslog.

-s

Display the server’s log, same as cat $spool/logs/servlog.

-u

Display the new user log, same as cat $spool/logs/adduser.log.

Example:

log -c

shows the log of cron events and local commands that have occurred.

Files

$spool/logs/adduser.log
new user log file,
$spool/logs/mdsslog
mail delivery subsystem log file,
$spool/logs/newslog
newsgroup log file,
$spool/logs/servlog
file server log file,
$spool/logs/syslog
system log file.

Note

Because log is a shell script, multiple options cannot be selected.

See Also

calls(C), uutraf(NET)