What is the LINUX/UNIX pipe? How is pipe different from output redirection? Give an example to illustrate your answer.

What will be an ideal response?


A LINUX/UNIX pipe allows you to connect the standard output of a command to the standard input of another command. Output redirection connects standard output of a command to a file. The following examples illustrate the difference. When the first command executes, the output of the ls -l command is given as input to the grep command. When the second command executes the output of the ls -l command is redirected to the sarwar.terminal file. If the sarwar.terminal file does not exist, it is created.
ls -l | grep “sarwar”
ls -l > sarwar.terminal

Computer Science & Information Technology

You might also like to view...

A class becomes abstract when you place the __________ key word in the class definition.

a. super b. extends c. final d. abstract

Computer Science & Information Technology

Prove that a tree is a bipartite graph.

What will be an ideal response?

Computer Science & Information Technology

Which of the following best describes HIPAA administrative safeguards?

A) Retention, availability, and update requirements related to supporting documentation B) The use of technical security measures to protect ePHI data C) Standards for business associate contracts and other arrangements D) Documented policies and procedures for managing day-to-day operations and access to ePHI

Computer Science & Information Technology

What kind of migration allows a powered-on virtual machine to be moved to a new data store?

A. cold migration B. suspended migration C. Storage vMotion migration D. Enhanced vMotion migrtion

Computer Science & Information Technology