843 B
843 B
obj | mime | extension | website | repo |
---|---|---|---|---|
application | application/tar | tar | https://savannah.gnu.org/projects/tar | https://git.savannah.gnu.org/cgit/tar.git |
Tar
Tar is the most widely used command in Unix and Linux like operating system for creating archive of multiple files and folders into a single archive file and that archive file can be further compressed using other compression techniques
Creating Archives:
tar -cvf myarchive.tar /etc /root
List contents:
tar -tvf myarchive.tar # List contents
tar -tvf myarchive.tar path # List contents of path
Append or add files:
tar -rvf data.tar /etc/fstab
Extract files:
tar -xvf myarchive.tar # Extract
tar -xvf myarchive.tar -C /tmp # Extract to /temp
tar -xvf myarchive.tar /etc/fstab -C /etc # Only extract /etc/fstab to /etc