From a5b46b788b11c38209f074842e91fc6de3d836ae Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 5 Feb 2017 10:34:38 -0600 Subject: [PATCH] Update Document --- Documentation/NuttShell.html | 103 +++++++++++++++++++++-------------- 1 file changed, 63 insertions(+), 40 deletions(-) diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index 8e4b2957d3..987f8a7177 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -8,7 +8,7 @@

NuttShell (NSH)

-

Last Updated: February 2, 2017

+

Last Updated: February 5, 2017

@@ -377,115 +377,121 @@
- 2.49 Reset and reboot the system (reboot) + 2.49 Show target of a link (readlink)
- 2.50 Remove a File (rm) + 2.50 Reset and reboot the system (reboot)
- 2.51 Remove a Directory (rmdir) + 2.51 Remove a File (rm)
- 2.52 Remove on OS Module (rmmod) + 2.52 Remove a Directory (rmdir)
- 2.53 Set an Environment Variable (set) + 2.53 Remove on OS Module (rmmod)
- 2.54 Execute an NSH Script (sh) + 2.54 Set an Environment Variable (set)
- 2.55 Shut the system down (shutdown) + 2.55 Execute an NSH Script (sh)
- 2.56 Wait for Seconds (sleep) + 2.56 Shut the system down (shutdown)
- 2.57 Time execution of another command (time) + 2.57 Wait for Seconds (sleep)
- 2.58 Unmount a File System (umount) + 2.58 Time execution of another command (time)
- 2.59 Print system information (uname) + 2.59 Unmount a File System (umount)
- 2.60 Unset an Environment Variable (unset) + 2.60 Print system information (uname)
- 2.61 URL Decode (urldecode) + 2.61 Unset an Environment Variable (unset)
- 2.62 URL Encode (urlencode) + 2.62 URL Decode (urldecode)
- 2.63 Add a New User (useradd) + 2.63 URL Encode (urlencode)
- 2.64 Delete a user (userdel) + 2.64 Add a New User (useradd)
- 2.65 Wait for Microseconds (usleep) + 2.65 Delete a user (userdel)
- 2.66 Get File Via HTTP (wget) + 2.66 Wait for Microseconds (usleep)
- 2.67 Hexadecimal Dump of Memory (xd) + 2.67 Get File Via HTTP (wget) + + + +
+ + 2.68 Hexadecimal Dump of Memory (xd) @@ -2560,7 +2566,24 @@ nsh> + +
-

2.49 Reboot the system (reboot)

+

2.49 Show target of a link (readlink)

+
+ +

Command Syntax:

+ +

+ Synopsis. + Show the target of the soft link at the path <link>. +

+ + + +
+

2.50 Reboot the system (reboot)

@@ -2574,7 +2597,6 @@ reboot Reset and reboot the system immediately. This command depends on hardware support to reset the system.

-

NOTE: Supporting both the reboot and shutdown commands is redundant.

@@ -2582,7 +2604,7 @@ reboot
-

2.50 Remove a File (rm)

+

2.51 Remove a File (rm)

@@ -2616,7 +2638,7 @@ nsh>
-

2.51 Remove a Directory (rmdir)

+

2.52 Remove a Directory (rmdir)

@@ -2651,7 +2673,7 @@ nsh>
-

2.52 Remove on OS Module (rmmod)

+

2.53 Remove on OS Module (rmmod)

@@ -2679,7 +2701,7 @@ nsh>
-

2.53 Set an Environment Variable (set)

+

2.54 Set an Environment Variable (set)

@@ -2705,7 +2727,7 @@ nsh>
-

2.54 Execute an NSH Script (sh)

+

2.55 Execute an NSH Script (sh)

@@ -2724,7 +2746,7 @@ sh <script-path>
-

2.55 Shut the system down (shutdown)

+

2.56 Shut the system down (shutdown)

@@ -2745,7 +2767,7 @@ shutdown [--reboot]
-

2.56 Wait for Seconds (sleep)

+

2.57 Wait for Seconds (sleep)

@@ -2762,7 +2784,7 @@ sleep <sec>
-

2.57 Time execution of another command (time)

+

2.58 Time execution of another command (time)

@@ -2821,7 +2843,7 @@ nsh>
-

2.58 Unmount a File System (umount)

+

2.59 Unmount a File System (umount)

@@ -2851,7 +2873,7 @@ nsh>
-

2.59 Print system information (uname)

+

2.60 Print system information (uname)

@@ -2918,7 +2940,7 @@ uname [-a | -imnoprsv]
-

2.60 Unset an Environment Variable (unset)

+

2.61 Unset an Environment Variable (unset)

@@ -2944,7 +2966,7 @@ nsh>
-

2.61 URL Decode (urldecode)

+

2.62 URL Decode (urldecode)

@@ -2961,7 +2983,7 @@ urldecode [-f] <string or filepath>
-

2.62 URL Encode (urlencode)

+

2.63 URL Encode (urlencode)

@@ -2978,7 +3000,7 @@ urlencode [-f] <string or filepath>
-

2.63 Add a New User (useradd)

+

2.64 Add a New User (useradd)

@@ -2995,7 +3017,7 @@ useradd <username> <password>
-

2.64 Delete a user (userdel)

+

2.65 Delete a user (userdel)

@@ -3012,7 +3034,7 @@ userdel <username>
-

2.65 Wait for Microseconds (usleep)

+

2.66 Wait for Microseconds (usleep)

@@ -3029,7 +3051,7 @@ usleep <usec>
-

2.66 Get File Via HTTP (wget)

+

2.67 Get File Via HTTP (wget)

@@ -3056,7 +3078,7 @@ wget [-o <local-path>] <url>
-

2.67 Hexadecimal Dump of Memory (xd)

+

2.68 Hexadecimal Dump of Memory (xd)

@@ -5294,6 +5316,7 @@ xxd -i romfs_img >nsh_romfsimg.h
  • pwd
  • PWD
  • rcS.template
  • +
  • readlink
  • reboot
  • Re-directed commands
  • Registration of builtin applications