Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the pv command of Linux

Shulou Source: shulou.com Published: 2022-06-01 18:37:24 10月04日 Update

This article mainly explains "how to use the pv command of Linux". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to use the pv command of Linux.

Linux common commands pv commands are developed by Andrew Wood. It means to display information about the progress of data processing through a pipeline. This information includes the time elapsed, the percentage completed (shown by the progress bar), the current speed, all data transferred, and the estimated remaining time.

Syntax format: pv [parameters] [file]

Common parameters:-p display progress bar-t show how long the task has been in progress-e show how long it takes to complete the task-r display current transfer rate-a display average transfer rate-b display the number of bytes transferred-F sets the output format to format-n display progress percentage-Q does not output any information-W does not display any content reference instance displays useful information related to the operation before transmitting the first byte Including the amount of data that has been transferred, the time spent, the transfer rate, the progress bar, the percentage of progress, and the remaining time:

[root@linux265 ~] # pv / media/himanshu/1AC2-A8E3/fNf.mkv >. / Desktop/fnf.mkv uses the-n option to allow the pv command to display integer percentages, one number per line on the standard error output, instead of the usual visual progress bar:

[root@linux265 ~] # pv-n / media/himanshu/1AC2-A8E3/fNf.mkv >. / Desktop/fnf.mkv lists the physical volumes with specific names in the storage pool, enter the following command:

[root@linux265 ~] # pv-list-attr pv_name=hdisk7 lists the physical volumes with specific names in the storage pool, enter the following command:

[root@linux265] # pv-list-attr pv_name=hdisk7 POOL_NAME: testsp TIER_NAME: tier1 FG_NAME: fg2 PV_NAME SIZE (MB) STATE UDID hdisk7 10240 ONLINE 3E213600A0B80006E25060000D2E64F755F420F1828 FAStT03IBMfcp Thank you for reading. This is the content of "how to use the pv Command of Linux". After studying this article, I believe you have a deeper understanding of how to use the pv command of Linux. The specific use situation still needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Command progress transmission time information percentage percentage content data rate remaining learning output parameter name byte commonly used format physical storage Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Information Xiaomi Huawei Linux