mksquashfs

Create or append files and directories to squashfs filesystems. More information: https://manned.org/mksquashfs.

mksquashfs path/to/file_or_directory1 path/to/file_or_directory2 ... filesystem.squashfs

mksquashfs path/to/file_or_directory1 path/to/file_or_directory2 ... filesystem.squashfs -comp gzip|lzo|lz4|xz|zstd|lzma

mksquashfs path/to/file_or_directory1 path/to/file_or_directory2 ... filesystem.squashfs -e file|directory1 file|directory2 ...

mksquashfs path/to/file_or_directory1 path/to/file_or_directory2 ... filesystem.squashfs -wildcards -e "*.gz"

mksquashfs path/to/file_or_directory1 path/to/file_or_directory2 ... filesystem.squashfs -regex -e "regular_expression"