Difference between revisions of "Compression"

From RHS Wiki
Jump to navigation Jump to search
m
Tag: visualeditor
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== 7z ==
+
===7z===
  p7zip-full
+
  sudo apt install p7zip-full
 
  7z x -so yourfile.tar.7z | tar xf - -C target_dir
 
  7z x -so yourfile.tar.7z | tar xf - -C target_dir
== [[Linux command: tar|tar]] ==
+
 
 +
===[[Linux command: tar|tar]]===
 +
 
 +
=== rar ===
 +
<syntaxhighlight lang="bash">
 +
sudo apt install rar
 +
</syntaxhighlight>
 +
 
 +
==== Compress ====
 +
<syntaxhighlight lang="bash">
 +
rar a test.rar README.md
 +
</syntaxhighlight>
 +
 
 +
==== Compress with pasword ====
 +
<syntaxhighlight lang="bash">
 +
rar a -hp filename.rar file.txt
 +
</syntaxhighlight>
 +
 
 +
==== Extract ====
 +
<syntaxhighlight lang="bash">
 +
rar e file.rar
 +
</syntaxhighlight>

Latest revision as of 07:34, 26 April 2019

7z[edit]

sudo apt install p7zip-full
7z x -so yourfile.tar.7z | tar xf - -C target_dir

tar[edit]

rar[edit]

sudo apt install rar

Compress[edit]

rar a test.rar README.md

Compress with pasword[edit]

rar a -hp filename.rar file.txt

Extract[edit]

rar e file.rar