In linux, what command do you use to just get list of all users currently logged in (to use in a for loop of a shell script, for example)?
Answer
users
Question
In linux, what command do you use to just get list of all users currently logged in (to use in a for loop of a shell script, for example)?
Answer
?
Question
In linux, what command do you use to just get list of all users currently logged in (to use in a for loop of a shell script, for example)?
Answer
users
If you want to change selection, open document below and click on "Move attachment"
11. User Accounts and Ownerships lude past background jobs, but does include currently running background jobs. The PCPU time is the time used by the current process, named in the "what" field. Finally, from a shell script the <span>users command is useful for just seeing who is logged in. You can use in a shell script, for example: for user in `users` ; do <etc> done 11.7.4 The id command and effective UID id prin
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.