In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of how to use the Linux w command, the content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading this Linux w command article. Let's take a look at it.
The commonly used Linux command w command is used to display the information of users who are currently logged into the system. By executing this command, you can know who are currently logged in to the system and the programs they are executing. Executing the w command alone will display all users, or you can specify the user name and only display the relevant information of a user.
Syntax w [- fhlsuV] [user name]
Parameter description:
-f turns on or off showing where the user logs in to the system. -h does not display the title information column of each field. -l uses a detailed format list, which is the default value. -s uses a concise format list and does not show the login time of the user, the CPU time spent by the terminal phase jobs and programs. -u ignores the name of the executing program and the information that the program takes CPU time. -V displays version information. Example
Show current user
# w / / displays the login information of the current user and the command executed 19:50:14 up 9:27, 4 users, load average: 0.31,0.26 0.18USER TTY FROM LOGIN@ IDLE JCPU PCPU WHATroot tty7: 0 Thu12 310.18USER TTY FROM LOGIN@ IDLE JCPU PCPU WHATroot tty7 39m 10:10 0.60s gnome-sessionroot pts/0: .0.0 17:09 2V 18m 15.26s 0.15s bashroot pts/1 192.168.1.17 18:51 1.00s 1.24s 0.14s-bashroot pts/2 192.168.1.17 19:48 60.00s 0.05s 0.05s-bash
Do not show login location
W-f19 users 53 up 59 up 9:31, 4 users, load average: 0.05,0.16, 0.15USER TTY LOGIN@ IDLE JCPU PCPU WHATroot tty7 Thu12 31V 43m 10:10 0.60s gnome-sessionroot pts/0 17:09 2load average 21m 15.26s 0.15s bashroot pts/1 18:51 0.00s 1.04s 0.14s-bashroot pts/2 19:48 4V 450.05s 0.05s-bash
Display in compact mode
W-s 19 users 54 up 37 up 9:31, 4 users, load average: 0.24,0.19, 0.16USER TTY FROM IDLE WHATroot tty7: 0.31 load average 43m gnome-sessionroot pts/0: 0.02gnome-sessionroot pts/0 22m bashroot pts/1 192.168.1.17 0.00s-bashroot pts/2 192.168.1.17 5:23-bash
Do not display the title
W-hroot tty7: 0 Thu12 31 gnome-sessionroot pts/0 44m 10:10 0.60s gnome-sessionroot pts/0: 0.017:09 2hroot tty7 23m 15.26s 0.15s bashroot pts/1 192.168.1.17 18:51 0.00s 1.05s 0.14s-bashroot pts/2 192.168.1.17 19:48 0.05s 0.05s-bash on "how to use the w command of Linux" is introduced here. Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to use the w command of Linux". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.