This is the command lnav that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
lnav - ncurses-based log file viewer
lnav [-hVsar] [logfile1 logfile2 ...]
The log file navigator, lnav, is an enhanced log file viewer that takes advantage of any
semantic information that can be gleaned from the files being viewed, such as timestamps
and log levels. Using this extra semantic information, lnav can do things like
interleaving messages from different files, generate histograms of messages over time, and
providing hotkeys for navigating through the file. It is hoped that these features will
allow the user to quickly and efficiently zero in on problems.
? View/leave the online help text.
q Quit the program.
-h Print help and exit
-H Display the internal help text.
Write debug messages to the given file.
-V Print version information.
-s Load the most recent syslog messages file.
-a Load all of the most recent log file types.
-r Load older rotated log files as well.
-t Prepend timestamps to the lines of data being read in on the standard input.
Write the contents of the standard input to this file.
The log files or directories to view. If a directory is given, all of the files in
the directory will be loaded.
To load and follow the syslog file:
To load all of the files in /var/log:
To watch the output of make with timestamps prepended:
make 2>&1 | lnav -t
Use lnav online using onworks.net services