aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2025-09-11 20:51:48 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2025-09-16 13:55:23 +0000
commit3ac71c45ffa920d4d79d54813581f92442602cf7 (patch)
tree759cc1edcc26da1c5fc93bb51b5cef31ed1071e9
parenteafc54027d2ee6feac2114277d3c0f5131c9325f (diff)
uptime: Mention libxo support in manual page
MFC after: 3 days Sponsored by: Klara, Inc. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D52489 (cherry picked from commit 55bd607b9930e5f61219007ad0a81801c8cfdbf3)
-rw-r--r--usr.bin/w/uptime.118
-rw-r--r--usr.bin/w/w.14
2 files changed, 18 insertions, 4 deletions
diff --git a/usr.bin/w/uptime.1 b/usr.bin/w/uptime.1
index 16c16c0b5318..b20e9066a470 100644
--- a/usr.bin/w/uptime.1
+++ b/usr.bin/w/uptime.1
@@ -27,7 +27,7 @@
.\"
.\" @(#)uptime.1 8.2 (Berkeley) 4/18/94
.\"
-.Dd August 18, 2020
+.Dd September 11, 2025
.Dt UPTIME 1
.Os
.Sh NAME
@@ -35,6 +35,7 @@
.Nd show how long system has been running
.Sh SYNOPSIS
.Nm
+.Op Fl -libxo
.Sh DESCRIPTION
The
.Nm
@@ -42,6 +43,17 @@ utility displays the current time,
the length of time the system has been up,
the number of users, and the load average of the system over the last
1, 5, and 15 minutes.
+.Pp
+The following options are available:
+.Bl -tag -width indent
+.It Fl -libxo
+Generate output via
+.Xr libxo 3
+in a selection of different human and machine readable formats.
+See
+.Xr xo_options 7
+for details on command line arguments.
+.El
.Sh FILES
.Bl -tag -width /boot/kernel/kernel
.It Pa /boot/kernel/kernel
@@ -53,7 +65,9 @@ $ uptime
11:23AM up 3:01, 8 users, load averages: 21.09, 15.43, 12.79
.Ed
.Sh SEE ALSO
-.Xr w 1
+.Xr w 1 ,
+.Xr libxo 3 ,
+.Xr xo_options 7
.Sh HISTORY
The
.Nm
diff --git a/usr.bin/w/w.1 b/usr.bin/w/w.1
index 7f0d83032d4b..584c5d1b7129 100644
--- a/usr.bin/w/w.1
+++ b/usr.bin/w/w.1
@@ -27,7 +27,7 @@
.\"
.\" @(#)w.1 8.1 (Berkeley) 6/6/93
.\"
-.Dd August 24, 2020
+.Dd September 11, 2025
.Dt W 1
.Os
.Sh NAME
@@ -56,7 +56,7 @@ user is on, the host from which the user is logged in, the time the user
logged on, the time since the user last typed anything,
and the name and arguments of the current process.
.Pp
-The options are as follows:
+The following options are available:
.Bl -tag -width indent
.It Fl -libxo
Generate output via