Home  >  Article  >  System Tutorial  >  How to check the execution progress of commands in CentOS

How to check the execution progress of commands in CentOS

PHPz
PHPzforward
2024-01-13 15:48:05825browse

PV is called Pipe Viewer, with which we can view the progress of command execution.

# wget http://www.ivarch.com/programs/sources/pv-1.5.3.tar.bz2

# tar xjf pv-1.1.4.tar.bz2

# cd pv-1.1.4

# ./configure

# make && make install

How to check the execution progress of commands in CentOS

Example: I need to package the file in the /home/ftp/vqiu directory with the name vqiu@yy-mm-dd.

# tar -p -cf - /home/ftp/vqiu | pv --size `du -sk /home/ftp/vqiu | cut -f 1`k | gzip >/home/ftp/vqiu@` date %y-%m-%d`.tar.g

The above is the detailed content of How to check the execution progress of commands in CentOS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete