Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CV: Linux command displays the progress of the run command     - Ubuntu users how to install the latest Nvidia graphics drivers (Linux)

- Distributed File System using MogileFS (Linux)

- OpenSSL to generate public and private key (Linux)

- Nodejs command-line program development tutorial (Programming)

- Java in the final qualifier (Programming)

- Analysis of C ++ exception mechanism (Programming)

- Linux administrator should command: sed and awk (Linux)

- Alternative methods of intrusion bundled executable file new thinking (Linux)

- CentOS7 installation configuration Redis-3.0.0 (Database)

- Oracle Database High-Risk Vulnerability Warning (Database)

- Red Hat Linux security settings document (Linux)

- PXE installation of Linux servers (Server)

- To install Redis under Linux (Database)

- MySQL script incremental backups (innobackupex) (Database)

- Linux crontab commands and detailed usage examples (Linux)

- JavaScript function closures Quick Start (Programming)

- Arduino UNO simulation development environment set up and run simulation (Linux)

- UNIX how to restrict users by IP Telnet (Linux)

- Protect against network attacks using Linux system firewall (Linux)

- Detailed driver compiled into the Linux kernel (Programming)

  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.
- Java Generics Introduction --HashMap summary (Programming)
- MySQL configuration file my.cnf increase the log file parameter error (Database)
- Linux Systems Getting Started Learning: Configuration PCI passthrough on a virtual machine (Linux)
- How to install MySQL on Linux Dock (Database)
- C # and JavaScript arrays to re-summary (Programming)
- Linux under DB2SQL1024N A database connection does not exist. SQLS (Database)
- MongoDB query timeout exception SocketTimeoutException (Database)
- Killall five options you might not know (Linux)
- Production environment Linux bonding method standby mode slave card switch (Server)
- Examples of safety testing system notes for RedHat Linux (Linux)
- Using Linux command line and execute PHP code (Programming)
- Usage logs Python library (Programming)
- Linux performance monitoring and common commands Introduction (Linux)
- MongoDB relations, references, index query coverage (Database)
- Java data structures - order linear form of table ArrayList (Programming)
- C ++ CBitmap, HBitmap, Bitmap difference and contact (Programming)
- Getting CentOS Learning Notes (Linux)
- Android HTTP request with Get Information (Programming)
- How do you temporarily emptied Bash environment variable before running the command on Linux (Linux)
- Hadoop2.0 configuration yarn success (Server)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.