Bash #10 - Combining commands (skip waiting) @itvraag
Bash #10 - Combining commands (skip waiting)  @itvraag
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 )
Bash #10 - Combining commands (skip waiting)Bypass the Scalpers and Buy Your PS5 Directly from SonyBash #8 - applying bash in Windows & MacOSBalance lead cables for DIY battery packPrivate Browsing/Incognito ShortcutsChanging WiFi Band from 2.4GHz to 5GHzUpgrade Your Windows XP Before April 2014Galaxy Note 4 - In Depth Specs ReviewVagrant #8 - Troubleshoot & fix SSH authentication failure/timeout issueBash #13 - Log files and commands to view themPrivate Browsing & Privacy OnlineWindows 10 basic training #1: start menu
itvraag |

Bash #10 - Combining commands (skip waiting)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER