How To Gzip a File In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. To gzip a single file, use the following command syntax:
$ gzip [filename]
2. To gzip multiple files, use the following command syntax:
$ gzip [filename1] [filename2] [filename3]
3. To gzip an entire directory, use the following command syntax:
$ gzip -r [directoryname]
4. To uncompress a gzipped file, use the following command syntax:
$ gunzip [filename]