So I learned you can automate this, I have these commands that I want to execute in sequence on Raspbian:
Sudo apt update
sudo apt dist-upgrade
sudo apt clean
sudo reboot
but I dont know how to put them in bash file/command, I know how to launch Nano. After the file is saved how do I execute the bash script? cat "scriptname.sh" ?
Sudo apt update
sudo apt dist-upgrade
sudo apt clean
sudo reboot
but I dont know how to put them in bash file/command, I know how to launch Nano. After the file is saved how do I execute the bash script? cat "scriptname.sh" ?