Add single file into a TAR
by Gabriel9999 - 06-13-2019, 09:15 AM
I have a tar archive named backup.tar. I want to add a file named sshd.conf into this tar archive.
you can use the -r (or –append) option of the tar command to add/append a new file to the end of the archive.

tar rvf /path/to/backup.tar /path/to/sshd.conf

however, the answer to these questions is on google..
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 :

Possibly Related Threads…
Thread Author Replies Views Last Post
Opened File Accessor nikolaymartin 2 191 05-30-2019, 07:23 AM
Last Post: samueltarcin9999
How Can I add SSH Key? Gabriel9999 7 365 05-02-2019, 10:57 AM
Last Post: n0iseg

 Users browsing this thread: 1 Guest(s)