exa.1 3.3 KB
Newer Older
B
Ben S 已提交
1
.hy
B
Benjamin Sago 已提交
2
.TH "exa" "1" "2017\-05\-17" "exa 0.6.0" ""
B
Ben S 已提交
3
.SH NAME
B
Ben S 已提交
4 5
.PP
exa \- a modern replacement for ls
B
Ben S 已提交
6
.SH SYNOPSIS
B
Ben S 已提交
7 8
.PP
exa [\f[I]options\f[]] [\f[I]files\f[]]...
B
Ben S 已提交
9
.SH DESCRIPTION
B
Ben S 已提交
10 11 12 13 14 15 16 17 18 19 20 21 22 23
.PP
\f[C]exa\f[] is a modern replacement for \f[C]ls\f[].
It uses colours for information by default, helping you distinguish
between many types of files, such as whether you are the owner, or in
the owning group.
It also has extra features not present in the original \f[C]ls\f[], such
as viewing the Git status for a directory, or recursing into directories
with a tree view.
.SH DISPLAY OPTIONS
.TP
.B \-1, \-\-oneline
display one entry per line
.RS
.RE
B
Ben S 已提交
24
.TP
B
Ben S 已提交
25
.B \-G, \-\-grid
26
display entries as a grid (default)
B
Ben S 已提交
27 28
.RS
.RE
B
Ben S 已提交
29
.TP
B
Ben S 已提交
30
.B \-l, \-\-long
31 32 33 34 35 36
display extended file metadata as a table
.RS
.RE
.TP
.B \-x, \-\-across
sort the grid across, rather than downwards
B
Ben S 已提交
37 38
.RS
.RE
B
Ben S 已提交
39
.TP
B
Ben S 已提交
40
.B \-R, \-\-recurse
B
Ben S 已提交
41
recurse into directories
B
Ben S 已提交
42 43
.RS
.RE
B
Ben S 已提交
44
.TP
B
Ben S 已提交
45
.B \-T, \-\-tree
46
recurse into directories as a tree
B
Ben S 已提交
47 48 49
.RS
.RE
.TP
50 51
.B \-\-color, \-\-colour=\f[I]WHEN\f[]
when to use terminal colours (always, automatic, never)
B
Ben S 已提交
52 53 54
.RS
.RE
.TP
55 56
.B \-\-color-scale, \-\-colour-scale
highlight levels of file sizes distinctly
B
Ben S 已提交
57 58 59 60 61
.RS
.RE
.SH FILTERING AND SORTING OPTIONS
.TP
.B \-a, \-\-all
62
don\[aq]t hide hidden and \[aq]dot\[aq] files
B
Ben S 已提交
63 64 65 66
.RS
.RE
.TP
.B \-d, \-\-list\-dirs
67
list directories like regular files
B
Ben S 已提交
68 69
.RS
.RE
B
Ben S 已提交
70
.TP
B
Ben S 已提交
71
.B \-r, \-\-reverse
72 73 74 75 76 77 78 79
reverse the sort order
.RS
.RE
.TP
.B \-s, \-\-sort=\f[I]SORT_FIELD\f[]
which field to sort by.
Valid fields are name, Name, extension, Extension, size, modified, accessed, created, inode, and none.
Fields starting with a capital letter are case-sensitive.
B
Ben S 已提交
80 81
.RS
.RE
B
Ben S 已提交
82
.TP
83 84
.B \-I, \-\-ignore\-glob=\f[I]GLOBS\f[]
Glob patterns, pipe-separated, of files to ignore
B
Ben S 已提交
85 86
.RS
.RE
B
Ben S 已提交
87
.TP
B
Ben S 已提交
88 89 90 91 92
.B \-\-group\-directories\-first
list directories before other files
.RS
.RE
.SH LONG VIEW OPTIONS
B
Ben S 已提交
93 94 95
.PP
These options are available when running with \f[C]\-\-long\f[]
(\f[C]\-l\f[]):
B
Ben S 已提交
96
.TP
B
Ben S 已提交
97
.B \-b, \-\-binary
98
list file sizes with binary prefixes
B
Ben S 已提交
99 100
.RS
.RE
B
Ben S 已提交
101
.TP
B
Ben S 已提交
102
.B \-B, \-\-bytes
103
list file sizes in bytes, without any prefixes
B
Ben S 已提交
104 105
.RS
.RE
B
Ben S 已提交
106
.TP
B
Ben S 已提交
107
.B \-g, \-\-group
108
list each file\[aq]s group
B
Ben S 已提交
109 110
.RS
.RE
B
Ben S 已提交
111
.TP
B
Ben S 已提交
112
.B \-h, \-\-header
113
add a header row to each column
B
Ben S 已提交
114 115
.RS
.RE
B
Ben S 已提交
116
.TP
B
Ben S 已提交
117
.B \-H, \-\-links
118
list each file\[aq]s number of hard links
B
Ben S 已提交
119 120
.RS
.RE
B
Ben S 已提交
121
.TP
B
Ben S 已提交
122
.B \-i, \-\-inode
123
list each file\[aq]s inode number
B
Ben S 已提交
124 125
.RS
.RE
B
Ben S 已提交
126
.TP
B
Ben S 已提交
127
.B \-L, \-\-level=\f[I]DEPTH\f[]
128
limit the depth of recursion
B
Ben S 已提交
129 130
.RS
.RE
B
Ben S 已提交
131
.TP
B
Ben S 已提交
132
.B \-m, \-\-modified
133
use the modified timestamp field
B
Ben S 已提交
134 135
.RS
.RE
B
Ben S 已提交
136
.TP
B
Ben S 已提交
137
.B \-S, \-\-blocks
138
list each file\[aq]s number of file system blocks
B
Ben S 已提交
139 140
.RS
.RE
B
Ben S 已提交
141
.TP
B
Ben S 已提交
142
.B \-t, \-\-time=\f[I]WORD\f[]
143
which timestamp field to list (modified, accessed, created)
B
Ben S 已提交
144 145
.RS
.RE
B
Ben S 已提交
146
.TP
B
Ben S 已提交
147
.B \-u, \-\-accessed
148
use the accessed timestamp field
B
Ben S 已提交
149 150
.RS
.RE
B
Ben S 已提交
151
.TP
B
Ben S 已提交
152
.B \-U, \-\-created
153
use the created timestamp field
B
Ben S 已提交
154 155
.RS
.RE
B
Ben S 已提交
156 157
.TP
.B \-\@, \-\-extended
158
list each file\[aq]s extended attributes and sizes
B
Ben S 已提交
159 160 161 162
.RS
.RE
.TP
.B \-\-git
163
list each file\[aq]s Git status, if tracked
B
Ben S 已提交
164 165
.RS
.RE
B
Ben S 已提交
166 167
.SH EXAMPLES
.PP
B
Ben S 已提交
168
To display a list of files, with the largest at the top:
B
Ben S 已提交
169 170 171 172 173 174 175
.IP
.nf
\f[C]
exa\ \-\-reverse\ \-\-sort=size
\f[]
.fi
.PP
B
Ben S 已提交
176
To display a tree of files, three levels deep:
B
Ben S 已提交
177 178 179 180 181 182 183 184 185 186 187 188
.IP
.nf
\f[C]
exa\ \-\-long\ \-\-tree\ \-\-level=3
\f[]
.fi
.SH AUTHOR
.PP
\f[C]exa\f[] is maintained by Benjamin \[aq]ogham\[aq] Sago and many
other contributors.
You can view the full list at
<https://github.com/ogham/exa/graphs/contributors>.