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

Which command is used to delete all files in the current directory and all its sub-directories?

0 Answers  


Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.

8 Answers   Concentrix, IBM, Symantec, TCS,


Which command is used to copy files?

0 Answers  


Explain mount and unmount command.

0 Answers  


Why is shebang used?

0 Answers  






Name the general commands in using unix os for a beginner?

0 Answers  


What is grep r?

0 Answers  


What is a command and examples?

0 Answers  


What happens when we execute a unix command?

0 Answers  


Give the command for finding the current date.

0 Answers  


what does a process mean?

5 Answers   Infosys,


What is the command to view process running?

0 Answers  


Categories