Merging PDF Files Using Ghostscript

If you have to merge PDF files, you need no other than Ghostscript (which is installed by default with many Linux distributions). Here's the command line:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=firstANDsecond.pdf -dBATCH first.pdf second.pdf