In Ubuntu 20.04, Can’t Find rc.local File.

Just Hide, Find It Now~

Step 1

Go To /lib/systemd/systemPath And Edit rc-local.service

vim /lib/systemd/system/rc-local.service

Add These In Last Line


Step 2

Add File rc.local In /etc/

vim /etc/rc.local

Look Like This


<Put Your Script/Program Here>

exit 0

Don’t Forget Give It Exec Permission

chmod +x /etc/rc.local

Step 3

ln -s /lib/systemd/system/rc-local.service /etc/sysstemd/system/rc-local.service

Step 4

Make Service Start After Boot

systemctl enable rc-local

Step 5

Try It!!