Just get logged in users with users commandĪll the commands you saw so far give you a lot of information about the logged in users. You can also see the login time and the IP address of the logged on user. Just type who and it will show who is logged on to your Linux system currently. You can see this current process under the WHAT column. JCPU is the time used by all processes attached to the TTY and PCPU is the time used by the current process running by the user. You can also see for how long a user has been idle (slacking at work? :D). It shows the IP address of the user’s computer and login time. pts means pseudo terminal slave which indicates that the user logged in via SSH connection. TTY gives you information about the terminal used to log on. The same terms would be used in other commands as well. Let me explain a few terms in the output of the w command. wĪnd here is the output for the w command: wĠ9:54:54 up 26 min, 3 users, load average: 0.00, 0.00, 0.00 Use w command to see logged in users in LinuxĬan it get any simpler than this? Just type a single letter command in the terminal and it will show the currently logged users in Linux. If you know a little about the directory structure in Linux, you know that these two directories contains data about the running processes on your system. 4 Commands to see logged users on LinuxĪlmost all these commands rely on the data stored in the /var or /proc directory. In this tutorial, I’ll show you various ways you list logged in users in Linux. If you are on a multi-user Linux environment like a Linux server, checking logged in users could be useful and fun at the same time. Have you ever been curious about who is logged in to your Linux system? You can always list all the users on your Linux system but not all of them would be logged in all the time.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |