By default there is no progress bar showed when you copying files using command prompt by typing cp, so in this article I came across a few solutions for a progress bar with little simple tricks to play with.
So, many of you been used cp command on linux ssh to copy files, and folders. When you try copy small files are always easy to go but when comes across large files for example: 50GB, 100GB, 200GB. It usually takes time to copy the files from folder to folder or hard drive to another hard drive, but you want to know the status of copying progress instead of waiting. In SSH there is no progress bar on for cp command, instead of boring waiting here is the shell script that I show below to check your status of files or folder copying progress while copying your files and folders.
This is a nice shell scripting tweak. It give you a progress bar that equivalent to wget command that you use on linux to download files, you can check the progress bar of wget by typing: wget http://dl.google.com/android/android-sdk_r12-linux_x86.tgz to see the similarity and differences between them.
Here is the instruction on how to copy my code and use it on your linux shell command prompt:
Step:
1. copy any version of above code.
2. create a file using your favorite editor like vi, pico, nano. File name example: mycopy, xcopy, copyx
3. paste the code you copied just now and saved it to your favorite editor
4. change the permission of the files you created so that it become executable by typing: chmod +x mycopy
5. run the script by typing : ./mycopy myfiles.tar.gz /path/to/destination/myfiles.tar.gz
6. enjoy and watch the progress bar that you just created.
Hope my code will benefit to someone else that needed it.
Cheers
Comments (2)
Commented:
Commented: