How To Setup and Run Shell Scripts - Linux CLI GUI
gotbletu
gaminglearningtechnologyapplicationsarchlinuxbasedbashbashscriptsbinarychmodclicodingcommandlinecomputerconsolecursescygwindebiandesktopdistributionsdistroexecutefedoraframebuffergotbletuguihelphowtointerfacelinuxmintncursesnewsopenopensuseoperatingpathpermissionsprogrammingprogramsrunscriptingscriptssetupshellshellscriptssoftwaresystemterminaltermuxtexttuitutorialubuntuuservariablezsh
commands used:
check what shell you are using
echo $0
make a new folder
mkdir ~/.scripts
go into that folder
cd ~/.scripts
download a file
wget 'https://example.com/path/to/file'
change permission to allow file to execute
chmod +x name_of_script or chmod +x ~/.script/name_of_script
add folder to $PATH variable
nano ~/.bashrc [ -d "$HOME/.scripts" ] && export PATH="$HOME/.scripts:$PATH" press Ctrl+x to exit; press y to save; press Enter to end
#reload your shell bash or close your terminal and open again ... https://www.youtube.com/watch?v=XM09icz7vaU
2021-06-02
5.48305153 LBC
Copyrighted (contact publisher)
84018174 Bytes