who command

Unix who command



who command without argument will show the details about the users who are logged-in and system details.


pts/0 -> logged-in from another system : ip address details after date and time
:0 ->  logged in console : date and time

who -H

Display the account information with column names

$who -H

who -m

To show only hostname and user associated with stdin.

who -b

To know when the system was last booted.Adding the -u option allows for listing of logged on users in the same output.

$who -b
$who -bu

who -r

To know system run state.

$who -r

who -q

Count logged-in users along with one line list of users

$who -q

who -d

To show the dead processes.

$who -d

who -p

To see active processes spawned by init, use the -p option.

$who -p

Aliases crested for who command

$tail -5 .bashrc

If you like dEexams.com and would like to contribute, you can also write your article here or mail your article to admin@deexams.com . See your article appearing on the dEexams.com main page and help others to learn.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Python if , elif and else

Python Conditions and If statements

  • 0
Python for beginners

Learning Python Part 1

  • 3
Struct Alignment and Padding

Struct Alignment and Padding in C++ And C

  • 0
Friend function

Friend function C++

  • 0

C++ Pointers

  • 0

C++ Structures

  • 0
Types of Inheritance in C++

Inheritance and access specifiers C++

  • 0
Java date pattern

Java Date Pattern Syntax

  • 0
Java Date and Calendar

Java Date formats

  • 0
JAVA Data Type

Data types in Java

  • 0
Java unreachable code

Unreachable Code Error in Java

  • 0

Post Comment





Forgot Password

Please enter your email address below and we will send you information to change your password.