Contents
How do I Gunzip all files in a directory in Linux?
gzip all the files
- Change the directory to audit logs as follows: # cd /var/log/audit.
- Execute the following command in the audit directory: # pwd /var/log/audit. …
- This will zip all the files in audit directory. Verify the gzipped log file in the /var/log/audit directory:
How do I compress multiple files in Linux?
In Unix and Unix-like operating systems (such as Linux), you can use the tar command (short for “tape archiving”) to combine multiple files into a single archive file for easy storage and/or distribution.