How to Compress Files to Password Protect Archive in Ubuntu 20.04

Last updated: May 30, 2020

The default nautilus file browser allows to compress files into Zip, Tar.xz, 7z archive with no other options.

What if you want to compress your data into other formats (e.g., rar, epub, jar, and more) with password protection, and change the compress level?

1.) Open file roller archive manager from ‘Show Applications’ menu.

2.) Go to menu > New Archive, then you can:

  • create with 24 supported arhive formats.
  • type a filename, select location.
  • and set password under Other Options (click expend) for epub, rar, zip, and more.
  • finally click on Create button.

NOTE: you need to run sudo apt install rar unrar command in terminal (Ctrl+Alt+T) and follow by nautilus -q to enable rar support.

3.) Next click on top left ‘+‘ icon and add your files to the archive, finally close the window and done.

4.) If you want to enable maximum compression level, install dconf editor from Ubuntu Software and launch it.

Navigate to org/gnome/file-roller/general/compression-level, toggle off ‘Use default value’ and set ‘Custom value’ to ‘maximum’.


I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: