First you need to find out where is your bash interpreter located. Enter the following into your command line:
This is a companion discussion topic for the original entry at https://linuxconfig.org/bash-scripting-tutorial
First you need to find out where is your bash interpreter located. Enter the following into your command line:
azam
what command should i enter so that it askes me to specify a filename for the backup file
azam
I want to know how to create a filename for the backup file please
Yves Masur
Good intro, thanks. Typo: in ‘Case statement conditional’ Python is gived as phyton…
Ahmed TAHIRI
Very nice, easy and comprehensive tutorial.
Thank you a lot
Alfonso Hernandez
Could you please elaborate on this exercise: “2. Simple Backup bash shell script” I don’t know what is being backed up.
Lubos Rendek Mod -> Alfonso Hernandez
It creates a backup of the entire /home/linuxconfig
directory.
MyStockAlarm
I got error -bash: ./hello_world.sh: /bin/bash^M: bad interpreter: No such file or directory
Tiberiu Dascal -> MyStockAlarm
You need to run dos2unix script_name.sh