Answers for "start a program on startup ubuntu"

1

how to run a command on startup in linux ubuntu or centos

sudo nano /etc/rc.local   ## add your command 
 #!/bin/bash     ## add this in head file and your any command
 sudo chmod +x /etc/rc.local  ##for change accses file
 sudo init 6    ## for reboot
Posted by: Guest on October-06-2021
3

ubuntu startup script

add the command to /home/$USER/.bashrc
Posted by: Guest on September-26-2021

Code answers related to "start a program on startup ubuntu"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language