25+ Awesome LinuxUnix command chaining examples

Tutorials Shared by the Internet Community

Advertisements


Synopsis

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 - 27200

  • Total Votes - 111 votes

  • Vote Up - 50 votes

  • Vote Down - 61 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.



productivity

Reduce system resource usage (In some cases)

Short and sweet codes.

These are supported by almost every shell we know.

Today we will learn how to use different command chaining operators available for us in an easy way.

Command chaining operators

& –Sends process background (so we can run multiple process parallel)
; –Run multiple commands in one run, sequentially.
\ –To type larger command in multiple lines
&& –Logical AND operator
|| –Logical OR operator
! -NOT operator (I did not find much info on this. Thanks for mgd@interbaun.com for giving good examples)
| — PIPE operator
{} –Command combination operator.
() –Precedence operator ...


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

Advertisements