I logged into the linux system and try to get all the current users. I used
users command in terminal and the result is displayed as "user1 user2 user3 user4".
Are there any ways to break the username line and make each username occupy one line?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
from https://stackoverflow.com/a/37843747/52074 this solution has 6 upvotes:
users | xargs -n 1