gzip command in Linux with Examples

gzip is a software application used for file compression and decompression. It is a common way of compressing files in Linux.

gzip command in Linux with Examples

The syntax gzip command

gzip [ -acdfhlLnNrtvV19 ] [-S suffix] [ name ...  ]

On the man page the describes it

Gzip reduces the size of the named files using Lempel-Ziv coding (LZ77).

gzip command in Linux with Examples

Creating a compressed file

[huupv@DevopsRoles ~]$ gzip filename.txt

Decompress a File Using the gzip Command

[huupv@DevopsRoles ~]$ gzip -d filename.gz

The following details about gzip command in Linux.

man gzip

Conclusion

gzip command is a simple command in Linux. It is the most popular in use terminal Linux for file compression and decompression. 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 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.

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