restructure
This commit is contained in:
parent
ef7661245b
commit
598a10bc28
182 changed files with 342 additions and 336 deletions
36
technology/applications/cli/compression/p7zip.md
Normal file
36
technology/applications/cli/compression/p7zip.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
obj: application
|
||||
os: linux
|
||||
aliases: ["7zip", "7z"]
|
||||
---
|
||||
# 7Zip
|
||||
7-Zip is a file archiver with the highest compression ratio. The program supports 7z (that implements LZMA compression algorithm), [ZIP](../../../files/ZIP.md), CAB, ARJ, GZIP, BZIP2, [TAR](compression/tar.md), CPIO, RPM and DEB formats. Compression ratio in the new 7z format is 30-50% better than ratio in [ZIP](../../../files/ZIP.md) format.
|
||||
|
||||
## Usage
|
||||
Add file/directory to the archive (or create a new one):
|
||||
```shell
|
||||
7z a archive_name file_name
|
||||
7z a archive_name file_name -p -mhe=on # Password Protect
|
||||
```
|
||||
|
||||
Update existing files in the archive or add new ones:
|
||||
```shell
|
||||
7z u archive_name file_name
|
||||
```
|
||||
|
||||
List the content of an archive:
|
||||
```shell
|
||||
7z l archive_name
|
||||
```
|
||||
|
||||
Extract files:
|
||||
```shell
|
||||
7z e archive_name # without using dir names
|
||||
7z x archive_name # extract with full paths
|
||||
7z x -ofolder_name archive_name # extract into folder
|
||||
```
|
||||
|
||||
Check integrity of the archive:
|
||||
```shell
|
||||
7z t archive_name
|
||||
```
|
31
technology/applications/cli/compression/tar.md
Normal file
31
technology/applications/cli/compression/tar.md
Normal 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
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue