-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
sqsh-ls.1.in
107 lines (80 loc) · 2.45 KB
/
sqsh-ls.1.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.TH sqsh-ls 1 "March 17, 2023" "Version @VERSION@" "User Commands"
.SH NAME
sqsh-ls \- list files and directories in a squashfs archive.
.SH SYNOPSIS
.B sqsh-ls
[\fB-o\fR \fIOFFSET\fR]
[\fB-r\fR]
[\fB-l\fR]
\fIFILESYSTEM\fR
[\fIPATH\fR]
.br
.B sqsh-ls
[\fB-v\fR]
.SH DESCRIPTION
.B sqsh-ls
is a tool that lists the contents of a squashfs archive. By default, it
lists the files and directories in the root directory of the archive.
If a \fIPATH\fR is specified, it lists the contents of that directory
within the archive.
.SH OPTIONS
.TP
.BR \-o " " \fIOFFSET\fR ", " \fB\-\-offset " " \fIOFFSET\fR
skip OFFSET bytes at start of FILESYSTEM.
.TP
.BR \-r ", " \fB\-\-recursive
Recursively list the contents of all subdirectories within the
specified path.
.TP
.BR \-l ", " \fB\-\-long
Print a long format listing of files and directories, similar to the
output of the \fBls -l\fR command.
.TP
.BR \-u ", " \fB\-\-utc
When running with \fB-l\fR use UTC timestamps instead of local time.
.TP
.BR \-R ", " \fB\-\-raw
Do not escape filenames, even if the output is a terminal.
.TP
.BR \-e ", " \fB\-\-escape
Escape filenames, even if the output is not a terminal.
.TP
.BR \-v ", " \fB\-\-version
Print the version of \fBsqsh-ls\fR and exit.
.SH ARGUMENTS
.TP
.BR FILESYSTEM
The path to the squashfs archive to list the contents of.
.TP
.BR PATH
Optional. The path to the directory within the archive to list the
contents of.
.SH EXIT STATUS
The \fBsqsh-ls\fR command exits with 0 on success, and non-zero on
failure.
.SH EXAMPLES
To list the contents of the root directory of a squashfs archive:
.BR sqsh-ls " " /path/to/filesystem.sqsh
To list the contents of a directory within a squashfs archive:
.BR sqsh-ls " " /path/to/filesystem.sqsh " " /path/to/directory/
To recursively list the contents of a directory within a squashfs
archive:
.BR sqsh-ls " " -r " " /path/to/filesystem.sqsh " " /path/to/directory/
To list the contents of a directory within a squashfs archive in long
format:
.BR sqsh-ls " " -l " " /path/to/filesystem.sqsh " " /path/to/directory/
To print the version of \fBsqsh-ls\fR:
.BR sqsh-ls " " -v
.SH SEE ALSO
.BR sqsh-cat (1),
.BR sqsh-mount (1),
.BR sqsh-stat (1),
.BR sqsh-unpack (1),
.BR sqsh-xattr (1),
.BR squashfs (5)
.SH AUTHOR
Written by Enno Boland.
.SH COPYRIGHT
Copyright (C) 2023 Enno Boland. This is free software; see the source
for copying conditions. There is NO warranty; not even for
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.