This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 6e4c72f7bf6c10052e0f9d670184a5448ee4ab98
Author: Junbo Zheng <zhengjun...@xiaomi.com>
AuthorDate: Mon Jan 29 19:20:26 2024 +0800

    Documentation: add `uptime` command description
    
    Reference: https://github.com/apache/nuttx-apps/pull/1319
    
    Signed-off-by: Junbo Zheng <zhengjun...@xiaomi.com>
---
 Documentation/applications/nsh/commands.rst | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/Documentation/applications/nsh/commands.rst 
b/Documentation/applications/nsh/commands.rst
index 7c2a3b0cef..1f97661bd6 100644
--- a/Documentation/applications/nsh/commands.rst
+++ b/Documentation/applications/nsh/commands.rst
@@ -1757,6 +1757,27 @@ and the group-wide environment variables. For example::
 
   nsh>
 
+.. _cmduptime:
+
+``uptime`` Show how long the system has been running
+====================================================
+
+**Command Syntax**:
+
+  uptime [-sph]
+
+**Synopsis**. Display of the following information: the current time,
+how long the system has been running, and the load averages for the past 1, 5,
+and 15 minutes.
+
+**Options**
+
+======  ================================
+``-p``         show uptime in pretty format
+``-s``         system up since
+``-h``         display this help and exit
+======  ================================
+
 .. _cmdurldecode:
 
 ``urldecode`` URL Decode

Reply via email to