Linux supports commands to report aspects of the runtime system including logged in users, how long the computer has been powered on, and boot failures. This data is used to allocate resources and diagnose problems.
Collecting information about logged in users, boot logs, and boot failures
Getting ready
This recipe introduces the who, w, users, uptime, last, and lastb commands.
How to do it...
- The who command reports information about the current users:
$ who slynux pts/0 2010-09-29 05:24 (slynuxs-macbook-pro.local) slynux tty7 2010-09-29 07:08 (:0)
This output lists the login...