Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CV: Linux command displays the progress of the run command     - Installation Atom text editor on Mint Ubuntu / Linux (Linux)

- Sublime Text 3 using summary (Linux)

- PSUADE installation under Linux (Linux)

- Linux foreground to background process switch (Linux)

- Linux Network Programming - raw socket instance: MAC header message analysis (Programming)

- Xmanager Remote Desktop connection CentOS (Linux)

- Linux installed and tested the deployment of Kafka distributed cluster (Server)

- Shell commonly commands (Linux)

- Top 10: HTML5, JavaScript 3D game engine and framework (Linux)

- Oracle 12c detailing the new features (Database)

- How to understand Python yield keyword (Programming)

- pga_aggregate_target and _pga_max_size can not use absolute limit actual PGA (Database)

- SELinux multi-level security (Linux)

- Storm basic framework for analysis (Programming)

- The specified user to execute commands under Linux (Linux)

- Java reflection Introduction (Programming)

- KVM virtualization nested configuration (Server)

- JDK installation notes under CentOS (Linux)

- Linux data redirection (Linux)

- Elasticsearch 2.20 Highlight (Server)

  CV: Linux command displays the progress of the run command
  Add Date : 2017-08-31      
  Coreutils Viewer (cv) is a simple program that can be used to display any of the core component of the command (eg: cp, mv, dd, tar, gzip, gunzip, cat, grep, fgrep, egrep, cut, sort, xz, exiting ) progress. It uses the file descriptor to determine the progress of a command, such as the cp command. US cv's that it can be used in conjunction with other Linux commands, for example, you know, watch and I / O redirection command. Thus, you can use in your script, or all the ways you can think of, do not let your imagination shackled you.


You can download the source files from the github repository where cv. After the zip file is downloaded, unzip it, and then extract the files into the folder after.

This program requires ncurses library. If you're already in your Linux system installed ncurses, then the cv of the installation process for you is so relaxing.

Through two simple steps to compile and install it.

$ Make
$ Sudo make install
Run cv

To run cv, simply in order to other program, at the command line, enter this command. If you do not execute make install, and choose to run from the current directory, you can run the following command:

$ ./cv
Otherwise, you run the following command bars.

$ Cv
If there is no core components in order to run, the program will quit cv and tell you: there is no core component in order to run.

To effectively use the program, run a core component of the program on your system. In this example, we will use the cp command.

When copying a file to play, you can see the current progress, displayed as a percentage.

Added option to cv

You can also add several options to cv command, just like any other command. A useful option is to let you know the time remaining is expected to copy or move large files.

Adding -w option, which will help you display the estimated time remaining.

$ Cv -w

Try to add more command options bar. Add other options like this:

$ Cv -wq
cv and watch command

It is a watch for periodically run the program and display the output of the program. Sometimes, you may want to continue to see the health of command and do not want to store the results cv log file. In this case, watch will come in handy, it can be used with cv.

$ Watch cv -qw
The command all running instances of the core components of the command will be displayed. It also shows progress and expected completion time.

View the output in a log file

As they promised, you can use cv to redirect its output to a log file. This function in order to run fast and are particularly useful when you do not see any meaningful content.

To view the progress in the log file, you only need to redirect the output like this below.

$ Cv -w >> log.txt
To view the output of this command, use your favorite text editor to open the log file, you can also use the cat command, like this:

$ Cat log.txt
Getting Help

If you hindered in any place, you can always get help by reviewing the manual page or use the help option. For help, you can use the cv command with the -h option.

$ Cv -h
If you need more detailed information, the man page is a very good place.

$ Man cv
However, to obtain the above-mentioned manual page, you must install cv execute make install.
- MongoDB learning Notes (2) basic connection example of -Nodejs and MongoDB (Database)
- Spring Data MongoDB combat (Database)
- Python variable type (Programming)
- Memcache explain in detail (Server)
- Java 8 Lambda principle analysis (Programming)
- MySQL backup tool to back up mydumper (Database)
- Magical Virtualbox under Ubuntu (Linux)
- C ++ two second pointer memory model (two-dimensional array) (Programming)
- After installing Ubuntu 15.04, to do a few things (Linux)
- [JavaScript] catch (ex) statements of ex (Programming)
- The direct insertion sort algorithm (Programming)
- Several back door and log tool under Linux (Linux)
- Binding multiple network cards in Linux using command nmcli (Linux)
- Talk Packages (Linux)
- JavaScript event handling Detailed (Programming)
- Configuration OpenOCD + FT2232 under Ubuntu (Linux)
- Parse Server supports iOS and Android push messaging (Programming)
- Linux system find command Detailed (Linux)
- Linux cron job (crontab) Examples (Linux)
- CentOS7 install JAVA notes (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.