mirror of
https://github.com/tiyn/wiki.git
synced 2025-04-03 15:27:45 +02:00
linux: updated 7-zip entry to work properly
This commit is contained in:
parent
23606aa1bd
commit
c89a1381a1
@ -21,10 +21,11 @@ As explained by
|
|||||||
An effective way to compress a directory is the following command where `directory` is the directory
|
An effective way to compress a directory is the following command where `directory` is the directory
|
||||||
that is to be compressed.
|
that is to be compressed.
|
||||||
The archive will be created by the same name as the directory but with the `.7z` extension.
|
The archive will be created by the same name as the directory but with the `.7z` extension.
|
||||||
|
This command uses [expansion](/wiki/linux/shell.md#expansion).
|
||||||
The directory is not deleted automatically afterwards.
|
The directory is not deleted automatically afterwards.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on directory
|
7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on directory{.7z,}
|
||||||
```
|
```
|
||||||
|
|
||||||
To uncompress it run the following command.
|
To uncompress it run the following command.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user