1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-08 14:35:41 +02:00
tldr/pages/linux/sqfstar.md
Managor ba6daef39d
*: standardize regex usage (#17328)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
2025-07-25 08:50:06 +03:00

24 lines
1 KiB
Markdown

# 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 `regex`:
`lz4cat {{archive.tar.lz4}} | sqfstar {{filesystem.squashfs}} -regex "{{regex}}"`