How do I run an rc file?

How do I run an rc file?
Answer
Method 1 – Using rc.
local
  1. $ sudo chmod +x /etc/rc.local. Next we will add the script to be executed in the file,
  2. $ sudo vi /etc/rc.local. & at the bottom of file, add the entry.
  3. sh /root/script.sh & Now save the file & exit. …
  4. $ which shutter.
  5. /usr/bin/shutter. …
  6. $ crontab -e. …
  7. @reboot ( sleep 90 ; sh /location/script.sh )
 

Tìm kiếm

Back
Top