You need to use the tar command. The tar command first offered in the seventh edition of unix v7 in January 1979. Each tarball stores data along with additional information such as:
The procedure to create a tar.gz file on Linux is as follows:
Let us see all commands and options in details.
Say you want to create tar.gz file named projects.tar.gz for directory called $HOME/projects/:
$ ls -l $HOME/projects/
Sample outputs:
total 8
drwxr-xr-x 2 vivek vivek 4096 Oct 30 22:30 helloworld
drwxr-xr-x 4 vivek vivek 4096 Oct 30 13:16 myhellowebapp
#linux