Bash scripting Tutorial - LinuxConfig.org


#1

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

#2

azam

what command should i enter so that it askes me to specify a filename for the backup file


#3

azam

I want to know how to create a filename for the backup file please


#4

Yves Masur

Good intro, thanks. Typo: in ‘Case statement conditional’ Python is gived as phyton…


#5

Ahmed TAHIRI

Very nice, easy and comprehensive tutorial.
Thank you a lot


#6

Alfonso Hernandez

Could you please elaborate on this exercise: “2. Simple Backup bash shell script” I don’t know what is being backed up.


#7

Lubos Rendek Mod -> Alfonso Hernandez

It creates a backup of the entire /home/linuxconfig directory.


#8

MyStockAlarm

I got error -bash: ./hello_world.sh: /bin/bash^M: bad interpreter: No such file or directory


#9

Tiberiu Dascal -> MyStockAlarm

You need to run dos2unix script_name.sh