-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgt.1
74 lines (67 loc) · 1.7 KB
/
gt.1
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
.\" Man page for gt
.\" Contact: [email protected]
.TH GT 1 "August 2024" "Version 1.4.2" "User Commands"
.SH NAME
gt \- a command-line utility for recursive directory listing.
.SH SYNOPSIS
.B gt
.RB [ OPTIONS ]
.RB [ DIRECTORY ]
.SH DESCRIPTION
.B gt
is a tree-like command-line tool designed for recursive directory listing. It provides various options to customize the output, such as showing hidden files, sorting the results, and limiting the depth of the directory tree.
.SH OPTIONS
.TP
.B \-h, \--help
Show help message and exit.
.TP
.B \-v, \--version
Show version information and exit.
.TP
.B \-a, \--all
Include hidden files and directories in the listing.
.TP
.B \-u, \--unsorted
List files and directories without sorting.
.TP
.B \-m, \--summary
Display a summary at the end, such as the number of files and directories.
.TP
.B \-d, \--directories
List only directories, excluding files.
.TP
.B \-f, \--full-path
Display the full path for files and directories.
.TP
.B \-o, \--order-by-extension
Order files based on their extension.
.TP
.B \--depth
Limit the depth of the directory tree. For example, \fB--depth 2\fR will only show two levels of directories.
.SH EXAMPLES
.TP
.B gt
List all files and directories in the current directory recursively.
.TP
.B gt \-a
List all files, including hidden ones.
.TP
.B gt \-d
List only directories.
.TP
.B gt \-f \-o
List all files with their full paths and order them by extension.
.TP
.B gt \--depth 2
List files and directories up to a depth of two levels.
.TP
.B gt /path/to/directory
List all files and directories within the specified directory.
.SH AUTHOR
.B github.com/elbachir-one
.br
Contact: [email protected]
.SH SEE ALSO
.BR ls (1),
.BR find (1),
.BR grep (1)