← 返回命令列表

Linux command

notify-send 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Send notification

notify-send "[Title]" "[Message body]"

Set urgency level

notify-send -u [critical] "[Alert]" "[System error]"

Set expiration time

notify-send -t [5000] "[Title]" "[Message]"

Add icon

notify-send -i [dialog-information] "[Info]" "[Details]"

Set category

notify-send -c [email] "[New Email]" "[Subject]"

Set app name

notify-send -a "[MyApp]" "[Title]" "[Message]"

说明

notify-send sends desktop notifications. Uses the desktop notification system. The tool displays popup messages. Part of libnotify for GNOME and other desktops.

参数

-u _LEVEL_
Urgency (low, normal, critical).
-t _MS_
Timeout in milliseconds.
-i _ICON_
Icon name or path.
-c _CATEGORY_
Notification category.
--help
Display help information.

FAQ

What is the notify-send command used for?

notify-send sends desktop notifications. Uses the desktop notification system. The tool displays popup messages. Part of libnotify for GNOME and other desktops.

How do I run a basic notify-send example?

Run `notify-send "[Title]" "[Message body]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -u _LEVEL_ do in notify-send?

Urgency (low, normal, critical).