25+ Awesome LinuxUnix command chaining examples

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

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
http://www.linuxnix.com/2012/07/23-awesome-less-known-linuxunix-command-chaining-examples.html
  • Total Hits: 7821

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 145 votes

  • Category: Linux/Administration

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

  • Submitted By: Surendra Anne

  • Set as Favorite

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    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 37.93%  55
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.34%  15
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.72%  17
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.03%  16
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.97%  42

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements