Collecting information about the operating environment, logged in users, the time for which the computer has been powered on, and any boot failures are very helpful. This recipe will go through a few commands used to gather information about a live machine.
This recipe will introduce the commands
To obtain information about users currently logged in to the machine use:
$ who slynux pts/0 2010-09-29 05:24 (slynuxs-macbook-pro.local) slynux tty7 2010-09-29 07:08 (:0)
$ w 07:09:05 up 1:45, 2 users, load average: 0.12, 0.06, 0.02 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT slynux pts/0 slynuxs 05:24 0.00s 0.65s 0.11s sshd: ...