Howtodojo logo
  • Home 
  • About 
  • Certifications 
  • Sample Database 
  • Cheatsheet 
  • Glossary 
  • Blog 
  • Tags 
  1.   Blog
  1. Home
  2. Blog
  3. lslogins: command not found [How To Fix]

lslogins: command not found [How To Fix]

Share via
Howtodojo
Link copied to clipboard

Learn how to fix lslogins: command not found error message in this article. We will learn fixing this error message on several Linux distributions including Ubuntu and CentOS / AlmaLinux. We will also learn to resolve this problem on MacOS X

On this page
Problem   How To Fix lslogins: command not found in Alpine   How To Fix lslogins: command not found CentOS / Alma Linux / Oracle Linux / Red Hat Enterprise Linux (RHEL)   How To Fix lslogins: command not found in OS X  
lslogins: command not found [How To Fix]

Problem  

When you run lslogins command in linux terminal / console, you get the following error message

lslogins: command not found
```bash

## Solutions to lslogins: command not found {#h-solution-to-lslogins-not-found}

### How To Fix lslogins: command not found in Ubuntu / Debian / Kali Linux / Raspbian {#h-how-to-fix-lslogins-command-not-found-ubuntu}

To fix this problem, we can install lslogins using the command below.

```bash
sudo apt-get -y install util-linux

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install util-linux.

sudo apt -y install util-linux
```bash

Or if you have aptitude installed you can use the following command.

```bash
sudo aptitude install util-linux

How To Fix lslogins: command not found in Alpine  

In Alpine Linux, we can install lslogins using the command below.

apk add util-linux
```bash

### How To Fix lslogins: command not found in Arch Linux {#h-how-to-fix-lslogins-command-not-found-archlinux}

In Arch Linux, to fix this error message, we can install lslogins using the command below.

```bash
pacman -S util-linux

How To Fix lslogins: command not found CentOS / Alma Linux / Oracle Linux / Red Hat Enterprise Linux (RHEL)  

In CentOS or other RHEL based Linux distribution, we can install lslogins using the command below.

yum install util-linux
```bash

### How To Fix lslogins: command not found in Fedora {#h-how-to-fix-lslogins-command-not-found-fedora}

In Fedora we can use `dnf` command to install lslogins using the command below.

```bash
dnf install util-linux

How To Fix lslogins: command not found in OS X  

To fix this problem, we can install lslogins using the command below.

brew install util-linux
```bash

## Related Articles {#h-references}

* [lslogins Command in Linux][1]
* [Linux Command Line Tutorial][2]
* [util-linux][3]
* <a href="https://github.com/karelzak/util-linux" target="_blank" rel="noreferrer noopener nofollow">GNU util-linux Website</a>

 [1]: https://www.howtodojo.com/linux-lslogins-command/
 [2]: https://www.howtodojo.com/linux-commands/
 [3]: https://www.howtodojo.com/tags/util-linux/
 lsmem: command not found [How To Fix]
lslocks: command not found [How To Fix] 
On this page:
Problem   How To Fix lslogins: command not found in Alpine   How To Fix lslogins: command not found CentOS / Alma Linux / Oracle Linux / Red Hat Enterprise Linux (RHEL)   How To Fix lslogins: command not found in OS X  
Follow me

We publish tutorials, tips and tricks about Linux, open source, cloud computing, and infrastructure

     
Copyright © 2012 - 2025 howtodojo.com. |
Howtodojo
Code copied to clipboard