Documentation update
This commit is contained in:
parent
17e481e35a
commit
aed94bec0f
@ -8,7 +8,7 @@
|
||||
<tr align="center" bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<h1><big><font color="#3c34ec"><i>NuttShell (NSH)</i></font></big></h1>
|
||||
<p>Last Updated: July 18, 2013</p>
|
||||
<p>Last Updated: October 5, 2013</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -89,283 +89,295 @@
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdbase64dec">2.2 Base64 Decode (base64dec)</a>
|
||||
<a href="#cmdaddroute">2.2 Add a Routing Table Entry (addroute)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdbase64enc">2.3 Base64 Encode (base64enc)</a>
|
||||
<a href="#cmdbase64dec">2.3 Base64 Decode (base64dec)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdcat">2.4 Concatenate Files (cat)</a>
|
||||
<a href="#cmdbase64enc">2.4 Base64 Encode (base64enc)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdcd">2.5 Change Current Working Directory (cd)</a>
|
||||
<a href="#cmdcat">2.5 Concatenate Files (cat)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdcmp">2.6 Compare Files (cmp)</a>
|
||||
<a href="#cmdcd">2.6 Change Current Working Directory (cd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdcp">2.7 Copy Files (cp)</a>
|
||||
<a href="#cmdcmp">2.7 Compare Files (cmp)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmddate">2.8 Show or set the date and time (date)</a>
|
||||
<a href="#cmdcp">2.8 Copy Files (cp)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmddd">2.9 Copy and Convert Files (dd)</a>
|
||||
<a href="#cmddate">2.9 Show or set the date and time (date)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmddf">2.10 Show volume status (df)</a>
|
||||
<a href="#cmddd">2.10 Copy and Convert Files (dd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdecho">2.11 Echo Strings and Variables (echo)</a>
|
||||
<a href="#cmddelroute">2.11 Delete a Routing Table Entry (delroute)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdexec">2.12 Execute User Code (exec)</a>
|
||||
<a href="#cmddf">2.12 Show volume status (df)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdexit">2.13 Exit NSH (exit)</a>
|
||||
<a href="#cmdecho">2.13 Echo Strings and Variables (echo)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdfree">2.14 Show Memory Manager Status (free)</a>
|
||||
<a href="#cmdexec">2.14 Execute User Code (exec)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdget">2.15 Get File Via TFTP (get)</a>
|
||||
<a href="#cmdexit">2.15 Exit NSH (exit)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdhelp">2.16 Show Usage Command Usage (help)</a>
|
||||
<a href="#cmdfree">2.16 Show Memory Manager Status (free)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdhexdump">2.17 Hexadecimal Dump of File or Device (hexdump)</a>
|
||||
<a href="#cmdget">2.17 Get File Via TFTP (get)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdifconfig">2.18 Manage Network Configuration (ifconfig)</a>
|
||||
<a href="#cmdhelp">2.18 Show Usage Command Usage (help)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdifdown">2.19 Take a network down (ifdown)</a>
|
||||
<a href="#cmdhexdump">2.19 Hexadecimal Dump of File or Device (hexdump)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdifup">2.20 Bring a network up (ifup)</a>
|
||||
<a href="#cmdifconfig">2.20 Manage Network Configuration (ifconfig)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdkill">2.21 Send a signal to a task (kill)</a>
|
||||
<a href="#cmdifdown">2.21 Take a network down (ifdown)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdlosetup">2.22 Setup/teardown the Loop Device (losetup)</a>
|
||||
<a href="#cmdifup">2.22 Bring a network up (ifup)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdls">2.23 List Directory Contents (ls)</a>
|
||||
<a href="#cmdkill">2.23 Send a signal to a task (kill)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmd5">2.24 Calculate MD5 (md5)</a>
|
||||
<a href="#cmdlosetup">2.24 Setup/teardown the Loop Device (losetup)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmbhw">2.25 Access Memory (mb, mh, and mw)</a>
|
||||
<a href="#cmdls">2.25 List Directory Contents (ls)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdps">2.26 Show Current Tasks and Threads (ps)</a>
|
||||
<a href="#cmdmd5">2.26 Calculate MD5 (md5)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkdir">2.27 Create a Directory (mkdir)</a>
|
||||
<a href="#cmdmbhw">2.27 Access Memory (mb, mh, and mw)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkfatfs">2.28 Create a FAT Filesystem (mkfatfs)</a>
|
||||
<a href="#cmdps">2.28 Show Current Tasks and Threads (ps)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkfifo">2.29 Create a FIFO (mkfifo)</a>
|
||||
<a href="#cmdmkdir">2.29 Create a Directory (mkdir)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkrd">2.30 Create a RAMDISK (mkrd)</a>
|
||||
<a href="#cmdmkfatfs">2.30 Create a FAT Filesystem (mkfatfs)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmount">2.31 Mount a File System (mount)</a>
|
||||
<a href="#cmdmkfifo">2.31 Create a FIFO (mkfifo)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmv">2.32 Rename a File (mv)</a>
|
||||
<a href="#cmdmkrd">2.32 Create a RAMDISK (mkrd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdnfsmount">2.33 Mount an NFS file system (nfsmount)</a>
|
||||
<a href="#cmdmount">2.33 Mount a File System (mount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdping">2.34 Check Network Peer (ping)</a>
|
||||
<a href="#cmdmv">2.34 Rename a File (mv)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdput">2.35 Send File Via TFTP (put)</a>
|
||||
<a href="#cmdnfsmount">2.35 Mount an NFS file system (nfsmount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdpwd">2.36 Show Current Working Directory (pwd)</a>
|
||||
<a href="#cmdping">2.36 Check Network Peer (ping)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdrm">2.37 Remove a File (rm)</a>
|
||||
<a href="#cmdput">2.37 Send File Via TFTP (put)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdrmdir">2.38 Remove a Directory (rmdir)</a>
|
||||
<a href="#cmdpwd">2.38 Show Current Working Directory (pwd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdset">2.39 Set an Environment Variable (set)</a>
|
||||
<a href="#cmdrm">2.39 Remove a File (rm)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdsh">2.40 Execute an NSH Script (sh)</a>
|
||||
<a href="#cmdrmdir">2.40 Remove a Directory (rmdir)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdsleep">2.41 Wait for Seconds (sleep)</a>
|
||||
<a href="#cmdset">2.41 Set an Environment Variable (set)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdunmount">2.42 Unmount a File System (umount)</a>
|
||||
<a href="#cmdsh">2.42 Execute an NSH Script (sh)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdunset">2.43 Unset an Environment Variable (unset)</a>
|
||||
<a href="#cmdsleep">2.43 Wait for Seconds (sleep)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdurldec">2.44 URL Decode (urldecode)</a>
|
||||
<a href="#cmdunmount">2.44 Unmount a File System (umount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdurlencode">2.45 URL Encode (urlencode)</a>
|
||||
<a href="#cmdunset">2.45 Unset an Environment Variable (unset)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdusleep">2.46 Wait for Microseconds (usleep)</a>
|
||||
<a href="#cmdurldec">2.46 URL Decode (urldecode)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdwget">2.47 Get File Via HTTP (wget)</a>
|
||||
<a href="#cmdurlencode">2.47 URL Encode (urlencode)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdxd">2.48 Hexadecimal Dump of Memory (xd)</a>
|
||||
<a href="#cmdusleep">2.48 Wait for Microseconds (usleep)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdwget">2.49 Get File Via HTTP (wget)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdxd">2.50 Hexadecimal Dump of Memory (xd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -804,7 +816,31 @@ test <expression>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdbase64dec"><h2>2.2 Base64 Decode (base64dec)</h2></a>
|
||||
<a name="cmdaddroute"><h2>2.2 Add a Routing Table Entry (addroute)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><b>Command Syntax:</b></p>
|
||||
<ul><pre>
|
||||
addroute <target> <netmask> <router>
|
||||
</pre></ul>
|
||||
<p>
|
||||
<b>Synopsis</b>.
|
||||
This command adds an entry in the routing table.
|
||||
The new entry will map the IP address of a router on a local network(<router>) to an external network characterized by the <target> IP address and a network mask <netmask>
|
||||
</p>
|
||||
<p>
|
||||
<b>Example:</b>
|
||||
</p>
|
||||
<ul><pre>
|
||||
nsh> addroute 1.1.1.1 2.2.2.2 3.3.3.3
|
||||
</pre></ul>
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdbase64dec"><h2>2.3 Base64 Decode (base64dec)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -821,7 +857,7 @@ base64dec [-w] [-f] <string or filepath>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdbase64enc"><h2>2.3 Base64 Encode (base64enc)</h2></a>
|
||||
<a name="cmdbase64enc"><h2>2.4 Base64 Encode (base64enc)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -838,7 +874,7 @@ base64enc [-w] [-f] <string or filepath>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdcat"><h2>2.4 Concatenate Files (cat)</h2></a>
|
||||
<a name="cmdcat"><h2>2.5 Concatenate Files (cat)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -856,7 +892,7 @@ cat <code><path></code> [<code><path></code> [<code><path></co
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdcd"><h2>2.5 Change Current Working Directory (cd)</h2></a>
|
||||
<a name="cmdcd"><h2>2.6 Change Current Working Directory (cd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -898,7 +934,7 @@ cd [<dir-path>|-|~|..]
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdcmp"><h2>2.6 Compare Files (cmp)</h2></a>
|
||||
<a name="cmdcmp"><h2>2.7 Compare Files (cmp)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -915,7 +951,7 @@ cmp <path1> <path2>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdcp"><h2>2.7 Copy Files (cp)</h2></a>
|
||||
<a name="cmdcp"><h2>2.8 Copy Files (cp)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -933,7 +969,7 @@ cp <source-path> <dest-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmddate"><h2>2.8 Show or set the date and time (date)</h2></a>
|
||||
<a name="cmddate"><h2>2.9 Show or set the date and time (date)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -960,7 +996,7 @@ data -s "Sep 1 11:30:00 2011"
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmddd"><h2>2.9 Copy and Convert Files (dd)</h2></a>
|
||||
<a name="cmddd"><h2>2.10 Copy and Convert Files (dd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1018,10 +1054,34 @@ nsh> dd if=/dev/ram0 of=/dev/null
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmddf"><h2>2.10 Show Volument Status (df)</h2></a>
|
||||
<a name="cmddelroute"><h2>2.11 Delete a Routing Table Entry (delroute)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><b>Command Syntax:</b></p>
|
||||
<ul><pre>
|
||||
delroute <target> <netmask>
|
||||
</pre></ul>
|
||||
<p>
|
||||
<b>Synopsis</b>.
|
||||
The entry removed will be the first entry in the routing table that matches
|
||||
the external network characterized by the <target> IP address and the network mask <netmask>
|
||||
<p>
|
||||
<b>Example:</b>
|
||||
</p>
|
||||
<ul><pre>
|
||||
nsh> delroute 1.1.1.1 2.2.2.2
|
||||
</pre></ul>
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmddf"><h2>2.12 Show Volument Status (df)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><b>Command Syntax:</b></p>
|
||||
<ul><pre>
|
||||
df [-h]
|
||||
@ -1049,7 +1109,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdecho"><h2>2.11 Echo Strings and Variables (echo)</h2></a>
|
||||
<a name="cmdecho"><h2>2.13 Echo Strings and Variables (echo)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1067,7 +1127,7 @@ echo [<string|$name> [<string|$name>...]]
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdexec"><h2>2.12 Execute User Code (exec)</h2></a>
|
||||
<a name="cmdexec"><h2>2.14 Execute User Code (exec)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1086,7 +1146,7 @@ exec <hex-address>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdexit"><h2>2.13 Exit NSH (exit)</h2></a>
|
||||
<a name="cmdexit"><h2>2.15 Exit NSH (exit)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1105,7 +1165,7 @@ exit
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdfree"><h2>2.14 Show Memory Manager Status (free)</h2></a>
|
||||
<a name="cmdfree"><h2>2.16 Show Memory Manager Status (free)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1147,7 +1207,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdget"><h2>2.15 Get File Via TFTP (get)</h2></a>
|
||||
<a name="cmdget"><h2>2.17 Get File Via TFTP (get)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1182,7 +1242,7 @@ get [-b|-n] [-f <local-path>] -h <ip-address> <remote-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdhelp"><h2>2.16 Show Usage Command Usage (help)</h2></a>
|
||||
<a name="cmdhelp"><h2>2.18 Show Usage Command Usage (help)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1214,7 +1274,7 @@ help [-v] [<cmd>]
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdhexdump"><h2>2.17 Hexadecimal Dump of File or Device (hexdump)</h2></a>
|
||||
<a name="cmdhexdump"><h2>2.19 Hexadecimal Dump of File or Device (hexdump)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1238,7 +1298,7 @@ hexdump <file or device>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdifconfig"><h2>2.18 Manage Network Configuration (ifconfig)</h2></a>
|
||||
<a name="cmdifconfig"><h2>2.20 Manage Network Configuration (ifconfig)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1292,7 +1352,7 @@ ifconfig nic_name ip_address
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdifdown"><h2>2.19 Take a network down (ifdown)</h2></a>
|
||||
<a name="cmdifdown"><h2>2.21 Take a network down (ifdown)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1315,7 +1375,7 @@ ifdown eth0
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdifup"><h2>2.20 Bring a network up (ifup)</h2></a>
|
||||
<a name="cmdifup"><h2>2.22 Bring a network up (ifup)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1338,7 +1398,7 @@ ifup eth0
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdkill"><h2>2.21 Send a signal to a task (kill)</h2></a>
|
||||
<a name="cmdkill"><h2>2.23 Send a signal to a task (kill)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1379,7 +1439,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdlosetup"><h2>2.22 Setup/teardown the Loop Device (losetup)</h2></a>
|
||||
<a name="cmdlosetup"><h2>2.24 Setup/teardown the Loop Device (losetup)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1432,7 +1492,7 @@ losetup d <dev-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdls"><h2>2.23 List Directory Contents (ls)</h2></a>
|
||||
<a name="cmdls"><h2>2.25 List Directory Contents (ls)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1469,7 +1529,7 @@ ls [-lRs] <dir-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmd5"><h2>2.24 Calculate MD5 (md5)</h2></a>
|
||||
<a name="cmdmd5"><h2>2.26 Calculate MD5 (md5)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1486,7 +1546,7 @@ md5 [-f] <string or filepath>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmbhw"><h2>2.25 Access Memory (mb, mh, and mw)</h2></a>
|
||||
<a name="cmdmbhw"><h2>2.27 Access Memory (mb, mh, and mw)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1540,7 +1600,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdps"><h2>2.26 Show Current Tasks and Threads (ps)</h2></a>
|
||||
<a name="cmdps"><h2>2.28 Show Current Tasks and Threads (ps)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1566,7 +1626,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkdir"><h2>2.27 Create a Directory (mkdir)</h2></a>
|
||||
<a name="cmdmkdir"><h2>2.29 Create a Directory (mkdir)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1601,7 +1661,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkfatfs"><h2>2.28 Create a FAT Filesystem (mkfatfs)</h2></a>
|
||||
<a name="cmdmkfatfs"><h2>2.30 Create a FAT Filesystem (mkfatfs)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1621,7 +1681,7 @@ mkfatfs <path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkfifo"><h2>2.29 Create a FIFO (mkfifo)</h2></a>
|
||||
<a name="cmdmkfifo"><h2>2.31 Create a FIFO (mkfifo)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1659,7 +1719,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkrd"><h2>2.30 Create a RAMDISK (mkrd)</h2></a>
|
||||
<a name="cmdmkrd"><h2>2.32 Create a RAMDISK (mkrd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1710,7 +1770,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmount"><h2>2.31 Mount a File System (mount)</h2></a>
|
||||
<a name="cmdmount"><h2>2.33 Mount a File System (mount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1789,7 +1849,7 @@ nsh> mount
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmv"><h2>2.32 Rename a File (mv)</h2></a>
|
||||
<a name="cmdmv"><h2>2.34 Rename a File (mv)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1807,7 +1867,7 @@ mv <old-path> <new-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdnfsmount"><h2>2.33 Mount an NFS file system (nfsmount)</h2></a>
|
||||
<a name="cmdnfsmount"><h2>2.35 Mount an NFS file system (nfsmount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1826,7 +1886,7 @@ nfsmount <server-address> <mount-point> <remote-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdping"><h2>2.34 Check Network Peer (ping)</h2></a>
|
||||
<a name="cmdping"><h2>2.36 Check Network Peer (ping)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1859,7 +1919,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdput"><h2>2.35 Send File Via TFTP (put)</h2></a>
|
||||
<a name="cmdput"><h2>2.37 Send File Via TFTP (put)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1894,7 +1954,7 @@ put [-b|-n] [-f <remote-path>] -h <ip-address> <local-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdpwd"><h2>2.36 Show Current Working Directory (pwd)</h2></a>
|
||||
<a name="cmdpwd"><h2>2.38 Show Current Working Directory (pwd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1924,7 +1984,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdrm"><h2>2.37 Remove a File (rm)</h2></a>
|
||||
<a name="cmdrm"><h2>2.39 Remove a File (rm)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1958,7 +2018,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdrmdir"><h2>2.38 Remove a Directory (rmdir)</h2></a>
|
||||
<a name="cmdrmdir"><h2>2.40 Remove a Directory (rmdir)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1993,7 +2053,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdset"><h2>2.39 Set an Environment Variable (set)</h2></a>
|
||||
<a name="cmdset"><h2>2.41 Set an Environment Variable (set)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2019,7 +2079,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdsh"><h2>2.40 Execute an NSH Script (sh)</h2></a>
|
||||
<a name="cmdsh"><h2>2.42 Execute an NSH Script (sh)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2037,7 +2097,7 @@ sh <script-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdsleep"><h2>2.41 Wait for Seconds (sleep)</h2></a>
|
||||
<a name="cmdsleep"><h2>2.43 Wait for Seconds (sleep)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2054,7 +2114,7 @@ sleep <sec>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdunmount"><h2>2.42 Unmount a File System (umount)</h2></a>
|
||||
<a name="cmdunmount"><h2>2.44 Unmount a File System (umount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2084,7 +2144,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdunset"><h2>2.43 Unset an Environment Variable (unset)</h2></a>
|
||||
<a name="cmdunset"><h2>2.45 Unset an Environment Variable (unset)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2110,7 +2170,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdurldec"><h2>2.44 URL Decode (urldecode)</h2></a>
|
||||
<a name="cmdurldec"><h2>2.46 URL Decode (urldecode)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2127,7 +2187,7 @@ urldecode [-f] <string or filepath>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdurlencode"><h2>2.45 URL Encode (urlencode)</h2></a>
|
||||
<a name="cmdurlencode"><h2>2.47 URL Encode (urlencode)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2144,7 +2204,7 @@ urlencode [-f] <string or filepath>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdusleep"><h2>2.46 Wait for Microseconds (usleep)</h2></a>
|
||||
<a name="cmdusleep"><h2>2.48 Wait for Microseconds (usleep)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2161,7 +2221,7 @@ usleep <usec>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdwget">2.47 Get File Via HTTP (wget)</a>
|
||||
<a name="cmdwget">2.49 Get File Via HTTP (wget)</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2188,7 +2248,7 @@ wget [-o <local-path>] <url>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdxd"><h2>2.48 Hexadecimal Dump of Memory (xd)</h2></a>
|
||||
<a name="cmdxd"><h2>2.50 Hexadecimal Dump of Memory (xd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2256,6 +2316,11 @@ nsh>
|
||||
<td>!<code>CONFIG_NSH_DISABLESCRIPT</code></td>
|
||||
<td><code>CONFIG_NSH_DISABLE_TEST</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>addroute</code></b></td>
|
||||
<td><code>CONFIG_NET</code> && <code>CONFIG_NET_ROUTE</code></td>
|
||||
<td><code>CONFIG_NSH_DISABLE_ADDROUTE</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>base64dec</code></b></td>
|
||||
<td><code>CONFIG_NETUTILS_CODECS</code> && <code>CONFIG_CODECS_BASE64</code></td>
|
||||
@ -2296,6 +2361,11 @@ nsh>
|
||||
<td><code>CONFIG_NFILE_DESCRIPTORS</code> > 0</td>
|
||||
<td><code>CONFIG_NSH_DISABLE_DD</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>delroute</code></b></td>
|
||||
<td><code>CONFIG_NET</code> && <code>CONFIG_NET_ROUTE</code></td>
|
||||
<td><code>CONFIG_NSH_DISABLE_DELROUTE</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>df</code></b></td>
|
||||
<td>!<code>CONFIG_DISABLE_MOUNTPOINT</code> && <code>CONFIG_NFILE_DESCRIPTORS</code> > 0 && <code>CONFIG_FS_READABLE</code><sup>3</sup></td>
|
||||
@ -3777,6 +3847,7 @@ mount -t vfat /dev/ram1 /tmp
|
||||
<li><a href="#builtinvars"><code>$?</code></a></li>
|
||||
<li><a href="#cmdtest"><code>[</code></a></li>
|
||||
<li><a href="#custoncmds">Adding NSH commands</a></li>
|
||||
<li><a href="#cmdaddroute"><code>addroute</code></a></li>
|
||||
<li><a href="#custapps"><code>appconfig</code></a></li>
|
||||
<li><a href="#custapps">Application configuration file (<code>appconfig</code>)</a></li>
|
||||
<li><a href="#custapps">Autogenerated header files</a></li>
|
||||
@ -3850,12 +3921,13 @@ mount -t vfat /dev/ram1 /tmp
|
||||
<li><a href="#custinit">Customizing NSH initialization</a></li>
|
||||
<li><a href="#cmddate"><code>date</code></a></li>
|
||||
<li><a href="#cmddd"><code>dd</code></a></li>
|
||||
<li><a href="#cmdaddroute"><code>delroute</code></a></li>
|
||||
<li><a href="#cmddf"><code>df</code></a></li>
|
||||
<li><a href="#cmdecho"><code>echo</code></a></li>
|
||||
<li><a href="#environvars">Environment Variables</a></li>
|
||||
<li><a href="#startupscript"><code>/etc/init.d/rcS</code></a>
|
||||
</ul></td>
|
||||
<td></ul>
|
||||
<li><a href="#startupscript"><code>/etc/init.d/rcS</code></a>
|
||||
<li><a href="#cmdexec"><code>exec</code></a></li>
|
||||
<li><a href="#custapps"><code>exec_builtin()</code></a></li>
|
||||
<li><a href="#cmdexit"><code>exit</code></a></li>
|
||||
|
Loading…
Reference in New Issue
Block a user