When I run this command:
echo "1" > /dev/tty # runs successfully
but when I run this:
echo "1" | /dev/tty #permission denied
What is the difference between these two operators >
and |
and why does the pipe cause an error?
When I run this command:
but when I run this:
What is the difference between these two operators |
||||
|
Short answer: Details: In shell syntax, a call to some command contains several components. Example:
Here, parameters Then, among remaining parameters, Then, come the command The pipe
Output on filedescriptor 1 by the first process will be received as input on filedescriptor 0 by the second process, through a “pipe” which acts like a buffer. — |
||||
|
The |
|||
|