Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CV: Linux command displays the progress of the run command     - iSCSI + multipath achieve DM multipath storage (Server)

- Linux NFS service fixed ports and firewall configuration (Linux)

- CentOS7 set boot directly into the command line interface (Linux)

- Subsequent binary search tree traversal sequence (Programming)

- Java deserialization test (Programming)

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

- Installation JDK1.7 under Ubuntu14.04 64-bit (Linux)

- Oracle: RETURNING clause (Database)

- Linux simple commands (Linux)

- Disk partition MBR (Linux)

- MySQL Installation Troubleshooting (Database)

- MySQL error: ERROR 1175: You are using safe update mode solution (Database)

- Oracle database on the hit rate of query summary (Database)

- Linux process stack and process function stack frame (Linux)

- Create the container and run the application Docker (Server)

- ORA-00600: internal error code, arguments: [keltnfy-ldmInit], [46], [1], [], [], [], [], [] (Database)

- Linux more efficient than select a model epoll (Linux)

- Linux compression and decompression command (Linux)

- Sort search algorithm Java - application examples with recursive dichotomy (Programming)

- Linux System Getting Started Tutorial: Linux file permissions brief description (Linux)

 
         
  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.

installation

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.
     
         
       
         
  More:      
 
- Spring-depth understanding of the various annotations (Programming)
- 20 Advanced Java interview questions summary (Programming)
- MySQL view (Database)
- ctop: monitor container performance Linux command line artifact (Linux)
- installation and configuration of the PHP environment (Apache2) under Linux (Server)
- Swift acquaintance of values and references, the circular reference, Agent Precautions (Programming)
- The multiplexed signal driving IO (Programming)
- Spring Boot + Nginx + Tomcat + SSL configuration notes (Server)
- X security settings in Ubuntu (Linux)
- Development environment to build MEAN In Ubuntu 15.10 (Server)
- Timeout control related to Python threads and a simple application (Programming)
- Redis is installed in Ubuntu 14.04 (Database)
- Help you to see Linux system architecture type 5 Common Commands (Linux)
- ActiveMQ5.11.1 and JDK version matching relation (Linux)
- PostgreSQL Stream Configuration (Database)
- Install the system cleaning software under Linux: BleachBit 1.4 (Linux)
- The Gitlab migrated to Docker container (Server)
- Struts2 study notes -Valuestack (value stack) and OGNL expression (Programming)
- Linux System Getting Started Learning: the local time in between Perl and UNIX timestamp conversion (Linux)
- How do you know your public IP terminal in Linux (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.