CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
8
You visited us 8 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following commands can be used to get information about all users who are currently logged into the system?

A
which
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
who
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
who am i
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
None of the above
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C who

The standard UNIX command who displays a list of users who are currently logged into the computer. The who command is related to the command w, which provides the same information but also displays additional data and statistics.

The who command is used to get information about currently logged in user on to system. Output of the who command contains the following columns: user name, tty number, date and time, machine address.

Users commandis used to print the user name who are all currently logged in the current host. It is one of the command don’t have any option other than help and version. If the user using, ‘n’ number of terminals, the user name will show in ‘n’ number of time in the output. The who command is related to the command w, which provides the same information but also displays additional data and statistics.



flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Computers in Accounting
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon