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 identify whether a file is normal file or directory?

3 Answers  


What command a user use to view a long text file one page at a time in UNIX?

8 Answers   IBM,


Write a command that will display files in the current directory, in a colored, long format.

0 Answers  


What is the first character of the output in ls l command?

0 Answers  


how to sort the content of the file based on numeric values

0 Answers   Epsilon,






Which command is used to kill the last background job?

0 Answers  


in unix echo is used for

10 Answers   BFL, BirlaSoft, Patni,


What is $0 bash?

0 Answers  


What are the general commands in using unix os for a beginner?

0 Answers  


What is mtime in find command?

1 Answers  


Why is shebang used?

0 Answers  


How many unix commands are there?

0 Answers  


Categories