For completeness, if you want to tar the file in the background, use @Shadur's answer and append &
in the end:
tar -zcvf archive.tar.gz directory/ &
For completeness, if you want to tar the file in the background, use @Shadur's answer and append &
in the end:
tar -zcvf archive.tar.gz directory/ &