Compress the Daemon Core Files
Purpose
gzip is a compression utility used to compress the files if they are large. Files created using the
gzipcommand end with the file extension .gz. Compress the core file if it is over 50 MB.
NOTE: Use lowercase for the
gzipcommand when you are in the shell.You only need to compress the daemon core files when the tarball file is not created.
Action
To compress the daemon core file with gzip, use the following command from the shell:
root@host%gzipdaemon-executable-name.core.numberSample Output
root@host%gzip rpd.core.0What It Means
The contents of the daemon core file are compressed into a single compressed file named
daemon.number.gz.Thegzipcommand preserves the mode, ownership, and timestamps of files when compressing or decompressing them.