Forrest logo
back to the notify-send tool

notify-send:tldr:49e93

notify-send: Show a notification for 5 seconds.
$ notify-send -t 5000 "${Test}" "${This is a test}"
try on your machine

The command "notify-send" is used to display desktop notifications on Linux systems. Here's what each part of the command does:

  • "notify-send" is the actual command that triggers the notification.
  • "-t 5000" sets the timeout duration for the notification to 5000 milliseconds (5 seconds). After this time, the notification will automatically disappear.
  • "${Test}" is a variable that represents the title of the notification. The actual value of the variable must be defined elsewhere in the script or command.
  • "${This is a test}" is a variable that represents the message or content of the notification. Like the title, the value of this variable must be assigned beforehand.

In summary, this command will display a desktop notification with a title "Test" and a message "This is a test". The notification will remain visible for 5 seconds.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the notify-send tool