From the course: LPIC-1 Exam 102 (Version 5.0) Cert Prep

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Determine which users have logged in

Determine which users have logged in - Linux Tutorial

From the course: LPIC-1 Exam 102 (Version 5.0) Cert Prep

Start my 1-month free trial

Determine which users have logged in

- [Instructor] Often an administrator needs to know who is logged in now or even who was logged in in the past. Let's start by talking about finding out who is logged in right now. The simplest command for this purpose is users. Type in users into a terminal and hit Enter. This will list the users logged into the system. It doesn't tell very much information though. The who command gives a bit more. Type in who and hit Enter. We see who is logged in and when they did so, as well as what screen they're on. The next step is to go to the w command, perhaps the shortest command in Linux. Type in w and hit Enter. This method is my favorite. It shows all the information of the who command, but also what the user's running and how much CPU time it's taking. Notice the header. It shows the current time, how long the system has been running, and how many users are logged in. And the system load averages for the past…

Contents