Quantcast
Channel: IT-Linux
Viewing all articles
Browse latest Browse all 171

How to gzip and keep original file on Unix or Linux command line

$
0
0

I would like to compress a log file using gzip Unix command line utility, and I would also like to keep the original file. However, when I use the gzip my-app.log command, results in modifying my log file and renaming it my-app.log.gz. How do I force the gzip command to keep original file while maintaining the original file on Linux or Unix-like system?


Viewing all articles
Browse latest Browse all 171

Trending Articles