This shows you the differences between two versions of the page.
|
uso:laboratoare:ac:laborator-03:cheatsheet [2021/10/14 21:06] andrei.tivga [Extragerea arhivelor la o cale specifică - tar] |
uso:laboratoare:ac:laborator-03:cheatsheet [2021/10/14 21:07] (current) andrei.tivga |
||
|---|---|---|---|
| Line 42: | Line 42: | ||
| </code> | </code> | ||
| - | |||
| - | |||
| - | |||
| - | ==== Adăugarea de noi fișiere la arhive - tar ==== | ||
| - | |||
| - | <code bash> | ||
| - | student@uso:~$ tar rvf înregistrări.tar înregistrare_lab04.mov | ||
| - | înregistrare_lab04.mov | ||
| - | student@uso:~$ tar tf înregistrări.tar | ||
| - | înregistrare_lab01.mov | ||
| - | înregistrare_lab02.mov | ||
| - | înregistrare_lab03.mov | ||
| - | înregistrare_lab04.mov | ||
| - | </code> | ||
| - | ==== Comprimare tar.gz ==== | ||
| - | |||
| - | <code bash> | ||
| - | student@uso:~$ tar -czvf inregistrari.tar.gz inregistrare_lab01.mov inregistrare_lab02.mov inregistrare_lab03.mov | ||
| - | inregistrare_lab01.mov | ||
| - | inregistrare_lab02.mov | ||
| - | inregistrare_lab03.mov | ||
| - | student@uso:~$ ls -l | ||
| - | -rw-r--r-- 1 student student 9441280 Sep 29 04:51 inregistrari.tar | ||
| - | -rw-r--r-- 1 student student 9439133 Oct 12 18:55 inregistrari.tar.gz | ||
| - | </code> | ||
| ===== Crearea arhivelor - zip ===== | ===== Crearea arhivelor - zip ===== | ||