LinuxCommandLibrary

unsquashfs

TLDR

Extract to squashfs-root

$ unsquashfs [filesystem.squashfs]
copy
Extract to specific directory
$ unsquashfs -d [path/to/directory] [filesystem.squashfs]
copy
Show filenames during extraction
$ unsquashfs -i [filesystem.squashfs]
copy
Show files with attributes
$ unsquashfs -li [filesystem.squashfs]
copy
List files without extracting
$ unsquashfs -l [filesystem.squashfs]
copy
List files with attributes
$ unsquashfs -ll [filesystem.squashfs]
copy

SYNOPSIS

unsquashfs [OPTIONS] FILESYSTEM

DESCRIPTION

unsquashfs extracts and lists files from squashfs compressed filesystems. Squashfs is a read-only compressed filesystem commonly used for Linux distributions, live CDs, and embedded systems.
By default, files are extracted to a squashfs-root directory in the current working directory.

PARAMETERS

-d, -dest DIR

Extract to specified directory
-i, -info
Display filenames during extraction
-li, -linfo
Display filenames and attributes during extraction
-l, -ls
List files without extracting
-ll, -lls
List files with attributes without extracting

CAVEATS

Extraction may require significant disk space. Some filesystems contain device nodes requiring root. Original permissions and ownership are preserved when run as root.

SEE ALSO

Copied to clipboard