Create a tar file of files located in a folder:
tar -cvf filname.tar foldername/

c = create
v = verbose
f = file

filname.tar = the created file

To show the content of a tar’ed file:
tar -tvf filname.tar


extract a file with tar:
tar -xvf filname.tar


x = extract
v = verbose
f = file

Leave a Reply

Your email address will not be published. Required fields are marked *