mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-28 04:53:46 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,25 +5,25 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# sqfstar
|
||||
|
||||
> Create a squashfs filesystem from a tar archive.
|
||||
> 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:
|
||||
- Create a squashfs filesystem (compressed using `gzip` by default) from an uncompressed `.tar` archive:
|
||||
|
||||
`sqfstar < {{archive.tar}} {{filesystem.squashfs}}`
|
||||
|
||||
- Create a squashfs filesystem from a tar archive compressed with `gzip`, and [comp]ress the filesystem using a specific algorithm:
|
||||
- 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:
|
||||
- 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`:
|
||||
- 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`:
|
||||
- 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}}"`
|
||||
|
||||
Reference in New Issue
Block a user