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

What does sed command do in unix?

0 Answers  


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

7 Answers   CTS,


How do you execute a UNIX command in the background?

6 Answers  


how to check a file system type

7 Answers   Wipro,


What does grep v do?

0 Answers  






Explain command to display different lines that are found when compare two files?

0 Answers  


What are the dos commands?

0 Answers  


How to use grep command to list find the records of a file containing 10 different strings?

0 Answers  


how to remotely move a file ??? that mean how to move a file one machine to another machine ???

10 Answers   Altair,


what is the difference between SED and GREP ? Which one is more better and why?

4 Answers   IBM,


what does a process mean?

7 Answers   Infosys,


Who wrote grep?

0 Answers  


Categories