What is the difference between pipe and xargs?

Answers were Sorted based on User's Feedback



What is the difference between pipe and xargs?..

Answer / shh

xargs command
Build and execute command lines from standard input

find . -type f -mtime -1 -print | xargs ls

Pipe is a technique to use for joining two/more commands
(one command output as input to other command ..so on
| is a symobol for pipe)

ls -al | more

Is This Answer Correct ?    14 Yes 1 No

What is the difference between pipe and xargs?..

Answer / amit kumar pradhan

Pipe is used to connect between two command
Xargs redirect the output of second command to the first one

Is This Answer Correct ?    9 Yes 4 No

Post New Answer

More Unix Commands Interview Questions

how to make IGNITE-BACKUP in HP-UX?

4 Answers   HP,


What is the use of cut command in unix?

0 Answers  


what do you understand by 'unix is a portable os'?

3 Answers   Infosys,


what are filters?

6 Answers  


distinguish between physical addresses and logical address?

23 Answers   College School Exams Tests, CTS, Infosys, SAX, TATA, TCS,






Is grep faster than awk?

0 Answers  


Write a command to find all of the files which have been accessed within the last 30 days.

5 Answers   Google, IBM, Satyam,


A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me

7 Answers   CTS,


what is the command to print last 8 lines of any text file.

10 Answers  


Differentiate cmp command from diff command.

0 Answers  


Which command is used to restrict incoming messages?

0 Answers  


What command would users use to see what file one page at a time in UNIX?

7 Answers   IBM,


Categories