25+ Awesome LinuxUnix command chaining examples

Tutorials Shared by the Internet Community

Advertisements


25+ Awesome LinuxUnix command chaining examples

Command chaining is a concept to execute two or more commands in one execution to increase. productivity Reduce system resource usage (In some ca

Statistics

  • Total Hits - 34495

  • Total Votes - 113 votes

  • Vote Up - 50 votes

  • Vote Down - 63 votes

  • Domain - www.linuxnix.com

  • Category - Linux/Administration

  • Submitted By - Surendra Anne

  • Submitted on - 2013-09-17 13:10:17

Description

Command chaining is a concept to execute two or more commands in one execution to increase.<br /><br /><br /> <br />productivity<br /><br />Reduce system resource usage (In some cases)<br /><br />Short and sweet codes.<br /><br />These are supported by almost every shell we know.<br /><br />Today we will learn how to use different command chaining operators available for us in an easy way.<br /><br />Command chaining operators<br /><br />&amp; –Sends process background (so we can run multiple process parallel)<br />; –Run multiple commands in one run, sequentially.<br /> –To type larger command in multiple lines<br />&amp;&amp; –Logical AND operator<br />|| –Logical OR operator<br />! -NOT operator (I did not find much info on this. Thanks for mgd@interbaun.com for giving good examples)<br />| — PIPE operator<br />{} –Command combination operator.<br />() –Precedence operator    More detail...


Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements