• 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

dunstify: command not found

by Deepika

“dunstify” is a command line tool for creating desktop notifications on Linux systems using the Dunst notification daemon. Dunst is a lightweight and customizable notification daemon for Linux, and dunstify is a command line interface for creating and manipulating notifications.

The basic syntax for creating a notification with dunstify is:

# dunstify [options] "message"

The “message” parameter is the text that will be displayed in the notification. Dunstify also accepts several options such as:

  • -u or –urgency to set the urgency level of the notification.
  • -r or –replace to replace an existing notification with the same ID.
  • -i or –icon to specify an icon that will be displayed in the notification.
  • -t or –timeout to set the duration of the notification.

Dunstify is a part of Dunst package, it’s not a built-in command in all Linux distributions, you may need to install Dunst package first before you can use dunstify command.

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

dunstify: command not found

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

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

dunstify Command Examples

1. Show a notification with a given title and message:

# dunstify "Title" "Message"

2. Show a notification with specified urgency:

# dunstify "Title" "Message" -u low|normal|critical

3. Specify a message ID (overwrites any previous messages with the same ID):

# dunstify "Title" "Message" -r 123

4. To see other possible options:

# notify-send --help

Filed Under: Linux

Some more articles you might also be interested in …

  1. DHCP configuration file /etc/dhcp/dhcpd.conf explained
  2. groupmems Command Examples in Linux
  3. virsh Command Examples in Linux
  4. CentOS / RHEL : How to create a Thinly Provisioned Logical Volume
  5. CentOS / RHEL 6,7 : How to delete an iSCSI Target on the initiator (iSCSI client)
  6. nmcli Command Examples in Linux
  7. id Command Examples in Linux
  8. /var/cache/yum Constantly Filling Files System in CentOS/RHEL
  9. Why Does “/var/log/messages” Report Martian Packets
  10. What are Bash Exit Codes in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • fprintd-delete Command Examples in Linux
  • fprintd-delete: command not found
  • foreman: command not found
  • foreman Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright