Run a command on Shutdown?
3270
Execute command before shutdown/reboot
130015
How do I shut down or reboot from a terminal?
4311
Running a CMD or BAT in silent mode
127231
Bash Run command for certain time?
7213
Conveniently schedule a command to run later?
33313
On Linux can I keep a program running in background even after I disconnect?
143804
How to run a command or script at screen lock/unlock?
12663
How can I run a script on boot?
1327
how would I run a script or application when idle?
65829
How to run a command as a user whose login is disabled?
111142
How to run a command at startup
130560
How to supervise and automatically restart a process?
20385
How to run a command at login?
92058
How do I get "restart" option in the shutdown menu in Unity?
113099
Using The Terminal Command to Shutdown, Restart and Sleep My Mac?
112706
How do I run a script in the background and leave it running when I log out?
41999
How to run a script with systemd right before shutdown?