• 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

dmenu: command not found

by Deepika

dmenu is a command-line program for Unix-like operating systems that provides a dynamic menu for launching other programs. It is commonly used as a launcher in window managers that follow the Unix philosophy of modularity and reusability. dmenu reads a list of newline-separated items from stdin, and shows them in a vertically scrolling list. The user can then select an item by typing a part of the item’s text and pressing Enter. The selected item is then printed to stdout.

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

dmenu: command not found

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

Distribution Command
Debian apt-get install suckless-tools
Ubuntu apt-get install suckless-tools
Alpine apk add dmenu
Arch Linux pacman -S dmenu
Kali Linux apt-get install suckless-tools
Fedora dnf install dmenu
OS X brew install dmenu
Raspbian apt-get install suckless-tools

dmenu Command Examples

1. Display a menu of the output of the `ls` command:

# ls | dmenu

2. Display a menu with custom items separated by a new line (`\n`):

# echo -e "red\ngreen\nblue" | dmenu

3. Let the user choose between multiple items and save the selected one to a file:

# echo -e "red\ngreen\nblue" | dmenu > color.txt

4. Launch dmenu on a specific monitor:

# ls | dmenu -m 1

5. Display dmenu at the bottom of the screen:

# ls | dmenu -b

Filed Under: Linux

Some more articles you might also be interested in …

  1. Understanding the /proc/mounts, /etc/mtab and /proc/partitions files
  2. dnf: command not found
  3. How to Create and Query a BTRFS File System
  4. enum4linux Command Examples in Linux
  5. How to show line numbers in Gedit
  6. sysctl: command not found
  7. How to copy directories recursively using rsync while excluding specific files
  8. CentOS / RHEL 5 : How to rebuild Initial Ramdisk Image
  9. How to Install awscli
  10. K3b Nero like CD/DVD Burning Software in Ubuntu Linux

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