filmov
tv
Bash #10 - Combining commands (skip waiting)
Показать описание
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
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:
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 #bashscripting #terminal #linux
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:
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)
10ish Linux/Bash Commands You May Not be Using
Multiple Commands - Bash Scripting
OSINT Collection: Combining Multiple CLI Tools with Bash Scripts
Combine the output of two commands in bash
Bash From Beginner to Expert - Lesson 9 More Advanced Navigation and Combining Commands - cd, open
Creating multiple files using touch command BASH #shorts
Heroes in a Bash Shell: The Linux Command Line
HOW TO LEARN LINUX COMMANDS: ANSWERING YOUR QUESTIONS.
Linux Bash Script, Single Command But Multiple Lines?
Select Multiple Files with a BASH Shell Script
How to Create Multiple Files in One Command with Bash!
Level Up Your Shell Scripting Skills with Bash Read Command Examples
Autocd - Navigate automatically in Bash
BASH shell commands pipes (commands for Linux)
Edit Multi-line Commands in Bash
Linux Bash Script, Single Command But Multiple Lines? (4 Solutions!!)
Unix & Linux: Combine the output of two commands in bash (8 Solutions!!)
Learn Linux Bash Commands and Shell Script in Under One Hour
Bash shell in hyper terminal | why learn multiple terminal commands, when you have hyper?
Bash Shell Scripting Advanced Tutorial - Top 10 Bash Commands
Command Line Arguments | Bash Script 10 Arguments
Bash Scripting: Exploiting Concurrency for Faster Scripts
How to exit Git Bash commit message window in Windows
Комментарии