How does redirection to pv actually work?
0
votes
1
answer
364
views
I am trying to understand how the redirection is exactly working in this command
# tar -czf - ./Downloads/ | (pv -p --timer --rate --bytes > backup.tgz)
What is the english translation ?
All the data of
tar
is redirected as input to pv
and then pv
redirects it to backup.tgz
?
**Then why is the bracket around pv
required ?**
Then how does this redirection make sense ?
tar -czf - ./Documents/ | (pv -n > backup.tgz) 2>&1 | dialog --gauge "Progress" 10 70
After pv
what is the meaning of 2>&1
?
Asked by ng.newbie
(1295 rep)
Jun 14, 2021, 08:30 PM
Last activity: Jun 15, 2021, 04:07 PM
Last activity: Jun 15, 2021, 04:07 PM