Difference between revisions of "Pv (pipe viewer)"

From wikieduonline
Jump to navigation Jump to search
Line 9: Line 9:
 
** <code>cat /dev/[[urandom]] | [[xz]] -T0 | pv  > /dev/null</code>
 
** <code>cat /dev/[[urandom]] | [[xz]] -T0 | pv  > /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>
  

Revision as of 08:35, 18 February 2024

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

brew install pv

Examples

Test network speed:

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

Related

See also

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