proofread and improve the man pages - plstree - ps and ls displayed as a tree
(HTM) git clone git://bitreich.org/plstree git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/plstree
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 6bb600c443072c795242155b40d04d4b721a1baa
(DIR) parent 5e9e94b21af36ac48a03a08fcf8b45c2004e5c52
(HTM) Author: Josuah Demangeon <mail@josuah.net>
Date: Sun, 10 Jun 2018 11:37:43 +0200
proofread and improve the man pages
Diffstat:
M Makefile | 2 +-
M README | 16 +++++++++++-----
M ltree.1 | 10 ++++++++--
M ptree.1 | 8 +++++++-
4 files changed, 27 insertions(+), 9 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
@@ -4,7 +4,7 @@ MAN1 = ltree.1 ptree.1
all:
README: $(MAN1)
- mandoc -T utf8 $(MAN1) | col -bx >$@
+ mandoc -T ascii $(MAN1) | col -bx >$@
install:
mkdir -p $(PREFIX)/bin
(DIR) diff --git a/README b/README
@@ -1,17 +1,19 @@
LTREE(1) General Commands Manual LTREE(1)
NAME
- ltree list a tree of a directory with details
+ ltree - list a tree of a directory with details
SYNOPSIS
- progname [dir]
+ ltree [dir]
DESCRIPTION
The ltree list the content of dir recursively and format the output into
a tree with details from ls -l.
+ If dir is not provided, the current working directory is listed.
+
SEE ALSO
- find(1), lr(1), pstree(1), tree(1)
+ find(1), lr(1), ls(1), ptree(1), tree(1)
list files, recursively: https://github.com/chneukirchen/lr,
@@ -25,7 +27,7 @@ OpenBSD 6.3 April 19, 2018 OpenBSD 6.3
PTREE(1) General Commands Manual PTREE(1)
NAME
- ptree list process tree as a tree
+ ptree - list process tree as a tree
SYNOPSIS
ptree
@@ -36,8 +38,12 @@ DESCRIPTION
uses the output of the ps(1) command as described by POSIX, and therefore
do not require a procfs(5) to be mounted at proc.
+EXAMPLE
+ View the process list in a pager without wrapping lines:
+ ptree | less -S
+
SEE ALSO
- lstree(1), ps(1)
+ ltree(1), ps(1)
Small utilities that use the /proc filesystem:
http://psmisc.sourceforge.net/,
(DIR) diff --git a/ltree.1 b/ltree.1
@@ -11,7 +11,7 @@
.
.Sh SYNOPSIS
.
-.Nm progname
+.Nm ltree
.Op Ar dir
.
.
@@ -24,12 +24,18 @@ list the content of
recursively and format the output into a tree with details from
.Nm ls Fl l .
.
+.Pp
+If
+.Ar dir
+is not provided, the current working directory is listed.
+.
.
.Sh SEE ALSO
.
.Xr find 1 ,
.Xr lr 1 ,
-.Xr pstree 1 ,
+.Xr ls 1 ,
+.Xr ptree 1 ,
.Xr tree 1
.
.Pp
(DIR) diff --git a/ptree.1 b/ptree.1
@@ -31,9 +31,15 @@ to be mounted at
.Pa proc .
.
.
+.Sh EXAMPLE
+.
+View the process list in a pager without wrapping lines:
+.Dl ptree | less -S
+.
+.
.Sh SEE ALSO
.
-.Xr lstree 1 ,
+.Xr ltree 1 ,
.Xr ps 1
.
.Pp