Send Desktop Notifications from the Terminal with notify-send
Use notify-send to pop up a desktop notification when a long command finishes, with optional icons, urgency and timeouts.
01Command
$ notify-send "Backup finished" "All files copied successfully"02What it does
notify-send talks to the desktop's notification daemon over D-Bus, so it works on GNOME, KDE, XFCE and any environment that implements the standard. A handy pattern for long jobs is `./long-task.sh; notify-send "Done" "long-task exited $?”` — or add `-u critical` so the popup stays until dismissed. Add `-t 5000` to control how long the popup shows (milliseconds).
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- notify-send(1) - Linux manual pageEvidence: notify-send sends a desktop notification to the notification daemon, with options for summary, body, icon (-i) and urgency level (-u).
Last verified: 2026-09-18 · Category: System & Settings
06Related solutions
Refresh the package index from all configured repositories, then install newer versions of every upgradable package.
Find every occurrence of a pattern across all files in a tree, printed as file:line:number matches.
Unpack a gzipped tarball into the current directory while printing each file as it is extracted.