Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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 
 
PREVIOUS NEXT
Tagged: #run #command #startup #linux #ubuntu #centos
ADD COMMENT
Topic
Name
7+6 =