How to use the Linux uniq command

The uniq command in Linux is valuable for finding out who’s logged into a server

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.

YT embed code:

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

More about ClickLinuxMinute

Show Comments
[]