• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

i3lock: command not found

by Deepika

i3lock is a simple screen locker built specifically for the i3 window manager. It is designed to provide an easy and secure way to lock the screen and prevent unauthorized access to a user’s open windows and files. i3lock uses the PAM (Pluggable Authentication Modules) library to authenticate users, which means it can be configured to use various authentication methods such as password, fingerprint, or smart card.

One of the key features of i3lock is its ability to display an image or animation as the background while the screen is locked. This can be useful for personalizing the lock screen or providing visual cues to the user. i3lock also has the option to use a color for the background instead of an image, and also it has the ability to display the date and time on the screen, allowing users to quickly check the time without having to unlock the screen.

Additionally, i3lock can be configured to automatically lock the screen after a certain period of inactivity, providing an added layer of security to the system.

If you encounter the below error while running the command i3lock:

i3lock: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install i3lock
Ubuntu apt-get install i3lock
Alpine apk add i3lock
Arch Linux pacman -S i3lock
Kali Linux apt-get install i3lock
Fedora dnf install i3lock
Raspbian apt-get install i3lock

i3lock Command Examples

1. Lock the screen showing a white background:

# i3lock

2. Lock the screen with a simple color background (rrggbb format):

# i3lock --color 0000ff

3. Lock the screen to a PNG background:

# i3lock --image path/to/file.png

4. Lock the screen and disable the unlock indicator (removes feedback on keypress):

# i3lock --no-unlock-indicator

5. Lock the screen and don’t hide the mouse pointer:

# i3lock --pointer default

6. Lock the screen to a PNG background tiled over all monitors:

# i3lock --image path/to/file.png --tiling

7. Lock the screen and show the number of failed login attempts:

# i3lock --show-failed-attempts

Filed Under: Linux

Some more articles you might also be interested in …

  1. What is chroot jail in Linux
  2. How to Configure ACL(Access Control Lists) in Linux FileSystem
  3. netplan: command not found
  4. How to Change the Default Timeout Settings for Telnet Session in CentOS/RHEL
  5. xrpd: command not found
  6. arp: command not found
  7. How to install git on ubuntu 16.04
  8. Linux OS service ‘dhcpd’
  9. join Command Examples in Linux
  10. Linux OS Service ‘cpuspeed’

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright