Uploaded February 2022 | Updated September 2026, 2 weeks ago
In this video we'll cover three ways to combine and chain commands together in the Linux terminal using semi-colon, logical AND or logical OR operators. This will help you save a lot of time and automate checks.
#bash #bashscripting #terminal #linux
https://itvraag.nl
Timestamp:
0:00 Intro
0:17 operators to chain commands
1:16 semi-colon
1:38 when to use semi-colon
1:56 logical AND
2:52 logical OR
3:46 combine operators
4:05 grouping commands
Related video:
APT package manager: youtu.be/ZKPs-rnG6E0
Windows 11 Terminal PRO tips: youtu.be/0NBYBOGalO4
oh-my-zsh: youtu.be/IMUuElcjMdo
MacOS terminal PRO tips: youtu.be/LcelO7XErdA
Bash #4 - variables: youtu.be/mOSnZ7zOF3g
Bash #3 - script files: youtu.be/ajpTOFyeDH4
Bash #2 - help, touch, echo & aliases: youtu.be/cyi6imc5ruY
Bash #1 - basic concepts: youtu.be/C-HwzPVLo1c
Used commands:
clear;ls -alt;pwd;uname -srmp;whoami
chmod +x script1
mkdir dir1 && cd dir1
sudo apt update && sudo apt upgrade -y
[ -x "script3" ] || chmod +x script3
[ -x "script1" ] && echo done
[ -x "script1" ] || echo done
ls -lt; [ -x "script1" ] && echo true || echo false
VAR="1"; echo "VAR: $VAR"; { VAR="2"; echo "inside VAR: $VAR"; }; echo "outside VAR: $VAR"
VAR="1"; echo "VAR: $VAR"; ( VAR="2"; echo "inside VAR: $VAR"; ); echo "outside VAR: $VAR"
[ -x "script3" ] || ( echo first && echo second )
In this video we'll cover three ways to combine and chain commands together in the Linux terminal using semi-colon, logical AND or logical OR operators. This will help you save a lot of time and automate checks.
#bash #bashscripting #terminal #linux
https://itvraag.nl
Timestamp:
0:00 Intro
0:17 operators to chain commands
1:16 semi-colon
1:38 when to use semi-colon
1:56 logical AND
2:52 logical OR
3:46 combine operators
4:05 grouping commands
Related video:
APT package manager: youtu.be/ZKPs-rnG6E0
Windows 11 Terminal PRO tips: youtu.be/0NBYBOGalO4
oh-my-zsh: youtu.be/IMUuElcjMdo
MacOS terminal PRO tips: youtu.be/LcelO7XErdA
Bash #4 - variables: youtu.be/mOSnZ7zOF3g
Bash #3 - script files: youtu.be/ajpTOFyeDH4
Bash #2 - help, touch, echo & aliases: youtu.be/cyi6imc5ruY
Bash #1 - basic concepts: youtu.be/C-HwzPVLo1c
Used commands:
clear;ls -alt;pwd;uname -srmp;whoami
chmod +x script1
mkdir dir1 && cd dir1
sudo apt update && sudo apt upgrade -y
[ -x "script3" ] || chmod +x script3
[ -x "script1" ] && echo done
[ -x "script1" ] || echo done
ls -lt; [ -x "script1" ] && echo true || echo false
VAR="1"; echo "VAR: $VAR"; { VAR="2"; echo "inside VAR: $VAR"; }; echo "outside VAR: $VAR"
VAR="1"; echo "VAR: $VAR"; ( VAR="2"; echo "inside VAR: $VAR"; ); echo "outside VAR: $VAR"
[ -x "script3" ] || ( echo first && echo second )










