2026-08-03 17:57:39Niklas Polke:
Add metadata and strip-components
linux/tar.md ..
@@ 10,3 10,12 @@
| `tar -tzf <file>` | Show directories from proton |
| - | - |
| `tar -xzf <file> -C <dir to restore>` | Extract content from <file> into <dir to restore> |
+
| `tar -xzf <file> --strip-components=2 -C <dir to restore>` | Extract content from <file> into <dir to restore> but ignores first 2 levels of directory structur |
+
+
## Meta Data
+
:::info
+
Tar per default saves meta data such as user and group rights
+
:::
+
:::warning
+
To correctly restore user and group rights do tar -xzf with **sudo**