IT Questions and Answers :)



A message to our readers about COVID-19

With the uncertainty surrounding the outbreak of the corona virus. We want to reassure our reader stay safe and Healthy.Be aware and alert. Work as one nation. Sanitize and disinfect all equipment before entering your home, work and anywhere.

Monday, May 20, 2019

Which of the following is a valid command in Linux?

Which of the following is a valid command in Linux?

  • w
  • x
  • t
  • y
Which of the following is a valid command in Linux?


Thw w command display who is logged into the Linux and Unix-like server, and what they are doing at command execution time. The syntax is:
I suggest that you either read Linux w command examples page or see Linux w command man page for more information.

When you type "man {name of command}" in terminal, you most often will get info from the Linux Manual on that command (note: do not enter the brackets when typing the command). i.e - man w
NAME w - Show who is logged on and what they are doing.

SYNOPSIS w [-husfVo] [user]

w displays information about the users currently on the machine, and their processes. The header shows, in this order, the current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.
The following entries are displayed for each user: login name, the tty name, the remote host, login time, idle time, JCPU, PCPU, and the command line of their current process.
The JCPU time is the time used by all processes attached to the tty. It does not include past background jobs, but does include currently running background jobs.





Post a Comment

Popular Posts