mirror of
https://github.com/apache/nuttx.git
synced 2026-10-24 07:18:45 +00:00
Soft links: Update Documentation, rename file, add system calls
This commit is contained in:
parent
35d738d85f
commit
b39d962021
10 changed files with 147 additions and 105 deletions
|
|
@ -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: August 4, 2016</p>
|
||||
<p>Last Updated: February 2, 2017</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -263,223 +263,229 @@
|
|||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdls">2.30 List Directory Contents (ls)</a>
|
||||
<a href="#cmdln">2.30 List to a File or Directory (ln)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdlsmod">2.31 Show information about installed OS modules (lsmod)</a>
|
||||
<a href="#cmdls">2.31 List Directory Contents (ls)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmd5">2.32 Calculate MD5 (md5)</a>
|
||||
<a href="#cmdlsmod">2.32 Show information about installed OS modules (lsmod)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmbhw">2.33 Access Memory (mb, mh, and mw)</a>
|
||||
<a href="#cmdmd5">2.33 Calculate MD5 (md5)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdps">2.34 Show Current Tasks and Threads (ps)</a>
|
||||
<a href="#cmdmbhw">2.34 Access Memory (mb, mh, and mw)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkdir">2.35 Create a Directory (mkdir)</a>
|
||||
<a href="#cmdps">2.35 Show Current Tasks and Threads (ps)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkfatfs">2.36 Create a FAT Filesystem (mkfatfs)</a>
|
||||
<a href="#cmdmkdir">2.36 Create a Directory (mkdir)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkfifo">2.37 Create a FIFO (mkfifo)</a>
|
||||
<a href="#cmdmkfatfs">2.37 Create a FAT Filesystem (mkfatfs)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmkrd">2.38 Create a RAMDISK (mkrd)</a>
|
||||
<a href="#cmdmkfifo">2.38 Create a FIFO (mkfifo)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmount">2.39 Mount a File System (mount)</a>
|
||||
<a href="#cmdmkrd">2.39 Create a RAMDISK (mkrd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdmv">2.40 Rename a File (mv)</a>
|
||||
<a href="#cmdmount">2.40 Mount a File System (mount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdnfsmount">2.41 Mount an NFS file system (nfsmount)</a>
|
||||
<a href="#cmdmv">2.41 Rename a File (mv)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdnslookup">2.42 Lookup a network address (nslookup)</a>
|
||||
<a href="#cmdnfsmount">2.42 Mount an NFS file system (nfsmount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdpasswd">2.43 Change a User's Password (passwd)</a>
|
||||
<a href="#cmdnslookup">2.43 Lookup a network address (nslookup)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdping">2.44 Check Network Peer (ping/ping6)</a>
|
||||
<a href="#cmdpasswd">2.44 Change a User's Password (passwd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdpoweroff">2.45 Shut the system down (poweroff)</a>
|
||||
<a href="#cmdping">2.45 Check Network Peer (ping/ping6)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdput">2.46 Send File Via TFTP (put)</a>
|
||||
<a href="#cmdpoweroff">2.46 Shut the system down (poweroff)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdpwd">2.47 Show Current Working Directory (pwd)</a>
|
||||
<a href="#cmdput">2.47 Send File Via TFTP (put)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdreboot">2.48 Reset and reboot the system (reboot)</a>
|
||||
<a href="#cmdpwd">2.48 Show Current Working Directory (pwd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdrm">2.49 Remove a File (rm)</a>
|
||||
<a href="#cmdreboot">2.49 Reset and reboot the system (reboot)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdrmdir">2.50 Remove a Directory (rmdir)</a>
|
||||
<a href="#cmdrm">2.50 Remove a File (rm)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdrmmod">2.51 Remove on OS Module (rmmod)</a>
|
||||
<a href="#cmdrmdir">2.51 Remove a Directory (rmdir)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdset">2.52 Set an Environment Variable (set)</a>
|
||||
<a href="#cmdrmmod">2.52 Remove on OS Module (rmmod)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdsh">2.53 Execute an NSH Script (sh)</a>
|
||||
<a href="#cmdset">2.53 Set an Environment Variable (set)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdshutdown">2.54 Shut the system down (shutdown)</a>
|
||||
<a href="#cmdsh">2.54 Execute an NSH Script (sh)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdsleep">2.55 Wait for Seconds (sleep)</a>
|
||||
<a href="#cmdshutdown">2.55 Shut the system down (shutdown)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdtime">2.56 Time execution of another command (time)</a>
|
||||
<a href="#cmdsleep">2.56 Wait for Seconds (sleep)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdunmount">2.57 Unmount a File System (umount)</a>
|
||||
<a href="#cmdtime">2.57 Time execution of another command (time)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmduname">2.58 Print system information (uname)</a>
|
||||
<a href="#cmdunmount">2.58 Unmount a File System (umount)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdunset">2.59 Unset an Environment Variable (unset)</a>
|
||||
<a href="#cmduname">2.59 Print system information (uname)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdurldec">2.60 URL Decode (urldecode)</a>
|
||||
<a href="#cmdunset">2.60 Unset an Environment Variable (unset)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdurlencode">2.61 URL Encode (urlencode)</a>
|
||||
<a href="#cmdurldec">2.61 URL Decode (urldecode)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmduseradd">2.62 Add a New User (useradd)</a>
|
||||
<a href="#cmdurlencode">2.62 URL Encode (urlencode)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmduserdel">2.63 Delete a user (userdel)</a>
|
||||
<a href="#cmduseradd">2.63 Add a New User (useradd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdusleep">2.64 Wait for Microseconds (usleep)</a>
|
||||
<a href="#cmduserdel">2.64 Delete a user (userdel)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdwget">2.65 Get File Via HTTP (wget)</a>
|
||||
<a href="#cmdusleep">2.65 Wait for Microseconds (usleep)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdxd">2.66 Hexadecimal Dump of Memory (xd)</a>
|
||||
<a href="#cmdwget">2.66 Get File Via HTTP (wget)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#cmdxd">2.67 Hexadecimal Dump of Memory (xd)</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
@ -1681,13 +1687,6 @@ hexdump <file or device>
|
|||
Dump data in hexadecimal format from a file or character device.
|
||||
</p>
|
||||
|
||||
<tr>
|
||||
<td><br></td>
|
||||
<td>
|
||||
<a href="#"></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
|
|
@ -1937,7 +1936,32 @@ losetup d <dev-path>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdls"><h2>2.30 List Directory Contents (ls)</h2></a>
|
||||
<a name="cmdln"><h2>2.30 List to a File or Directory (ln)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<p><b>Command Syntax:</b></p>
|
||||
<ul><pre>
|
||||
link [-s] <target> <link>
|
||||
</pre></ul>
|
||||
<p>
|
||||
<b>Synopsis</b>.
|
||||
The <code>link</code> command will create a new symbolic link at <link> for the existing file or directory, <target>.
|
||||
This implementation is simplied for use with NuttX in these ways:
|
||||
</p>
|
||||
<ul>
|
||||
<li>Links may be created only within the NuttX top-level, pseudo file system.
|
||||
No file system currently supported by NuttX provides symbolic links.</li>
|
||||
<li>For the same reason, only soft links are implemented.</li>
|
||||
<li>File privileges are ignored.</li>
|
||||
<li><code>c_time</code> is not updated.</li>
|
||||
</ul>
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdls"><h2>2.31 List Directory Contents (ls)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -1975,7 +1999,7 @@ ls [-lRs] <dir-path>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdlsmod"><h2>2.31 Show information about installed OS modules (lsmod)</h2></a>
|
||||
<a name="cmdlsmod"><h2>2.32 Show information about installed OS modules (lsmod)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2008,7 +2032,7 @@ mydriver 20404659 20404625 0 20404580 552 204047a8 0
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmd5"><h2>2.32 Calculate MD5 (md5)</h2></a>
|
||||
<a name="cmdmd5"><h2>2.33 Calculate MD5 (md5)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2025,7 +2049,7 @@ md5 [-f] <string or filepath>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmbhw"><h2>2.33 Access Memory (mb, mh, and mw)</h2></a>
|
||||
<a name="cmdmbhw"><h2>2.34 Access Memory (mb, mh, and mw)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2079,7 +2103,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdps"><h2>2.34 Show Current Tasks and Threads (ps)</h2></a>
|
||||
<a name="cmdps"><h2>2.35 Show Current Tasks and Threads (ps)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2113,7 +2137,7 @@ nsh> mount -t procfs /proc
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkdir"><h2>2.35 Create a Directory (mkdir)</h2></a>
|
||||
<a name="cmdmkdir"><h2>2.36 Create a Directory (mkdir)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2148,7 +2172,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkfatfs"><h2>2.36 Create a FAT Filesystem (mkfatfs)</h2></a>
|
||||
<a name="cmdmkfatfs"><h2>2.37 Create a FAT Filesystem (mkfatfs)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2173,7 +2197,7 @@ mkfatfs [-F <fatsize>] <block-driver>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkfifo"><h2>2.37 Create a FIFO (mkfifo)</h2></a>
|
||||
<a name="cmdmkfifo"><h2>2.38 Create a FIFO (mkfifo)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2211,7 +2235,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmkrd"><h2>2.38 Create a RAMDISK (mkrd)</h2></a>
|
||||
<a name="cmdmkrd"><h2>2.39 Create a RAMDISK (mkrd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2262,7 +2286,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmount"><h2>2.39 Mount a File System (mount)</h2></a>
|
||||
<a name="cmdmount"><h2>2.40 Mount a File System (mount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2341,7 +2365,7 @@ nsh> mount
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdmv"><h2>2.40 Rename a File (mv)</h2></a>
|
||||
<a name="cmdmv"><h2>2.41 Rename a File (mv)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2359,7 +2383,7 @@ mv <old-path> <new-path>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdnfsmount"><h2>2.41 Mount an NFS file system (nfsmount)</h2></a>
|
||||
<a name="cmdnfsmount"><h2>2.42 Mount an NFS file system (nfsmount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2378,7 +2402,7 @@ nfsmount <server-address> <mount-point> <remote-path>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdnslookup"><h2>2.42 Lookup a network address (nslookup)</h2></a>
|
||||
<a name="cmdnslookup"><h2>2.43 Lookup a network address (nslookup)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2395,7 +2419,7 @@ nslookup <host-name>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdpasswd"><h2>2.43 Change a User's Password (passwd)</h2></a>
|
||||
<a name="cmdpasswd"><h2>2.44 Change a User's Password (passwd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2412,7 +2436,7 @@ passwd <username> <password>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdping"><h2>2.44 Check Network Peer (ping/ping6)</h2></a>
|
||||
<a name="cmdping"><h2>2.45 Check Network Peer (ping/ping6)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2449,7 +2473,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdpoweroff"><h2>2.45 Shut the system down (poweroff)</h2></a>
|
||||
<a name="cmdpoweroff"><h2>2.46 Shut the system down (poweroff)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2471,7 +2495,7 @@ poweroff
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdput"><h2>2.46 Send File Via TFTP (put)</h2></a>
|
||||
<a name="cmdput"><h2>2.47 Send File Via TFTP (put)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2506,7 +2530,7 @@ put [-b|-n] [-f <remote-path>] -h <ip-address> <local-path>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdpwd"><h2>2.47 Show Current Working Directory (pwd)</h2></a>
|
||||
<a name="cmdpwd"><h2>2.48 Show Current Working Directory (pwd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2536,7 +2560,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdreboot"><h2>2.48 Reboot the system (reboot)</h2></a>
|
||||
<a name="cmdreboot"><h2>2.49 Reboot the system (reboot)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2558,7 +2582,7 @@ reboot
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdrm"><h2>2.49 Remove a File (rm)</h2></a>
|
||||
<a name="cmdrm"><h2>2.50 Remove a File (rm)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2592,7 +2616,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdrmdir"><h2>2.50 Remove a Directory (rmdir)</h2></a>
|
||||
<a name="cmdrmdir"><h2>2.51 Remove a Directory (rmdir)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2627,7 +2651,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdrmmod"><h2>2.51 Remove on OS Module (rmmod)</h2></a>
|
||||
<a name="cmdrmmod"><h2>2.52 Remove on OS Module (rmmod)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2655,7 +2679,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdset"><h2>2.52 Set an Environment Variable (set)</h2></a>
|
||||
<a name="cmdset"><h2>2.53 Set an Environment Variable (set)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2681,7 +2705,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdsh"><h2>2.53 Execute an NSH Script (sh)</h2></a>
|
||||
<a name="cmdsh"><h2>2.54 Execute an NSH Script (sh)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2700,7 +2724,7 @@ sh <script-path>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdshutdown"><h2>2.54 Shut the system down (shutdown)</h2></a>
|
||||
<a name="cmdshutdown"><h2>2.55 Shut the system down (shutdown)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2721,7 +2745,7 @@ shutdown [--reboot]
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdsleep"><h2>2.55 Wait for Seconds (sleep)</h2></a>
|
||||
<a name="cmdsleep"><h2>2.56 Wait for Seconds (sleep)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2738,7 +2762,7 @@ sleep <sec>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdtime"><h2>2.56 Time execution of another command (time)</h2></a>
|
||||
<a name="cmdtime"><h2>2.57 Time execution of another command (time)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2797,7 +2821,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdunmount"><h2>2.57 Unmount a File System (umount)</h2></a>
|
||||
<a name="cmdunmount"><h2>2.58 Unmount a File System (umount)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2827,7 +2851,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmduname"><h2>2.58 Print system information (uname)</h2></a>
|
||||
<a name="cmduname"><h2>2.59 Print system information (uname)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2894,7 +2918,7 @@ uname [-a | -imnoprsv]
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdunset"><h2>2.59 Unset an Environment Variable (unset)</h2></a>
|
||||
<a name="cmdunset"><h2>2.60 Unset an Environment Variable (unset)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2920,7 +2944,7 @@ nsh>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdurldec"><h2>2.60 URL Decode (urldecode)</h2></a>
|
||||
<a name="cmdurldec"><h2>2.61 URL Decode (urldecode)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2937,7 +2961,7 @@ urldecode [-f] <string or filepath>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdurlencode"><h2>2.61 URL Encode (urlencode)</h2></a>
|
||||
<a name="cmdurlencode"><h2>2.62 URL Encode (urlencode)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2954,7 +2978,7 @@ urlencode [-f] <string or filepath>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmduseradd"><h2>2.62 Add a New User (useradd)</h2></a>
|
||||
<a name="cmduseradd"><h2>2.63 Add a New User (useradd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2971,7 +2995,7 @@ useradd <username> <password>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmduserdel"><h2>2.63 Delete a user (userdel)</h2></a>
|
||||
<a name="cmduserdel"><h2>2.64 Delete a user (userdel)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -2988,7 +3012,7 @@ userdel <username>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdusleep"><h2>2.64 Wait for Microseconds (usleep)</h2></a>
|
||||
<a name="cmdusleep"><h2>2.65 Wait for Microseconds (usleep)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -3005,7 +3029,7 @@ usleep <usec>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdwget"><h2>2.65 Get File Via HTTP (wget)</h2></a>
|
||||
<a name="cmdwget"><h2>2.66 Get File Via HTTP (wget)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -3032,7 +3056,7 @@ wget [-o <local-path>] <url>
|
|||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="cmdxd"><h2>2.66 Hexadecimal Dump of Memory (xd)</h2></a>
|
||||
<a name="cmdxd"><h2>2.67 Hexadecimal Dump of Memory (xd)</h2></a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -3241,10 +3265,15 @@ nsh>
|
|||
<td>!<code>CONFIG_DISABLE_MOUNTPOINT</code> && <code>CONFIG_NFILE_DESCRIPTORS</code> > 0 && <code>CONFIG_DEV_LOOP</code></td>
|
||||
<td><code>CONFIG_NSH_DISABLE_LOSETUP</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>ln</code></b></td>
|
||||
<td><code>CONFIG_NFILE_DESCRIPTORS</code> > 0</td>
|
||||
<td><code>CONFIG_NSH_DISABLE_LL</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>ls</code></b></td>
|
||||
<td><code>CONFIG_NFILE_DESCRIPTORS</code> > 0</td>
|
||||
<td><code>CONFIG_NSH_DISABLE_LS</code></td>
|
||||
<td><code>CONFIG_NSH_DISABLE_LS</code> && <code>CONFIG_PSEUDOFS_SOFTLINKS</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b><code>lsmod</code></b></td>
|
||||
|
|
@ -5165,10 +5194,10 @@ xxd -i romfs_img >nsh_romfsimg.h
|
|||
<li><a href="#custinit"><code>CONFIG_NSH_ROMFSETC</code></a></li>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_ARCHROMFS</code></a></li>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_ROMFSMOUNTPT</code></a></li>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_ROMFSSECTSIZE</code></a></li>
|
||||
</ul></td>
|
||||
<td width="33%" valign="top">
|
||||
<ul>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_ROMFSSECTSIZE</code></a></li>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_STRERROR</code></a></li>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_TELNET</code></a></li>
|
||||
<li><a href="#nshconfiguration"><code>CONFIG_NSH_TMPDIR</code></a></li>
|
||||
|
|
@ -5218,6 +5247,7 @@ xxd -i romfs_img >nsh_romfsimg.h
|
|||
<li><a href="#cmdinsmod"><code>insmod</code></a></li>
|
||||
<li><a href="#cmdkill"><code>kill</code></a></li>
|
||||
<li><a href="#cmdlosetup"><code>losetup</code></a></li>
|
||||
<li><a href="#cmdln">ln</code></a></li>
|
||||
<li><a href="#cmdls">ls</code></a></li>
|
||||
<li><a href="#cmdmbhw"><code>mb</code></a></li>
|
||||
<li><a href="#nshlogin">Login</a></li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue