mksquashfs:tldr:bedf0
The command "mksquashfs" is used to create a SquashFS filesystem, which is a compressed read-only filesystem. It takes multiple options and arguments in the format:
mksquashfs ${filename_or_directory1 filename_or_directory2 ---} ${filesystem-squashfs}
-
The option "${filename_or_directory1 filename_or_directory2 ---}" specifies the list of files or directories that you want to include in the SquashFS filesystem. You can provide one or more filenames or directories separated by spaces. The '---' is called an "end of options" marker, which tells the command that there are no more options following it.
-
The argument "${filesystem-squashfs}" is the name of the output SquashFS filesystem that will be created. You can choose any valid filename for this argument.
For example, if you want to create a SquashFS filesystem named "myfilesystem.squashfs" with files "file1.txt" and "file2.txt" in it, the command would look like this:
mksquashfs file1.txt file2.txt --- myfilesystem.squashfs
This command would compress the files "file1.txt" and "file2.txt" into a single SquashFS filesystem called "myfilesystem.squashfs".