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 install scsi driver in unix? give me explanation clearly?

1 Answers   HCL, TCS,


What Command is used to make a directory?

4 Answers   IBM,


use of ls command

9 Answers  


What are reported commands?

0 Answers  


how to delete entire records in unix ?

13 Answers   Cap Gemini,






in UNIX ,What is the command to view contents of a large error log file?

7 Answers  


What is grep and how do you use it?

0 Answers  


what does the command 'wc' do?

4 Answers  


How to setup sudo, only can use for particular date & time only ( for solaris10 )

1 Answers   ups,


what is the difference between npar and vpar in HP-UX?

1 Answers   CSC,


Which command can you use to find the currently running process in unix server?

0 Answers  


How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?

4 Answers   HCL, Wipro,


Categories