To send desktop notification use notify-send command in Linux.
notify-send "Hello Vijay"
it will pop a notification window with message Hello Vijay.
-t Specifies the timeout in milliseconds at which to expire the notification.
notify-send -t 5000 "Hello Vijay"
the above command will pop up a notification window for 5 seconds