Answers for "linux startup"

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
5

how to run script in linux at startup

crontab -e	// To make a crontab file
@reboot *your shell command here*	// to run at startup
Posted by: Guest on June-02-2021
3

ubuntu startup script

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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language