By Tim Greene
In Linux, the uniq command can help find out the individual users who are logged into a given server, but it’s not a straightforward process.
Yes, using the command on its own yields a list of who’s logged in, but it can list individual users more than once depending on what they’re doing.
There are ways to get around this by sorting the results of uniq so they deliver only once the names of all the users. This 2-Minute Linux Tip video by Network World’s Unix as a Second Language blogger Sandra Henry Stocker shows how to do just that. Click below.
This story, “How to use the Linux uniq command” was originally published by
Tim Greene is executive editor of Network World.
Copyright © 2019 IDG Communications, Inc.