Difference between revisions of "Pv (pipe viewer)"

From wikieduonline
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
Shell [[pipeline]] element to meter data passing through
+
{{lc}} <code>[[pv]]</code><ref>https://man7.org/linux/man-pages/man1/pv.1.html</ref> Shell [[pipeline]] element to meter data passing through
  
 +
[[brew install]] [[pv]]
  
 
== Examples ==
 
== Examples ==
Line 7: Line 8:
 
* <code>cat /dev/[[urandom]] | [[xz]] | pv  > /dev/null</code>
 
* <code>cat /dev/[[urandom]] | [[xz]] | pv  > /dev/null</code>
 
** <code>cat /dev/[[urandom]] | [[xz]] -T0 | pv  > /dev/null</code>
 
** <code>cat /dev/[[urandom]] | [[xz]] -T0 | pv  > /dev/null</code>
 +
* <code>pv -petrab [[/dev/zero]] > [[/dev/null]]</code>
  
 +
Test [[network speed]]:
 
* <code>[[pv]] </dev/zero | ssh REMOTE_SERVER 'cat >/dev/null'</code>
 
* <code>[[pv]] </dev/zero | ssh REMOTE_SERVER 'cat >/dev/null'</code>
  
* pv -petrab [[/dev/zero]] > [[/dev/null]]
+
== Related ==
 
 
== Related commands ==
 
 
* <code>[[progress]] -m</code>
 
* <code>[[progress]] -m</code>
 
* <code>[[set -eo]] pipefail</code>
 
* <code>[[set -eo]] pipefail</code>
 +
* [[Pipe]]
  
 
== See also ==
 
== See also ==
 
* {{cat}}
 
* {{cat}}
* [[Performance]]
+
* {{Performance}}
  
  
 
[[Category:Linux commands]]
 
[[Category:Linux commands]]

Latest revision as of 08:35, 18 February 2024

pv[1] Shell pipeline element to meter data passing through

brew install pv

Examples[edit]

Test network speed:

  • pv </dev/zero | ssh REMOTE_SERVER 'cat >/dev/null'

Related[edit]

See also[edit]

  • https://man7.org/linux/man-pages/man1/pv.1.html
  • Advertising: