Linux.com

Home Linux Community Forums Linux Distributions Ubuntu tar.gz or tar.bz2 with task bar

tar.gz or tar.bz2 with task bar

Link to this post 18 Mar 11

How do I get a task bar for the commmand line for the tar.gz or tar.bz2 when compressing files? I want a task like wget has for download and like you get when you tar.gz or tar.bz2 with a gui.

Link to this post 18 Mar 11

As far as I know, no such thing. FWIW, bzip2 compresses better, but is slower.

Anyway, you can use the -vvvv option to bzip2 for progress details. Also the -v (or --verbose) option to gzip will display name and percentage of reduction for each file compressed, though this is not a "progress bar".

Link to this post 20 Mar 11

http://sourceforge.net/projects/clpbar/

I fond the above program call bar it shows a prograss bar how ever I cant seem to get it to work for the command
tar -zcf /home/dir/dir.tar.gz /home/dir/
copy /home/dir /otherdir/dir

I have attached the man bar so that you can help me. I tryed to read the man bar but could not make heads or tails of it. the man bar file is 34.4 kb so i had to zip it so that i could upload it. [file name=manbar.zip size=8739]http://www.linux.com/media/kunena/attachments/legacy/files/manbar.zip[/file] [file name=manbar.zip size=8739]http://www.linux.com/media/kunena/attachments/legacy/files/manbar.zip[/file]

Link to this post 20 Mar 11

best I have been able to do is this
tar -zcvvvvf chant.tar.gz chant/ | zenity --progress --text="zipping" --percentage=1 --auto-kill

have no idea as to how to get "--test=zipping" to show a % as the progress bar moves

Link to this post 20 Mar 11

tar -zcvvvvf file.tar.gz chant/ | tee | bar

Link to this post 20 Mar 11

tar -zcvvvvf file.tar.gz chant/ | tee | bar -s 328m

get bar now but no move of bar stays at 0% however the # still run at bottom. any one know what I'm doing wrong?

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board