w:tldr:e7c57
w: Show logged-in users info without a header.
$ w -h
try on your machine
The command "w -h" displays a summary of the currently logged-in users on a Linux or Unix-like system, but excludes the header information.
The "w" command itself shows the following details about each user:
- USER: The username of the logged-in user.
- TTY: The terminal device or pseudo-terminal associated with the user.
- FROM: The remote hostname or IP address from where the user is logged in.
- LOGIN@: The time when the user logged in.
- IDLE: The duration of inactivity for the user.
- JCPU: The amount of time used by all processes attached to the user's terminal.
- PCPU: The amount of time used by the current process.
- WHAT: The current command or program being run by the user.
By adding the "-h" option, the header line that typically appears at the top of the output (which includes the column names) is omitted. This can make the output more concise and easier to parse when scripting or automating tasks that involve monitoring user activity.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.