Comprehensive List of PV Commands with Descriptions - Printable Version +- WildlandsTech (https://wildlandstech.com) +-- Forum: Programming (https://wildlandstech.com/forumdisplay.php?fid=3) +--- Forum: Batch & Shell Scripting (https://wildlandstech.com/forumdisplay.php?fid=42) +--- Thread: Comprehensive List of PV Commands with Descriptions (/showthread.php?tid=155) |
Comprehensive List of PV Commands with Descriptions - Sneakyone - 09-03-2024 Comprehensive List of PV Commands with Descriptions **pv** (Pipe Viewer) is a command-line utility used to monitor the progress of data through a pipeline, providing real-time visual feedback on data transfer rates, time elapsed, estimated time remaining, and more. Below is a detailed list of PV commands, along with descriptions and examples. 1. Basic Data Transfer Monitoring Description: Monitors the progress of data transfer through a pipeline. Code: pv [InputFile] > [OutputFile] Code: pv inputfile > outputfile 2. Limiting Data Transfer Rate Description: Limits the data transfer rate to a specified number of bytes per second. Code: pv -L [Rate] [InputFile] > [OutputFile] Code: pv -L 1m inputfile > outputfile 3. Showing the Progress Bar Only Description: Displays only the progress bar, suppressing other output. Code: pv -p [InputFile] > [OutputFile] Code: pv -p inputfile > outputfile 4. Showing ETA (Estimated Time of Arrival) Description: Displays the estimated time of arrival (ETA) for the data transfer. Code: pv -e [InputFile] > [OutputFile] Code: pv -e inputfile > outputfile 5. Displaying Data Transfer Rate Description: Displays the data transfer rate during the pipeline operation. Code: pv -r [InputFile] > [OutputFile] Code: pv -r inputfile > outputfile 6. Displaying Timer Information Description: Displays the elapsed time since the start of the data transfer. Code: pv -t [InputFile] > [OutputFile] Code: pv -t inputfile > outputfile 7. Combining Options Description: Combines multiple display options, such as showing progress, ETA, rate, and timer. Code: pv -pet [InputFile] > [OutputFile] Code: pv -pet inputfile > outputfile 8. Using PV in a Pipeline with Other Commands Description: Monitors data passing through a pipeline that involves multiple commands. Code: command1 | pv | command2 Code: cat inputfile | pv | gzip > outputfile.gz 9. Displaying Average Data Transfer Rate Description: Displays the average data transfer rate for the entire operation. Code: pv -a [InputFile] > [OutputFile] Code: pv -a inputfile > outputfile 10. Showing Byte Count in Human-Readable Format Description: Displays the total byte count in a human-readable format, such as KB, MB, or GB. Code: pv -h [InputFile] > [OutputFile] Code: pv -h inputfile > outputfile 11. Writing Output to Multiple Destinations Description: Writes the output to multiple destinations simultaneously. Code: pv [InputFile] | tee [OutputFile1] > [OutputFile2] Code: pv inputfile | tee outputfile1 > outputfile2 12. Displaying Help Information Description: Displays help information for the PV command, listing all available options and their descriptions. Code: pv --help Code: pv --help Conclusion The **PV** command is a powerful utility for monitoring data transfer through pipelines, making it an essential tool for anyone working with large file transfers or data processing tasks in Unix-like systems. By mastering these commands, you can effectively monitor and manage data pipelines, ensuring efficient and transparent data handling. Happy Monitoring! |