restructure

This commit is contained in:
JMARyA 2024-01-17 09:00:45 +01:00
parent ef7661245b
commit 598a10bc28
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
182 changed files with 342 additions and 336 deletions

View file

@ -0,0 +1,31 @@
---
obj: application
os: linux
website: https://savannah.gnu.org/projects/tar
repo: 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:
```shell
tar -cvf myarchive.tar /etc /root
```
List contents:
```shell
tar -tvf myarchive.tar # List contents
tar -tvf myarchive.tar path # List contents of path
```
Append or add files:
```shell
tar -rvf data.tar /etc/fstab
```
Extract files:
```shell
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
```