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.
$ Sudo make install
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:
Otherwise, you run the following command bars.
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
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.