gunzip command in Linux with Examples

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

gunzip command in Linux with Examples


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

On the man page, the describes 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 files.

$ 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 Decompressing it.

$ gunzip -t devopsroles.txt.gz

Show verbose information when you decompress the file.

$ gunzip -v devopsroles.txt.gz


gunzip command is a simple command in Linux. It is the most popular in use terminal Linux compress or expands files. Thank you for reading the DevopsRoles page!

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 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 *

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