It is very simple where you need to use tar command with the tar archive name and add the file name you want to add like below. $ tar backup.tar sshd.conf reference: https://www.poftut.com/linux-tar-command-tutorial-how-to-tar-a-directory/