Linux Command Line Tutorial For Beginners 33 - How to Run multiple Terminal Commands

preview_player
Показать описание
How to Run Two or More Terminal Commands at Once in Linux

Option One: The Semicolon (;) Operator
ls ; pwd ; whoami

Option Two: The Logical AND Operator (&&)
ls && pwd && whoami

Option Three: The Logical OR Operator (||)
ls || pwd || whoami

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

Thank you so much.I would like you to add on the usage of a single pipe though.

m_atty
Автор

Thanku so much for cover all basic command and uses of linux .

lovearora
Автор

seems to me...it makes no sense to use &&. versus using semicolon.

Thanks for the video good man. cheers

motoryzen
Автор

Thanks for this video, , one doubt in example at 6:48 $ pwd && DATE && cal => here && is logical AND operator, then it should not display any result if any one command fails;;but here we are getting output of pwd, and immediate after it stops showing next command output? is this internal behavior of this combined command operators?

MrRajanSrivastava