Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
linux/sqfstar Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# sqfstar
> Create a squashfs filesystem from a tar archive.
> More information: <https://manned.org/sqfstar>.
- Create a squashfs filesystem (compressed using `gzip` by default) from an uncompressed `tar` archive:
`sqfstar {{filesystem.squashfs}} < {{archive.tar}}`
- Create a squashfs filesystem from a `tar` archive compressed with `gzip`, and [comp]ress the filesystem using a specific algorithm:
`zcat {{archive.tar.gz}} | sqfstar -comp {{gzip|lzo|lz4|xz|zstd|lzma}} {{filesystem.squashfs}}`
- Create a squashfs filesystem from a `tar` archive compressed with `xz`, excluding some of the files:
`xzcat {{archive.tar.xz}} | sqfstar {{filesystem.squashfs}} {{file1 file2 ...}}`
- Create a squashfs filesystem from a `tar` archive compressed with `zstd`, excluding files ending with `.gz`:
`zstdcat {{archive.tar.zst}} | sqfstar {{filesystem.squashfs}} "{{*.gz}}"`
- Create a squashfs filesystem from a `tar` archive compressed with `lz4`, excluding files matching a regular expression:
`lz4cat {{archive.tar.lz4}} | sqfstar {{filesystem.squashfs}} -regex "{{regular_expression}}"`