W -Command
Purpose
Display who is logged into the Linux/Unix server and what they are doing at command execution time
Syntax
The basic syntax is looks like this
w
w [UserNameHere]
w [UserNameHere1] [UserNameHere2]
w [options]
w [options] [UserNameHere]
w [UserNameHere]
w [UserNameHere1] [UserNameHere2]
w [options]
w [options] [UserNameHere]
Understanding w command output / header
The w command shows the following information about each user and their process on the system:
- USER – User name.
- TTY – Terminal type such as pts/0 or console.
- FROM – The remote host name or IP address.
- LOGIN@ – Login time.
- IDLE – Idel time.
- JCPU – The JCPU time is the time used by all processes attached to the tty.
- PCPU – The PCPU time is the time used by the current process displayed in WHAT field.
- WHAT – The command line of USER’s current process.
w command examples
To see who is currently logged in and what they are doing on your Linux/Unix-based server, type:
$ w
No comments:
Post a Comment