I'm a total noob to scripts and looking for your help, please.
I've written my first script, which looks like this:
The script file is right now:Code:#! /bin/bash sudo apt update && sudo apt upgrade && sudo apt autoremove
Permissions are OK (bits set to -rwxr-x--x)Code:/home/macro/upgrade
But where should I place the script file?
At this point it doesn't work, as the shell can't find it.
Should I move it to somewhere else?
Or do I need to set an environment variable?
I'm lost.
Bookmarks