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

0

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

Code answers related to "how to run a command on startup in linux ubuntu or centos"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language