Convert epub file to pdf in Linux CLI

If you would like to convert an epub file to pdf in Linux, you can use calibre.

First install it using

sudo apt-get install calibre

and then you should be able to use it to convert the file like

ebook-convert file.epub file.pdf