Documentation/NuttShell.html: Update to include a description of the 'dmesg' command which was apparently never documented.

This commit is contained in:
Gregory Nutt 2019-11-21 12:25:50 -06:00
parent a83ea83e91
commit de45c3f607

View File

@ -178,355 +178,361 @@
<tr>
<td><br></td>
<td>
<a href="#cmdecho">2.17 Echo Strings and Variables (echo)</a>
<a href="#cmddmesg">2.17 Dump Buffered SYSLOG Ouput (dmesg)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdenv">2.18 Show Environment Variables (env)</a>
<a href="#cmdecho">2.18 Echo Strings and Variables (echo)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdexec">2.19 Execute User Code (exec)</a>
<a href="#cmdenv">2.19 Show Environment Variables (env)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdexit">2.20 Exit NSH (exit)</a>
<a href="#cmdexec">2.20 Execute User Code (exec)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdexport">2.21 Set an Environment Variable (export)</a>
<a href="#cmdexit">2.21 Exit NSH (exit)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdfree">2.22 Show Memory Manager Status (free)</a>
<a href="#cmdexport">2.22 Set an Environment Variable (export)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdget">2.23 Get File Via TFTP (get)</a>
<a href="#cmdfree">2.23 Show Memory Manager Status (free)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdhelp">2.24 Show Usage Command Usage (help)</a>
<a href="#cmdget">2.24 Get File Via TFTP (get)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdhexdump">2.25 Hexadecimal Dump of File or Device (hexdump)</a>
<a href="#cmdhelp">2.25 Show Usage Command Usage (help)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdifconfig">2.26 Manage Network Configuration (ifconfig)</a>
<a href="#cmdhexdump">2.26 Hexadecimal Dump of File or Device (hexdump)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdifdown">2.27 Take a network down (ifdown)</a>
<a href="#cmdifconfig">2.27 Manage Network Configuration (ifconfig)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdifup">2.28 Bring a network up (ifup)</a>
<a href="#cmdifdown">2.28 Take a network down (ifdown)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdinsmod">2.29 Install an OS module (insmod)</a>
<a href="#cmdifup">2.29 Bring a network up (ifup)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdirqinfo">2.30 Show Interrupt Status (irqinfo)</a>
<a href="#cmdinsmod">2.30 Install an OS module (insmod)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdkill">2.31 Send a signal to a task (kill)</a>
<a href="#cmdirqinfo">2.31 Show Interrupt Status (irqinfo)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdlosetup">2.32 Setup/teardown the Loop Device (losetup)</a>
<a href="#cmdkill">2.32 Send a signal to a task (kill)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdln">2.33 List to a File or Directory (ln)</a>
<a href="#cmdlosetup">2.33 Setup/teardown the Loop Device (losetup)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdls">2.34 List Directory Contents (ls)</a>
<a href="#cmdln">2.34 List to a File or Directory (ln)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdlsmod">2.35 Show information about installed OS modules (lsmod)</a>
<a href="#cmdls">2.35 List Directory Contents (ls)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdmd5">2.36 Calculate MD5 (md5)</a>
<a href="#cmdlsmod">2.36 Show information about installed OS modules (lsmod)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdmbhw">2.37 Access Memory (mb, mh, and mw)</a>
<a href="#cmdmd5">2.37 Calculate MD5 (md5)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdps">2.38 Show Current Tasks and Threads (ps)</a>
<a href="#cmdmbhw">2.38 Access Memory (mb, mh, and mw)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdmkdir">2.39 Create a Directory (mkdir)</a>
<a href="#cmdps">2.39 Show Current Tasks and Threads (ps)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdmkfatfs">2.40 Create a FAT File System (mkfatfs)</a>
<a href="#cmdmkdir">2.40 Create a Directory (mkdir)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdmkfifo">2.41 Create a FIFO (mkfifo)</a>
<a href="#cmdmkfatfs">2.41 Create a FAT File System (mkfatfs)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdmkrd">2.42 Create a RAMDISK (mkrd)</a>
<a href="#cmdmkfifo">2.42 Create a FIFO (mkfifo)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdmount">2.43 Mount a File System (mount)</a>
<a href="#cmdmkrd">2.43 Create a RAMDISK (mkrd)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdmv">2.44 Rename a File (mv)</a>
<a href="#cmdmount">2.44 Mount a File System (mount)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdnfsmount">2.45 Mount an NFS File System (nfsmount)</a>
<a href="#cmdmv">2.45 Rename a File (mv)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdnslookup">2.46 Lookup a network address (nslookup)</a>
<a href="#cmdnfsmount">2.46 Mount an NFS File System (nfsmount)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdpasswd">2.47 Change a User's Password (passwd)</a>
<a href="#cmdnslookup">2.47 Lookup a network address (nslookup)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdpmconfig">2.48 Manage Power Management Subsystem (pmconfig)</a>
<a href="#cmdpasswd">2.48 Change a User's Password (passwd)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdpoweroff">2.49 Shut the system down (poweroff)</a>
<a href="#cmdpmconfig">2.49 Manage Power Management Subsystem (pmconfig)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdput">2.50 Send File Via TFTP (put)</a>
<a href="#cmdpoweroff">2.50 Shut the system down (poweroff)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdpwd">2.51 Show Current Working Directory (pwd)</a>
<a href="#cmdput">2.51 Send File Via TFTP (put)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdreadlink">2.52 Show target of a link (readlink)</a>
<a href="#cmdpwd">2.52 Show Current Working Directory (pwd)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdreboot">2.53 Reset and reboot the system (reboot)</a>
<a href="#cmdreadlink">2.53 Show target of a link (readlink)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdrm">2.54 Remove a File (rm)</a>
<a href="#cmdreboot">2.54 Reset and reboot the system (reboot)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdrmdir">2.55 Remove a Directory (rmdir)</a>
<a href="#cmdrm">2.55 Remove a File (rm)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdrmmod">2.56 Remove on OS Module (rmmod)</a>
<a href="#cmdrmdir">2.56 Remove a Directory (rmdir)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdroute">2.57 Show routing table (route)</a>
<a href="#cmdrmmod">2.57 Remove on OS Module (rmmod)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdrptun">2.58 Start/Stop the OpenAMP RPC Tunnel (rptun)</a>
<a href="#cmdroute">2.58 Show routing table (route)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdset">2.59 Set a Variable (set)</a>
<a href="#cmdrptun">2.59 Start/Stop the OpenAMP RPC Tunnel (rptun)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdsh">2.60 Execute an NSH Script (sh)</a>
<a href="#cmdset">2.60 Set a Variable (set)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdshutdown">2.61 Shut the system down (shutdown)</a>
<a href="#cmdsh">2.61 Execute an NSH Script (sh)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdsleep">2.62 Wait for Seconds (sleep)</a>
<a href="#cmdshutdown">2.62 Shut the system down (shutdown)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdtelnetd">2.63 Start the Telnet Daemon (telnetd)</a>
<a href="#cmdsleep">2.63 Wait for Seconds (sleep)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdtime">2.64 Time execution of another command (time)</a>
<a href="#cmdtelnetd">2.64 Start the Telnet Daemon (telnetd)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdtruncate">2.65 Set the Size of a File (truncate)</a>
<a href="#cmdtime">2.65 Time execution of another command (time)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdunmount">2.66 Unmount a File System (umount)</a>
<a href="#cmdtruncate">2.66 Set the Size of a File (truncate)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmduname">2.67 Print system information (uname)</a>
<a href="#cmdunmount">2.67 Unmount a File System (umount)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdunset">2.68 Unset an Environment Variable (unset)</a>
<a href="#cmduname">2.68 Print system information (uname)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdurldec">2.69 URL Decode (urldecode)</a>
<a href="#cmdunset">2.69 Unset an Environment Variable (unset)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdurlencode">2.70 URL Encode (urlencode)</a>
<a href="#cmdurldec">2.70 URL Decode (urldecode)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmduseradd">2.71 Add a New User (useradd)</a>
<a href="#cmdurlencode">2.71 URL Encode (urlencode)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmduserdel">2.72 Delete a user (userdel)</a>
<a href="#cmduseradd">2.72 Add a New User (useradd)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdusleep">2.73 Wait for Microseconds (usleep)</a>
<a href="#cmduserdel">2.73 Delete a user (userdel)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdwget">2.74 Get File Via HTTP (wget)</a>
<a href="#cmdusleep">2.74 Wait for Microseconds (usleep)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdxd">2.75 Hexadecimal Dump of Memory (xd)</a>
<a href="#cmdwget">2.75 Get File Via HTTP (wget)</a>
</td>
</tr>
<tr>
<td><br></td>
<td>
<a href="#cmdxd">2.76 Hexadecimal Dump of Memory (xd)</a>
</td>
</tr>
<tr>
@ -1664,10 +1670,32 @@ dirname &lt;path&gt
the final directory or file name.
<p>
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdecho"><h2>2.17 Echo Strings and Variables (echo)</h2></a>
<a name="cmddmesg"><h2>2.17 Dump Buffered SYSLOG Ouput (dmesg)</h2></a>
</td>
</tr>
</table>
<p><b>Command Syntax:</b></p>
<ul><pre>
dmesg
</pre></ul>
<p>
<b>Synopsis</b>.
This command can be used to dump (and clear) the content of any buffered syslog output messages.
This command is only available if <code>CONFIG_RAMLOG_SYSLOG</code> is enabled.
In that case, syslog output will be collected in an in-memory, circular buffer.
Entering the <code>dmesg</code> command will dump the content of that in-memory, circular buffer to the NSH console output.
<code>dmesg</code> has the side effect of clearing the buffered data so that entering <code>dmesg</code> again will show only newly buffered data.
</p>
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdecho"><h2>2.18 Echo Strings and Variables (echo)</h2></a>
</td>
</tr>
</table>
@ -1688,7 +1716,7 @@ echo [-n] [&lt;string|$name&gt; [&lt;string|$name&gt;...]]
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdenv"><h2>2.18 Show Environment Variables (env)</h2></a>
<a name="cmdenv"><h2>2.19 Show Environment Variables (env)</h2></a>
</td>
</tr>
</table>
@ -1723,7 +1751,7 @@ nsh>
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdexec"><h2>2.19 Execute User Code (exec)</h2></a>
<a name="cmdexec"><h2>2.20 Execute User Code (exec)</h2></a>
</td>
</tr>
</table>
@ -1742,7 +1770,7 @@ exec &lt;hex-address&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdexit"><h2>2.20 Exit NSH (exit)</h2></a>
<a name="cmdexit"><h2>2.21 Exit NSH (exit)</h2></a>
</td>
</tr>
</table>
@ -1761,7 +1789,7 @@ exit
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdexport"><h2>2.21 Set an Environment Variable (export)</h2></a>
<a name="cmdexport"><h2>2.22 Set an Environment Variable (export)</h2></a>
</td>
</tr>
</table>
@ -1820,7 +1848,7 @@ dog=poop
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdfree"><h2>2.22 Show Memory Manager Status (free)</h2></a>
<a name="cmdfree"><h2>2.23 Show Memory Manager Status (free)</h2></a>
</td>
</tr>
</table>
@ -1862,7 +1890,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdget"><h2>2.23 Get File Via TFTP (get)</h2></a>
<a name="cmdget"><h2>2.24 Get File Via TFTP (get)</h2></a>
</td>
</tr>
</table>
@ -1897,7 +1925,7 @@ get [-b|-n] [-f &lt;local-path&gt;] -h &lt;ip-address&gt; &lt;remote-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdhelp"><h2>2.24 Show Usage Command Usage (help)</h2></a>
<a name="cmdhelp"><h2>2.25 Show Usage Command Usage (help)</h2></a>
</td>
</tr>
</table>
@ -1929,7 +1957,7 @@ help [-v] [&lt;cmd&gt;]
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdhexdump"><h2>2.25 Hexadecimal Dump of File or Device (hexdump)</h2></a>
<a name="cmdhexdump"><h2>2.26 Hexadecimal Dump of File or Device (hexdump)</h2></a>
</td>
</tr>
</table>
@ -1959,7 +1987,7 @@ The <code>skip</code> and <code>count</code> options are only available if <code
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdifconfig"><h2>2.26 Manage Network Configuration (ifconfig)</h2></a>
<a name="cmdifconfig"><h2>2.27 Manage Network Configuration (ifconfig)</h2></a>
</td>
</tr>
</table>
@ -2021,7 +2049,7 @@ nsh&gt; mount -t procfs /proc
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdifdown"><h2>2.27 Take a network down (ifdown)</h2></a>
<a name="cmdifdown"><h2>2.28 Take a network down (ifdown)</h2></a>
</td>
</tr>
</table>
@ -2044,7 +2072,7 @@ ifdown eth0
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdifup"><h2>2.28 Bring a network up (ifup)</h2></a>
<a name="cmdifup"><h2>2.29 Bring a network up (ifup)</h2></a>
</td>
</tr>
</table>
@ -2067,7 +2095,7 @@ ifup eth0
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdinsmod"><h2>2.29 Install an OS module (insmod)</h2></a>
<a name="cmdinsmod"><h2>2.30 Install an OS module (insmod)</h2></a>
</td>
</tr>
</table>
@ -2110,7 +2138,7 @@ mydriver 20404659 20404625 0 20404580 552 204047a8 0
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdirqinfo"><h2>2.30 Show Interrupt Status (irqinfo)</h2></a>
<a name="cmdirqinfo"><h2>2.31 Show Interrupt Status (irqinfo)</h2></a>
</td>
</tr>
</table>
@ -2137,7 +2165,7 @@ IRQ HANDLER ARGUMENT COUNT RATE
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdkill"><h2>2.31 Send a signal to a task (kill)</h2></a>
<a name="cmdkill"><h2>2.32 Send a signal to a task (kill)</h2></a>
</td>
</tr>
</table>
@ -2184,7 +2212,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdlosetup"><h2>2.32 Setup/teardown the Loop Device (losetup)</h2></a>
<a name="cmdlosetup"><h2>2.33 Setup/teardown the Loop Device (losetup)</h2></a>
</td>
</tr>
</table>
@ -2237,7 +2265,7 @@ losetup d &lt;dev-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdln"><h2>2.33 Link to a File or Directory (ln)</h2></a>
<a name="cmdln"><h2>2.34 Link to a File or Directory (ln)</h2></a>
</td>
</tr>
</table>
@ -2262,7 +2290,7 @@ ln [-s] &lt;target&gt; &lt;link&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdls"><h2>2.34 List Directory Contents (ls)</h2></a>
<a name="cmdls"><h2>2.35 List Directory Contents (ls)</h2></a>
</td>
</tr>
</table>
@ -2300,7 +2328,7 @@ ls [-lRs] &lt;dir-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdlsmod"><h2>2.35 Show information about installed OS modules (lsmod)</h2></a>
<a name="cmdlsmod"><h2>2.36 Show information about installed OS modules (lsmod)</h2></a>
</td>
</tr>
</table>
@ -2333,7 +2361,7 @@ mydriver 20404659 20404625 0 20404580 552 204047a8 0
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdmd5"><h2>2.36 Calculate MD5 (md5)</h2></a>
<a name="cmdmd5"><h2>2.37 Calculate MD5 (md5)</h2></a>
</td>
</tr>
</table>
@ -2350,7 +2378,7 @@ md5 [-f] &lt;string or filepath&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdmbhw"><h2>2.37 Access Memory (mb, mh, and mw)</h2></a>
<a name="cmdmbhw"><h2>2.38 Access Memory (mb, mh, and mw)</h2></a>
</td>
</tr>
</table>
@ -2403,7 +2431,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdps"><h2>2.38 Show Current Tasks and Threads (ps)</h2></a>
<a name="cmdps"><h2>2.39 Show Current Tasks and Threads (ps)</h2></a>
</td>
</tr>
</table>
@ -2437,7 +2465,7 @@ nsh&gt; mount -t procfs /proc
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdmkdir"><h2>2.39 Create a Directory (mkdir)</h2></a>
<a name="cmdmkdir"><h2>2.40 Create a Directory (mkdir)</h2></a>
</td>
</tr>
</table>
@ -2472,7 +2500,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdmkfatfs"><h2>2.40 Create a FAT File System (mkfatfs)</h2></a>
<a name="cmdmkfatfs"><h2>2.41 Create a FAT File System (mkfatfs)</h2></a>
</td>
</tr>
</table>
@ -2504,7 +2532,7 @@ mkfatfs [-F &lt;fatsize&gt;] [-r &lt;rootdirentries&gt;] &lt;block-driver&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdmkfifo"><h2>2.41 Create a FIFO (mkfifo)</h2></a>
<a name="cmdmkfifo"><h2>2.42 Create a FIFO (mkfifo)</h2></a>
</td>
</tr>
</table>
@ -2542,7 +2570,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdmkrd"><h2>2.42 Create a RAMDISK (mkrd)</h2></a>
<a name="cmdmkrd"><h2>2.43 Create a RAMDISK (mkrd)</h2></a>
</td>
</tr>
</table>
@ -2593,7 +2621,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdmount"><h2>2.43 Mount a File System (mount)</h2></a>
<a name="cmdmount"><h2>2.44 Mount a File System (mount)</h2></a>
</td>
</tr>
</table>
@ -2672,7 +2700,7 @@ nsh&gt; mount
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdmv"><h2>2.44 Rename a File (mv)</h2></a>
<a name="cmdmv"><h2>2.45 Rename a File (mv)</h2></a>
</td>
</tr>
</table>
@ -2690,7 +2718,7 @@ mv &lt;old-path&gt; &lt;new-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdnfsmount"><h2>2.45 Mount an NFS file system (nfsmount)</h2></a>
<a name="cmdnfsmount"><h2>2.46 Mount an NFS file system (nfsmount)</h2></a>
</td>
</tr>
</table>
@ -2709,7 +2737,7 @@ nfsmount &lt;server-address&gt; &lt;mount-point&gt; &lt;remote-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdnslookup"><h2>2.46 Lookup a network address (nslookup)</h2></a>
<a name="cmdnslookup"><h2>2.47 Lookup a network address (nslookup)</h2></a>
</td>
</tr>
</table>
@ -2726,7 +2754,7 @@ nslookup &lt;host-name&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdpasswd"><h2>2.47 Change a User's Password (passwd)</h2></a>
<a name="cmdpasswd"><h2>2.48 Change a User's Password (passwd)</h2></a>
</td>
</tr>
</table>
@ -2743,7 +2771,7 @@ passwd &lt;username&gt; &lt;password&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdpmconfig"><h2>2.48 Manage Power Management Subsystem (pmconfig)</h2></a>
<a name="cmdpmconfig"><h2>2.49 Manage Power Management Subsystem (pmconfig)</h2></a>
</td>
</tr>
</table>
@ -2760,7 +2788,7 @@ pmconfig [stay|relax] [normal|idle|standby|sleep]
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdpoweroff"><h2>2.49 Shut the system down (poweroff)</h2></a>
<a name="cmdpoweroff"><h2>2.50 Shut the system down (poweroff)</h2></a>
</td>
</tr>
</table>
@ -2784,7 +2812,7 @@ poweroff [&lt;n&gt;]
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdput"><h2>2.50 Send File Via TFTP (put)</h2></a>
<a name="cmdput"><h2>2.51 Send File Via TFTP (put)</h2></a>
</td>
</tr>
</table>
@ -2819,7 +2847,7 @@ put [-b|-n] [-f &lt;remote-path&gt;] -h &lt;ip-address&gt; &lt;local-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdpwd"><h2>2.51 Show Current Working Directory (pwd)</h2></a>
<a name="cmdpwd"><h2>2.52 Show Current Working Directory (pwd)</h2></a>
</td>
</tr>
</table>
@ -2849,7 +2877,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdreadlink"><h2>2.52 Show target of a link (readlink)</h2></a>
<a name="cmdreadlink"><h2>2.53 Show target of a link (readlink)</h2></a>
</td>
</tr>
</table>
@ -2866,7 +2894,7 @@ readlink &lt;link&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdreboot"><h2>2.53 Reboot the system (reboot)</h2></a>
<a name="cmdreboot"><h2>2.54 Reboot the system (reboot)</h2></a>
</td>
</tr>
</table>
@ -2888,7 +2916,7 @@ reboot [&lt;n&gt;]
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdrm"><h2>2.54 Remove a File (rm)</h2></a>
<a name="cmdrm"><h2>2.55 Remove a File (rm)</h2></a>
</td>
</tr>
</table>
@ -2922,7 +2950,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdrmdir"><h2>2.55 Remove a Directory (rmdir)</h2></a>
<a name="cmdrmdir"><h2>2.56 Remove a Directory (rmdir)</h2></a>
</td>
</tr>
</table>
@ -2957,7 +2985,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdrmmod"><h2>2.56 Remove on OS Module (rmmod)</h2></a>
<a name="cmdrmmod"><h2>2.57 Remove on OS Module (rmmod)</h2></a>
</td>
</tr>
</table>
@ -2985,7 +3013,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdroute"><h2>2.57 Show routing table (route)</h2></a>
<a name="cmdroute"><h2>2.58 Show routing table (route)</h2></a>
</td>
</tr>
</table>
@ -3006,7 +3034,7 @@ route ipv4|ipv6
<tr>
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdrptun"><h2>2.58 Start/Stop the OpenAMP RPC Tunnel (rptun)</h2></a>
<a name="cmdrptun"><h2>2.59 Start/Stop the OpenAMP RPC Tunnel (rptun)</h2></a>
</td>
</tr>
</table>
@ -3023,7 +3051,7 @@ rptun start|stop &lt;dev-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdset"><h2>2.59 Set a Variable (set)</h2></a>
<a name="cmdset"><h2>2.60 Set a Variable (set)</h2></a>
</td>
</tr>
</table>
@ -3112,7 +3140,7 @@ foovalue
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdsh"><h2>2.60 Execute an NSH Script (sh)</h2></a>
<a name="cmdsh"><h2>2.61 Execute an NSH Script (sh)</h2></a>
</td>
</tr>
</table>
@ -3130,7 +3158,7 @@ sh &lt;script-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdshutdown"><h2>2.61 Shut the system down (shutdown)</h2></a>
<a name="cmdshutdown"><h2>2.62 Shut the system down (shutdown)</h2></a>
</td>
</tr>
</table>
@ -3151,7 +3179,7 @@ shutdown [--reboot]
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdsleep"><h2>2.62 Wait for Seconds (sleep)</h2></a>
<a name="cmdsleep"><h2>2.63 Wait for Seconds (sleep)</h2></a>
</td>
</tr>
</table>
@ -3168,7 +3196,7 @@ sleep &lt;sec&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdtelnetd"><h2>2.63 Time Start the Telnet Daemon (telnetd)</h2></a>
<a name="cmdtelnetd"><h2>2.64 Time Start the Telnet Daemon (telnetd)</h2></a>
</td>
</tr>
</table>
@ -3194,7 +3222,7 @@ telnetd
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdtime"><h2>2.64 Time execution of another command (time)</h2></a>
<a name="cmdtime"><h2>2.65 Time execution of another command (time)</h2></a>
</td>
</tr>
</table>
@ -3252,7 +3280,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdtruncate"><h2>2.65 Set the Size of a File (truncate)</h2></a>
<a name="cmdtruncate"><h2>2.66 Set the Size of a File (truncate)</h2></a>
</td>
</tr>
</table>
@ -3280,7 +3308,7 @@ truncate -s &lt;length&gt; &lt;file-path&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdunmount"><h2>2.66 Unmount a File System (umount)</h2></a>
<a name="cmdunmount"><h2>2.67 Unmount a File System (umount)</h2></a>
</td>
</tr>
</table>
@ -3310,7 +3338,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmduname"><h2>2.67 Print system information (uname)</h2></a>
<a name="cmduname"><h2>2.68 Print system information (uname)</h2></a>
</td>
</tr>
</table>
@ -3377,7 +3405,7 @@ uname [-a | -imnoprsv]
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdunset"><h2>2.68 Unset an Environment Variable (unset)</h2></a>
<a name="cmdunset"><h2>2.69 Unset an Environment Variable (unset)</h2></a>
</td>
</tr>
</table>
@ -3403,7 +3431,7 @@ nsh&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdurldec"><h2>2.69 URL Decode (urldecode)</h2></a>
<a name="cmdurldec"><h2>2.70 URL Decode (urldecode)</h2></a>
</td>
</tr>
</table>
@ -3420,7 +3448,7 @@ urldecode [-f] &lt;string or filepath&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdurlencode"><h2>2.70 URL Encode (urlencode)</h2></a>
<a name="cmdurlencode"><h2>2.71 URL Encode (urlencode)</h2></a>
</td>
</tr>
</table>
@ -3437,7 +3465,7 @@ urlencode [-f] &lt;string or filepath&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmduseradd"><h2>2.71 Add a New User (useradd)</h2></a>
<a name="cmduseradd"><h2>2.72 Add a New User (useradd)</h2></a>
</td>
</tr>
</table>
@ -3454,7 +3482,7 @@ useradd &lt;username&gt; &lt;password&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmduserdel"><h2>2.72 Delete a user (userdel)</h2></a>
<a name="cmduserdel"><h2>2.73 Delete a user (userdel)</h2></a>
</td>
</tr>
</table>
@ -3471,7 +3499,7 @@ userdel &lt;username&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdusleep"><h2>2.73 Wait for Microseconds (usleep)</h2></a>
<a name="cmdusleep"><h2>2.74 Wait for Microseconds (usleep)</h2></a>
</td>
</tr>
</table>
@ -3488,7 +3516,7 @@ usleep &lt;usec&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdwget"><h2>2.74 Get File Via HTTP (wget)</h2></a>
<a name="cmdwget"><h2>2.75 Get File Via HTTP (wget)</h2></a>
</td>
</tr>
</table>
@ -3515,7 +3543,7 @@ wget [-o &lt;local-path&gt;] &lt;url&gt;
<table width ="100%">
<tr bgcolor="#e4e4e4">
<td>
<a name="cmdxd"><h2>2.75 Hexadecimal Dump of Memory (xd)</h2></a>
<a name="cmdxd"><h2>2.76 Hexadecimal Dump of Memory (xd)</h2></a>
</td>
</tr>
</table>
@ -3716,6 +3744,11 @@ nsh&gt;
<td>&nbsp;</td>
<td><code>CONFIG_NSH_DISABLE_DIRNAME</code></td>
</tr>
<tr>
<td><b><code>dmesg</code></b></td>
<td><code>CONFIG_RAMLOG_SYSLOG</code></td>
<td><code>CONFIG_NSH_DISABLE_DMESG</code></td>
</tr>
<tr>
<td><b><code>echo</code></b></td>
<td><br></td>
@ -5864,6 +5897,7 @@ xxd -i romfs_img >nsh_romfsimg.h
<li><a href="#cmddirname"><code>dirname</code></a></li>
<li><a href="#looping"><code>do</code></a></li>
<li><a href="#looping"><code>done</code></a></li>
<li><a href="#cmddmesg"><code>dmesg</code></a></li>
<li><a href="#cmdecho"><code>echo</code></a></li>
<li><a href="#cmdenv"><code>env</code></a></li>
<li><a href="#environvars">Environment Variables</a></li>
@ -5907,10 +5941,10 @@ xxd -i romfs_img >nsh_romfsimg.h
<li><a href="#cmdnfsmount"><code>nfsmount</code></a></li>
<li><a href="#cmdoverview"><code>nice</code></a></li>
<li><a href="#nshlibrary">NSH library (<code>nshlib</code>)</a></li>
<li><a href="#custonshlib">NSH library (<code>nshlib</code>), initialization</a></li>
</ul></td>
<td width="34%" valign="top">
<ul>
<li><a href="#custonshlib">NSH library (<code>nshlib</code>), initialization</a></li>
<li><a href="#custonshlib"><code>nsh_consolemain()</code></a></li>
<li><a href="#custonshlib"><code>nsh_initialize()</code></a></li>
<li><a href="#custonshlib"><code>nsh_main()</code></a></li>