Compress data.csv while preserving the original.
xz -k data.csvCompress files using xz. The -k flag keeps the original file.
xz [OPTION]... [FILE]...Compress data.csv while preserving the original.
xz -k data.csvDecompress while keeping the compressed file.
xz -dk data.csv.xz| Option / clause | Description |
|---|---|
-z, --compress | Compress (default operation). |
-d, --decompress | Decompress. |
-k, --keep | Keep the input file. |
-c, --stdout | Write results to standard output. |
-T N, --threads=N | Use up to N threads (where supported). |
-0 to -9 | Set compression preset; higher values usually use more resources. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.