Update NSH documentation. Update ps examples
This commit is contained in:
parent
c16c46c20e
commit
5f13de8f48
@ -119,319 +119,319 @@
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdbreak">2.5 Terminate a Loop (break)</a>
|
||||
<a href="#cmdbreak">2.6 Terminate a Loop (break)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdcat">2.6 Concatenate Files (cat)</a>
|
||||
<a href="#cmdcat">2.7 Concatenate Files (cat)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdcd">2.7 Change Current Working Directory (cd)</a>
|
||||
<a href="#cmdcd">2.8 Change Current Working Directory (cd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdcmp">2.8 Compare Files (cmp)</a>
|
||||
<a href="#cmdcmp">2.9 Compare Files (cmp)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdcp">2.9 Copy Files (cp)</a>
|
||||
<a href="#cmdcp">2.10 Copy Files (cp)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmddate">2.10 Show or set the date and time (date)</a>
|
||||
<a href="#cmddate">2.11 Show or set the date and time (date)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmddd">2.11 Copy and Convert Files (dd)</a>
|
||||
<a href="#cmddd">2.12 Copy and Convert Files (dd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmddelroute">2.12 Delete a Routing Table Entry (delroute)</a>
|
||||
<a href="#cmddelroute">2.13 Delete a Routing Table Entry (delroute)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmddf">2.13 Show volume status (df)</a>
|
||||
<a href="#cmddf">2.14 Show volume status (df)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmddirname">2.14 Extract Path to a File/Directory (dirname)</a>
|
||||
<a href="#cmddirname">2.15 Extract Path to a File/Directory (dirname)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdecho">2.14 Echo Strings and Variables (echo)</a>
|
||||
<a href="#cmdecho">2.16 Echo Strings and Variables (echo)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdexec">2.15 Execute User Code (exec)</a>
|
||||
<a href="#cmdexec">2.17 Execute User Code (exec)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdexit">2.16 Exit NSH (exit)</a>
|
||||
<a href="#cmdexit">2.18 Exit NSH (exit)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdfree">2.17 Show Memory Manager Status (free)</a>
|
||||
<a href="#cmdfree">2.19 Show Memory Manager Status (free)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdget">2.18 Get File Via TFTP (get)</a>
|
||||
<a href="#cmdget">2.20 Get File Via TFTP (get)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdhelp">2.19 Show Usage Command Usage (help)</a>
|
||||
<a href="#cmdhelp">2.21 Show Usage Command Usage (help)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdhexdump">2.20 Hexadecimal Dump of File or Device (hexdump)</a>
|
||||
<a href="#cmdhexdump">2.22 Hexadecimal Dump of File or Device (hexdump)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdifconfig">2.21 Manage Network Configuration (ifconfig)</a>
|
||||
<a href="#cmdifconfig">2.23 Manage Network Configuration (ifconfig)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdifdown">2.22 Take a network down (ifdown)</a>
|
||||
<a href="#cmdifdown">2.24 Take a network down (ifdown)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdifup">2.23 Bring a network up (ifup)</a>
|
||||
<a href="#cmdifup">2.25 Bring a network up (ifup)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdkill">2.24 Send a signal to a task (kill)</a>
|
||||
<a href="#cmdkill">2.26 Send a signal to a task (kill)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdlosetup">2.25 Setup/teardown the Loop Device (losetup)</a>
|
||||
<a href="#cmdlosetup">2.27 Setup/teardown the Loop Device (losetup)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdls">2.26 List Directory Contents (ls)</a>
|
||||
<a href="#cmdls">2.28 List Directory Contents (ls)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmd5">2.27 Calculate MD5 (md5)</a>
|
||||
<a href="#cmdmd5">2.29 Calculate MD5 (md5)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmbhw">2.28 Access Memory (mb, mh, and mw)</a>
|
||||
<a href="#cmdmbhw">2.30 Access Memory (mb, mh, and mw)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdps">2.29 Show Current Tasks and Threads (ps)</a>
|
||||
<a href="#cmdps">2.31 Show Current Tasks and Threads (ps)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkdir">2.30 Create a Directory (mkdir)</a>
|
||||
<a href="#cmdmkdir">2.32 Create a Directory (mkdir)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkfatfs">2.31 Create a FAT Filesystem (mkfatfs)</a>
|
||||
<a href="#cmdmkfatfs">2.33 Create a FAT Filesystem (mkfatfs)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkfifo">2.32 Create a FIFO (mkfifo)</a>
|
||||
<a href="#cmdmkfifo">2.34 Create a FIFO (mkfifo)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkrd">2.33 Create a RAMDISK (mkrd)</a>
|
||||
<a href="#cmdmkrd">2.35 Create a RAMDISK (mkrd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmount">2.34 Mount a File System (mount)</a>
|
||||
<a href="#cmdmount">2.36 Mount a File System (mount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmv">2.35 Rename a File (mv)</a>
|
||||
<a href="#cmdmv">2.37 Rename a File (mv)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdnfsmount">2.36 Mount an NFS file system (nfsmount)</a>
|
||||
<a href="#cmdnfsmount">2.38 Mount an NFS file system (nfsmount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdnslookup">2.37 Lookup a network address (nslookup)</a>
|
||||
<a href="#cmdnslookup">2.39 Lookup a network address (nslookup)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdping">2.38 Check Network Peer (ping/ping6)</a>
|
||||
<a href="#cmdping">2.40 Check Network Peer (ping/ping6)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdpoweroff">2.39 Shut the system down (poweroff)</a>
|
||||
<a href="#cmdpoweroff">2.41 Shut the system down (poweroff)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdput">2.40 Send File Via TFTP (put)</a>
|
||||
<a href="#cmdput">2.42 Send File Via TFTP (put)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdpwd">2.41 Show Current Working Directory (pwd)</a>
|
||||
<a href="#cmdpwd">2.43 Show Current Working Directory (pwd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdreboot">2.42 Reset and reboot the system (reboot)</a>
|
||||
<a href="#cmdreboot">2.44 Reset and reboot the system (reboot)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdrm">2.43 Remove a File (rm)</a>
|
||||
<a href="#cmdrm">2.45 Remove a File (rm)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdrmdir">2.44 Remove a Directory (rmdir)</a>
|
||||
<a href="#cmdrmdir">2.46 Remove a Directory (rmdir)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdset">2.45 Set an Environment Variable (set)</a>
|
||||
<a href="#cmdset">2.47 Set an Environment Variable (set)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdsh">2.46 Execute an NSH Script (sh)</a>
|
||||
<a href="#cmdsh">2.48 Execute an NSH Script (sh)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdshutdown">2.47 Shut the system down (shutdown)</a>
|
||||
<a href="#cmdshutdown">2.49 Shut the system down (shutdown)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdsleep">2.48 Wait for Seconds (sleep)</a>
|
||||
<a href="#cmdsleep">2.50 Wait for Seconds (sleep)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdunmount">2.49 Unmount a File System (umount)</a>
|
||||
<a href="#cmdunmount">2.51 Unmount a File System (umount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmduname">2.50 Print system information (uname)</a>
|
||||
<a href="#cmduname">2.52 Print system information (uname)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdunset">2.51 Unset an Environment Variable (unset)</a>
|
||||
<a href="#cmdunset">2.53 Unset an Environment Variable (unset)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdurldec">2.52 URL Decode (urldecode)</a>
|
||||
<a href="#cmdurldec">2.54 URL Decode (urldecode)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdurlencode">2.53 URL Encode (urlencode)</a>
|
||||
<a href="#cmdurlencode">2.55 URL Encode (urlencode)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdusleep">2.54 Wait for Microseconds (usleep)</a>
|
||||
<a href="#cmdusleep">2.56 Wait for Microseconds (usleep)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdwget">2.55 Get File Via HTTP (wget)</a>
|
||||
<a href="#cmdwget">2.57 Get File Via HTTP (wget)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdxd">2.56 Hexadecimal Dump of Memory (xd)</a>
|
||||
<a href="#cmdxd">2.58 Hexadecimal Dump of Memory (xd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -1115,7 +1115,7 @@ basename <path> [<suffix>]
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdbreak"><h2>2.5 Terminate a Loop (break)</h2></a>
|
||||
<a name="cmdbreak"><h2>2.6 Terminate a Loop (break)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1134,7 +1134,7 @@ break
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdcat"><h2>2.6 Concatenate Files (cat)</h2></a>
|
||||
<a name="cmdcat"><h2>2.7 Concatenate Files (cat)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1152,7 +1152,7 @@ cat <code><path></code> [<code><path></code> [<code><path></co
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdcd"><h2>2.7 Change Current Working Directory (cd)</h2></a>
|
||||
<a name="cmdcd"><h2>2.8 Change Current Working Directory (cd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1194,7 +1194,7 @@ cd [<dir-path>|-|~|..]
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdcmp"><h2>2.8 Compare Files (cmp)</h2></a>
|
||||
<a name="cmdcmp"><h2>2.9 Compare Files (cmp)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1211,7 +1211,7 @@ cmp <path1> <path2>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdcp"><h2>2.9 Copy Files (cp)</h2></a>
|
||||
<a name="cmdcp"><h2>2.10 Copy Files (cp)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1229,7 +1229,7 @@ cp <source-path> <dest-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmddate"><h2>2.10 Show or set the date and time (date)</h2></a>
|
||||
<a name="cmddate"><h2>2.11 Show or set the date and time (date)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1255,7 +1255,7 @@ data -s "Sep 1 11:30:00 2011"
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmddd"><h2>2.11 Copy and Convert Files (dd)</h2></a>
|
||||
<a name="cmddd"><h2>2.12 Copy and Convert Files (dd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1313,7 +1313,7 @@ nsh> dd if=/dev/ram0 of=/dev/null
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmddelroute"><h2>2.12 Delete a Routing Table Entry (delroute)</h2></a>
|
||||
<a name="cmddelroute"><h2>2.13 Delete a Routing Table Entry (delroute)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1336,7 +1336,7 @@ nsh> delroute 1.1.1.1 2.2.2.2
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmddf"><h2>2.13 Show Volument Status (df)</h2></a>
|
||||
<a name="cmddf"><h2>2.14 Show Volument Status (df)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1368,7 +1368,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmddirname"><h2>2.14 Extract Path to a File/Directory (dirname)</h2></a>
|
||||
<a name="cmddirname"><h2>2.15 Extract Path to a File/Directory (dirname)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1385,7 +1385,7 @@ dirname <path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdecho"><h2>2.14 Echo Strings and Variables (echo)</h2></a>
|
||||
<a name="cmdecho"><h2>2.16 Echo Strings and Variables (echo)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1403,7 +1403,7 @@ echo [<string|$name> [<string|$name>...]]
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdexec"><h2>2.15 Execute User Code (exec)</h2></a>
|
||||
<a name="cmdexec"><h2>2.17 Execute User Code (exec)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1422,7 +1422,7 @@ exec <hex-address>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdexit"><h2>2.16 Exit NSH (exit)</h2></a>
|
||||
<a name="cmdexit"><h2>2.18 Exit NSH (exit)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1441,7 +1441,7 @@ exit
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdfree"><h2>2.17 Show Memory Manager Status (free)</h2></a>
|
||||
<a name="cmdfree"><h2>2.19 Show Memory Manager Status (free)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1483,7 +1483,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdget"><h2>2.18 Get File Via TFTP (get)</h2></a>
|
||||
<a name="cmdget"><h2>2.20 Get File Via TFTP (get)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1518,7 +1518,7 @@ get [-b|-n] [-f <local-path>] -h <ip-address> <remote-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdhelp"><h2>2.19 Show Usage Command Usage (help)</h2></a>
|
||||
<a name="cmdhelp"><h2>2.21 Show Usage Command Usage (help)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1550,7 +1550,7 @@ help [-v] [<cmd>]
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdhexdump"><h2>2.20 Hexadecimal Dump of File or Device (hexdump)</h2></a>
|
||||
<a name="cmdhexdump"><h2>2.22 Hexadecimal Dump of File or Device (hexdump)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1574,7 +1574,7 @@ hexdump <file or device>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdifconfig"><h2>2.21 Manage Network Configuration (ifconfig)</h2></a>
|
||||
<a name="cmdifconfig"><h2>2.23 Manage Network Configuration (ifconfig)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1624,11 +1624,19 @@ ifconfig nic_name ip_address
|
||||
Other forms <i>to be provided</i>
|
||||
</li>
|
||||
</ol>
|
||||
<p>
|
||||
NOTE: This commands depends upon having the <i>procfs</i> file system configured into the system.
|
||||
The <i>procfs</i> file system must also have been mounted with a command like:
|
||||
</p>
|
||||
<ul><pre>
|
||||
nsh> mount -t procfs /proc
|
||||
</pre></ul>
|
||||
</p>
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdifdown"><h2>2.22 Take a network down (ifdown)</h2></a>
|
||||
<a name="cmdifdown"><h2>2.24 Take a network down (ifdown)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1651,7 +1659,7 @@ ifdown eth0
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdifup"><h2>2.23 Bring a network up (ifup)</h2></a>
|
||||
<a name="cmdifup"><h2>2.25 Bring a network up (ifup)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1674,7 +1682,7 @@ ifup eth0
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdkill"><h2>2.24 Send a signal to a task (kill)</h2></a>
|
||||
<a name="cmdkill"><h2>2.26 Send a signal to a task (kill)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1691,16 +1699,15 @@ nsh> mkfifo /dev/fifo
|
||||
nsh> cat /dev/fifo &
|
||||
cat [2:128]
|
||||
nsh> ps
|
||||
PID PRI SCHD TYPE NP STATE NAME
|
||||
0 0 FIFO TASK READY Idle Task()
|
||||
1 128 FIFO TASK RUNNING init()
|
||||
2 128 FIFO PTHREAD WAITSEM <pthread>(51ea50)
|
||||
PID PRI POLICY TYPE NPX STATE EVENT SIGMASK COMMAND
|
||||
0 0 FIFO Kthread --- Ready 00000000 Idle Task
|
||||
1 128 RR Task --- Running 00000000 init
|
||||
2 128 FIFO pthread --- Waiting Semaphore 00000000 <pthread>(51ea50)
|
||||
nsh> kill -9 2
|
||||
nsh: cat: open failed: 4
|
||||
nsh> ps
|
||||
PID PRI SCHD TYPE NP STATE NAME
|
||||
0 0 FIFO TASK READY Idle Task()
|
||||
1 128 FIFO TASK RUNNING init()
|
||||
PID PRI POLICY TYPE NPX STATE EVENT SIGMASK COMMAND
|
||||
0 0 FIFO Kthread --- Ready 00000000 Idle Task
|
||||
1 128 RR Task --- Running 00000000 init
|
||||
nsh>
|
||||
</pre></ul>
|
||||
<p><small>
|
||||
@ -1715,7 +1722,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdlosetup"><h2>2.25 Setup/teardown the Loop Device (losetup)</h2></a>
|
||||
<a name="cmdlosetup"><h2>2.27 Setup/teardown the Loop Device (losetup)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1768,7 +1775,7 @@ losetup d <dev-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdls"><h2>2.26 List Directory Contents (ls)</h2></a>
|
||||
<a name="cmdls"><h2>2.28 List Directory Contents (ls)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1805,7 +1812,7 @@ ls [-lRs] <dir-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmd5"><h2>2.27 Calculate MD5 (md5)</h2></a>
|
||||
<a name="cmdmd5"><h2>2.29 Calculate MD5 (md5)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1822,7 +1829,7 @@ md5 [-f] <string or filepath>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmbhw"><h2>2.28 Access Memory (mb, mh, and mw)</h2></a>
|
||||
<a name="cmdmbhw"><h2>2.30 Access Memory (mb, mh, and mw)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1876,7 +1883,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdps"><h2>2.29 Show Current Tasks and Threads (ps)</h2></a>
|
||||
<a name="cmdps"><h2>2.31 Show Current Tasks and Threads (ps)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1891,18 +1898,26 @@ ps
|
||||
</p>
|
||||
<ul><pre>
|
||||
nsh> ps
|
||||
PID PRI SCHD TYPE NP STATE NAME
|
||||
0 0 FIFO TASK READY Idle Task()
|
||||
1 128 RR TASK RUNNING init()
|
||||
2 128 FIFO TASK WAITSEM nsh_telnetmain()
|
||||
3 100 RR PTHREAD WAITSEM <pthread>(21)
|
||||
PID PRI POLICY TYPE NPX STATE EVENT SIGMASK COMMAND
|
||||
0 0 FIFO Kthread --- Ready 00000000 Idle Task
|
||||
1 128 RR Task --- Running 00000000 init
|
||||
2 128 FIFO Task --- Waiting Semaphore 00000000 nsh_telnetmain()
|
||||
3 100 RR pthread --- Waiting Semaphore 00000000 <pthread>(21)
|
||||
nsh>
|
||||
</pre></ul>
|
||||
<p>
|
||||
NOTE: This commands depends upon having the <i>procfs</i> file system configured into the system.
|
||||
The <i>procfs</i> file system must also have been mounted with a command like:
|
||||
</p>
|
||||
<ul><pre>
|
||||
nsh> mount -t procfs /proc
|
||||
</pre></ul>
|
||||
</p>
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkdir"><h2>2.30 Create a Directory (mkdir)</h2></a>
|
||||
<a name="cmdmkdir"><h2>2.32 Create a Directory (mkdir)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1937,7 +1952,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkfatfs"><h2>2.31 Create a FAT Filesystem (mkfatfs)</h2></a>
|
||||
<a name="cmdmkfatfs"><h2>2.33 Create a FAT Filesystem (mkfatfs)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -1962,7 +1977,7 @@ mkfatfs [-F <fatsize>] <block-driver>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkfifo"><h2>2.32 Create a FIFO (mkfifo)</h2></a>
|
||||
<a name="cmdmkfifo"><h2>2.34 Create a FIFO (mkfifo)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2000,7 +2015,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkrd"><h2>2.33 Create a RAMDISK (mkrd)</h2></a>
|
||||
<a name="cmdmkrd"><h2>2.35 Create a RAMDISK (mkrd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2051,7 +2066,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmount"><h2>2.34 Mount a File System (mount)</h2></a>
|
||||
<a name="cmdmount"><h2>2.36 Mount a File System (mount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2130,7 +2145,7 @@ nsh> mount
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmv"><h2>2.35 Rename a File (mv)</h2></a>
|
||||
<a name="cmdmv"><h2>2.37 Rename a File (mv)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2148,7 +2163,7 @@ mv <old-path> <new-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdnfsmount"><h2>2.36 Mount an NFS file system (nfsmount)</h2></a>
|
||||
<a name="cmdnfsmount"><h2>2.38 Mount an NFS file system (nfsmount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2167,7 +2182,7 @@ nfsmount <server-address> <mount-point> <remote-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdnslookup"><h2>2.37 Lookup a network address (nslookup)</h2></a>
|
||||
<a name="cmdnslookup"><h2>2.39 Lookup a network address (nslookup)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2184,7 +2199,7 @@ nslookup <host-name>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdping"><h2>2.38 Check Network Peer (ping/ping6)</h2></a>
|
||||
<a name="cmdping"><h2>2.40 Check Network Peer (ping/ping6)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2221,7 +2236,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdpoweroff"><h2>2.39 Shut the system down (poweroff)</h2></a>
|
||||
<a name="cmdpoweroff"><h2>2.41 Shut the system down (poweroff)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2243,7 +2258,7 @@ poweroff
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdput"><h2>2.40 Send File Via TFTP (put)</h2></a>
|
||||
<a name="cmdput"><h2>2.42 Send File Via TFTP (put)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2278,7 +2293,7 @@ put [-b|-n] [-f <remote-path>] -h <ip-address> <local-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdpwd"><h2>2.41 Show Current Working Directory (pwd)</h2></a>
|
||||
<a name="cmdpwd"><h2>2.43 Show Current Working Directory (pwd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2308,7 +2323,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdreboot"><h2>2.42 Reboot the system (reboot)</h2></a>
|
||||
<a name="cmdreboot"><h2>2.44 Reboot the system (reboot)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2330,7 +2345,7 @@ reboot
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdrm"><h2>2.43 Remove a File (rm)</h2></a>
|
||||
<a name="cmdrm"><h2>2.45 Remove a File (rm)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2364,7 +2379,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdrmdir"><h2>2.44 Remove a Directory (rmdir)</h2></a>
|
||||
<a name="cmdrmdir"><h2>2.46 Remove a Directory (rmdir)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2399,7 +2414,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdset"><h2>2.45 Set an Environment Variable (set)</h2></a>
|
||||
<a name="cmdset"><h2>2.47 Set an Environment Variable (set)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2425,7 +2440,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdsh"><h2>2.46 Execute an NSH Script (sh)</h2></a>
|
||||
<a name="cmdsh"><h2>2.48 Execute an NSH Script (sh)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2444,7 +2459,7 @@ sh <script-path>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdshutdown"><h2>2.47 Shut the system down (shutdown)</h2></a>
|
||||
<a name="cmdshutdown"><h2>2.49 Shut the system down (shutdown)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2465,7 +2480,7 @@ shutdown [--reboot]
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdsleep"><h2>2.48 Wait for Seconds (sleep)</h2></a>
|
||||
<a name="cmdsleep"><h2>2.50 Wait for Seconds (sleep)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2482,7 +2497,7 @@ sleep <sec>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdunmount"><h2>2.49 Unmount a File System (umount)</h2></a>
|
||||
<a name="cmdunmount"><h2>2.51 Unmount a File System (umount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2512,7 +2527,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmduname"><h2>2.50 Print system information (uname)</h2></a>
|
||||
<a name="cmduname"><h2>2.52 Print system information (uname)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2579,7 +2594,7 @@ uname [-a | -imnoprsv]
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdunset"><h2>2.51 Unset an Environment Variable (unset)</h2></a>
|
||||
<a name="cmdunset"><h2>2.53 Unset an Environment Variable (unset)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2605,7 +2620,7 @@ nsh>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdurldec"><h2>2.52 URL Decode (urldecode)</h2></a>
|
||||
<a name="cmdurldec"><h2>2.54 URL Decode (urldecode)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2622,7 +2637,7 @@ urldecode [-f] <string or filepath>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdurlencode"><h2>2.53 URL Encode (urlencode)</h2></a>
|
||||
<a name="cmdurlencode"><h2>2.55 URL Encode (urlencode)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2639,7 +2654,7 @@ urlencode [-f] <string or filepath>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdusleep"><h2>2.54 Wait for Microseconds (usleep)</h2></a>
|
||||
<a name="cmdusleep"><h2>2.56 Wait for Microseconds (usleep)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2656,7 +2671,7 @@ usleep <usec>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdwget">2.55 Get File Via HTTP (wget)</a>
|
||||
<a name="cmdwget">2.57 Get File Via HTTP (wget)</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@ -2683,7 +2698,7 @@ wget [-o <local-path>] <url>
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdxd"><h2>2.56 Hexadecimal Dump of Memory (xd)</h2></a>
|
||||
<a name="cmdxd"><h2>2.58 Hexadecimal Dump of Memory (xd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
Loading…
x
Reference in New Issue
Block a user