Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


compress-configuration-files (System)


Hierarchy Level


Compress the current operational configuration file. By default, the current operational configuration file is compressed, and is stored in the file juniper.conf, in the /config file system, along with the last three committed versions of the configuration. However, with large networks, the current configuration file might exceed the available space in the /config file system. Compressing the current configuration file allows the file to fit in the file system, typically reducing the size of the file by 90 percent. The current configuration file is compressed on the second commit of the configuration after the first commit is made to include the compress-configuration-files statement.


We recommend that you enable compression of the router configuration files to minimize the amount of disk space that they require.


The current operational configuration file is compressed.


This command has no options.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced before Junos OS Release 7.4.