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
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!