What is the difference between pipe (|) and tee command in unix

Answer Posted / thina

ls |wc-l |tee 1.txt
step 1: listing of file and folders
step 2: counting No of Lines
step 3: tee command getting output from above steps and
stres in the file

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between grep and grep?

804


How do I find previous commands in unix?

823


Which command is used to restrict incoming messages?

797


What are the commands in UNIX to list the files in a Directory?

824


What does 'mkdir' command do in UNIX?

915


What is the use of tee command?

777


What is the behavioural difference between cmp and diff commands?

889


Describe the usage and functionality of the command rm –r * in unix?

1542


What is the comma to display different lines that are found when compare two files?

803


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

878


Write a command to display a file’s contents in various formats?

865


What is the size of time_t?

897


What is updatedb?

766


What is the use of finger command?

844


How does pipe () work?

786