Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

Automatically run program on Linux startup via rc.local

$ sudo vi /etc/rc.local
Comment

Automatically run program on Linux startup via rc.local

#!/bin/bash

exit 0
Comment

Automatically run program on Linux startup via rc.local

#!/bin/bash

/sbin/ip addr | grep inet | tail -n1 | awk '{ print $2 }' > /etc/issue
echo "" >> /etc/issue

exit 0
Comment

Automatically run program on Linux startup via rc.local

$ sudo chmod a+x /etc/rc.local
Comment

PREVIOUS NEXT
Code Example
Shell :: powershell remove remove startup text 
Shell :: using awk and cat and grep 
Shell :: restart docker cmd 
Shell :: how to apply password to folder and file shell scripting in linux 
Shell :: git the host name ubuntu 
Shell :: command to push code to github 
Shell :: pip3 or pip? 
Shell :: ss command in linux 
Shell :: ssh debug 
Shell :: secure copy linux 
Shell :: copy folder from ssh server to local 
Shell :: delete all git ignored files 
Shell :: linux cut all but last field 
Shell :: add existing project on github 
Shell :: login message on mac 
Shell :: packet8 
Shell :: run command and Exit cts 
Shell :: pinch on linux 
Shell :: git remove one commit in the middle 
Shell :: Create directory junction in powershell 
Shell :: Elden Bash Install Script 
Shell :: sed bahs 
Shell :: bash add element to front of array 
Shell :: restart hamachi fedora 
Shell :: prevent mysql from running on every boot or restart 
Shell :: powershell message all users on remote machine(s) 
Shell :: command to display topmost cpu intensive running processes 
Shell :: view ip rules linux 
Shell :: how to increase the resources allocated to windows subsystem linux 
Shell :: git lfs track folder 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =