gunzip
Opening a .tar.gz file with a single command [closed]
tar xzf file.tar.gz The letters are: x – extract z – gunzip the input f – Read from a file, not stdin
Is there any way to show progress on a `gunzip < database.sql.gz | mysql ...` process?
You may use -v : Verbose mode (show progress) in your command, or there’s another method using Pipe Viewer (pv) which shows the progress of the gzip, gunzip command as follows: $ pv database1.sql.gz | gunzip | mysql -u root -p database1 This will output progress similar to scp: $ pv database1.sql.gz | gunzip | … Read more
Extract and delete all .gz in a directory- Linux
This should do it: gunzip *.gz
How to get few lines from a .gz compressed file without uncompressing
zcat(1) can be supplied by either compress(1) or by gzip(1). On your system, it appears to be compress(1) — it is looking for a file with a .Z extension. Switch to gzip -cd in place of zcat and your command should work fine: gzip -cd CONN.20111109.0057.gz | head Explanation -c –stdout –to-stdout Write output on … Read more
How to check if a Unix .tar.gz file is a valid file without uncompressing?
What about just getting a listing of the tarball and throw away the output, rather than decompressing the file? tar -tzf my_tar.tar.gz >/dev/null Edited as per comment. Thanks zrajm! Edit as per comment. Thanks Frozen Flame! This test in no way implies integrity of the data. Because it was designed as a tape archival utility … Read more