gunzip command in Linux with Examples

gunzip command means gunzip can decompress files created by gzip or zip.

Syntax

gunzip [ -acfhlLnNrtvV ] [-S suffix] [ name … ]

In man page the describe it

  • gunzip – compress or expand files.
  • man gunzip – More details information about gunzip command.

gunzip command in Linux with Examples

$ gunzip devopsroles.txt.gz

Keep both the compressed and Decompressed file.

$ gunzip -k devopsroles.txt.gz

Display compressed within it without decompressing first.

$ gunzip -c devopsroles.txt.gz

Test Whether a Compressed File Is Valid before Decompressed it.

$ gunzip -t devopsroles.txt.gz

Show verbose information when you decompress the file.

$ gunzip -v devopsroles.txt.gz

Conclusion

gunzip command is the simple the command in Linux. It is the most popular in use terminal Linux compress or expand files.

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.