OS Manuals

/usr/bin/unsquashfs

A collection of utilities for creating, modifying, and extracting squashed read-only file systems on Linux.

From squashfs-tools 4.7.5-r3 (enterprise-packages), captured 2026-11-08 by running unsquashfs -help (exit 0) · terse output. permalink

SYNTAX: unsquashfs [OPTIONS] FILESYSTEM [files to extract or exclude (with
-excludes) or cat (with -cat )]

Run
  "unsquashfs -help-option <regex>" to get help on all options matching <regex>

Or run
  "unsquashfs -help-section <section-name>" to get help on these sections
	SECTION NAME		SECTION
	extraction		Filesystem extraction (filtering) options:
	information		Filesystem information and listing options:
	xattrs			Filesystem extended attribute (xattrs) options:
	runtime			Unsquashfs runtime options:
	help			Help options:
	misc			Miscellaneous options:
	environment		Environment:
	exit			Exit status:
	extra			See also (extra information elsewhere):
	decompressors		Decompressors available:

Or run
  "unsquashfs -help-all" to get help on all the sections
Options (55)
OptionDescriptionSource
-d, -dest PATHNAMEextract to PATHNAME, default "squashfs-root".man
-max, -max-depth LEVELSdescend at most LEVELS of directories when extracting.man
-excludestreat files on command line as exclude files.man
-ex, -exclude-listlist of files to be excluded, terminated with ;man
-extract-file FILElist of directories or files to extract.man
-exclude-file FILElist of directories or files to exclude.man
-matchabort if any extract file does not match on anything, and can not be resolved.man
-follow, -follow-symlinksfollow symlinks in extract files, and add all files/symlinks needed to resolve extract file.man
-missing, -missing-symlinksUnsquashfs will abort if any symlink can't be resolved in -follow-symlinks.man
-no-wild, -no-wildcardsdo not use wildcard matching in extract and exclude names.man
-r, -regextreat extract names as POSIX regular expressions rather than use the default shell wildcard expansion (globbing).man
-all, -all-time TIMEset all file timestamps to TIME, rather than the time stored in the filesystem inode.man
-catcat the files on the command line to stdout.man
-f, -forceif destination directory already exists, descend into it and any sub-directories, and unlink (delete) files if they already exist before extracting to them.man
-pf FILEoutput a pseudo file equivalent of the input Squashfs filesystem, use - for stdout.man
-s, -statdisplay filesystem superblock information.man
-i, -infoprint files as they are extracted.man
-li, -linfoprint files as they are extracted with file attributes (like ls -l output).man
-l, -lslist filesystem, but do not extract files.man
-ll, -llslist filesystem with file attributes (like ls -l output), but do not extract files.man
-lln, -llnumericsame as -lls but with numeric uids and gids.man
-lclist filesystem concisely, displaying only files and empty directories.man
-llclist filesystem concisely with file attributes, displaying only files and empty directories.man
-full, -full-precisionuse full precision when displaying times including seconds.man
-UTCuse UTC rather than local time zone when displaying time.man
-mkfs-timedisplay filesystem superblock time, which is an unsigned 32-bit int representing the time in seconds since the epoch (1970-01-01).man
-no, -no-xattrsdo not extract xattrs in file system.man
-x, -xattrsextract xattrs in file system (default).man
-xattrs-exclude REGEXexclude any xattr names matching REGEX.man
-xattrs-include REGEXinclude any xattr names matching REGEX.man
-v, -versionprint version, licence and copyright information.man
-p, -processors NUMBERuse NUMBER processors.man
-mem SIZEuse SIZE physical memory for caches.man
-mem-percent PERCENTuse PERCENT physical memory for caches.man
-q, -quietno verbose output.man
-n, -no-progressdo not display the progress bar.man
-percentagedisplay a percentage rather than the full progress bar.man
-ig, -ignore-errorstreat errors writing files to output as non-fatal.man
-st, -strict-errorstreat all errors as fatal.man
-no-exit, -no-exit-codedo not set exit code (to nonzero) on non-fatal errors.man
-h, -helpprint help summary information to pager (or stdout if not a terminal).man
-help-option REGEXprint the help information for options matching REGEX to pager (or stdout if not a terminal).man
-help-section SECTIONprint the help information for section SECTION to pager (or stdout if not a terminal).man
-help-allprint help information for all Unsquashfs options and sections to pager (or stdout if not a terminal).man
-ho REGEXshorthand alternative to -help-option.man
-hs SECTIONshorthand alternative to -help-section.man
-hashorthand alternative to -help-all.man
-no-pagerdo not use a pager to output help information.man
-cols WIDTHuse WIDTH columns to output help information.man
-o, -offset BYTESskip BYTES at start of FILESYSTEM.man
-fstimesynonym for -mkfs-time.man
-e, -ef EXTRACTsynonym for -extract-file.man
-exc, -excf EXCLUDEsynonym for -exclude-file.man
-Lsynonym for -follow-symlinks.man
-pseudo-file FILEalternative name for -pf.man
Exit status (3) from the manual page
0The filesystem listed or extracted OK.
1FATAL errors occurred, e.g. filesystem corruption, I/O errors.
2Non-fatal errors occurred, e.g. no support for XATTRs, Symbolic links in output filesystem or couldn't write permissions to output filesystem.

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.