Home > System Tutorial > LINUX > body text

How to check the execution progress of commands in CentOS

PHPz
Release: 2024-01-13 15:48:05
forward
883 people have browsed it

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template