Difference between revisions of "Compression"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "== 7z == p7zip-full 7z x -so yourfile.tar.7z | tar xf - -C target_dir") |
Rafahsolis (talk | contribs) m Tag: visualeditor |
||
| (2 intermediate revisions 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]]=== | ||
| + | |||
| + | === 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> | ||