Forrest logo
back to the mksquashfs tool

mksquashfs:tldr:38db1

mksquashfs: Create or append files and directories to a squashfs filesystem, [e]xcluding those ending with `.gz`.
$ mksquashfs ${filename_or_directory1 filename_or_directory2 ---} ${filesystem-squashfs} -wildcards -e "${*-gz}"
try on your machine

The given command is used to create a SquashFS filesystem from one or multiple files or directories.

Here is a breakdown of the command:

  • mksquashfs: This is the command used to create a SquashFS filesystem.
  • ${filename_or_directory1 filename_or_directory2 ---}: This refers to the input files or directories that will be included in the SquashFS filesystem. You can specify one or more filenames or directories here.
  • ${filesystem-squashfs}: This represents the output file name and location of the SquashFS filesystem that will be created.
  • -wildcards: This flag allows the usage of wildcards in specifying the input filenames or directories. For example, you can use *.txt to include all files with a .txt extension.
  • -e "${*-gz}": This flag specifies the pattern of files or directories that should be excluded from the SquashFS filesystem. The pattern "${*-gz}" will exclude all files ending with .gz.

In summary, the command creates a SquashFS filesystem from the specified input files or directories, using wildcard patterns for inclusion and exclusion. The resulting SquashFS filesystem will be saved with the name specified in ${filesystem-squashfs}.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mksquashfs tool