tar: The command itself.
[options]: Optional flags or settings that modify the behavior of the tar command.
[archive-file]: The name of the archive file you are creating or working with.
[file or directory to be archived]: The file or directory you want to include in the archive.
1. Creating an uncompressed tar Archive using option - cvf
This command creates a tar file called file.tar which is the Archive of all .c files in the current directory.
tar cvf file.tar *.c
‘-c’: Creates a new archive.
‘-v’: Displays verbose output, showing the progress of the archiving process.
‘-f’: Specifies the filename of the archive
This command creates a tar file called file.tar which is the Archive of all .c files in the current directory.
tar cvf file.tar *.c
‘-c’: Creates a new archive.
‘-v’: Displays verbose output, showing the progress of the archiving process.
‘-f’: Specifies the filename of the archive
This command creates a tar file called file.tar.gz which is the Archive of .c files.
tar cvzf file.tar.gz *.c