@@ -246,11 +246,11 @@ The contents of the `/etc` directory are retained in the file
246
246
` include/arch/board/rcS.template ` ). In order to modify the start-up behavior,
247
247
there are three things to study:
248
248
249
- 1 . Configuration Options.
249
+ 1 . Configuration Options.
250
250
The additional ` CONFIG_NSH_ROMFSETC ` configuration options discussed in the
251
251
final section of this README.
252
252
253
- 2 . ` tools/mkromfsimg.sh ` Script.
253
+ 2 . ` tools/mkromfsimg.sh ` Script.
254
254
The script ` tools/mkromfsimg.sh ` creates ` nsh_romfsimg.h ` . It is not
255
255
automatically executed. If you want to change the configuration settings
256
256
associated with creating and mounting the ` /tmp ` directory, then it will be
@@ -281,7 +281,7 @@ All of the startup-behavior is contained in `rcS.template`. The role of
281
281
282
282
## Simple Commands
283
283
284
- - ` [ <expression> ] `
284
+ - ` [ <expression> ] `
285
285
` test <expression> `
286
286
287
287
These are two alternative forms of the same command. They support evaluation
@@ -313,8 +313,8 @@ All of the startup-behavior is contained in `rcS.template`. The role of
313
313
integer -lt integer | integer -ne integer
314
314
```
315
315
316
- - ` addroute <target> [<netmask>] <router> `
317
- ` addroute default <ipaddr> <interface> `
316
+ - ` addroute <target> [<netmask>] <router> `
317
+ ` addroute default <ipaddr> <interface> `
318
318
319
319
This command adds an entry in the routing table. The new entry
320
320
will map the IP address of a router on a local network(` <router> ` )
@@ -343,17 +343,17 @@ All of the startup-behavior is contained in `rcS.template`. The role of
343
343
344
344
Access the OS ARP table.
345
345
346
- - ` -a <ipaddr> `
346
+ - ` -a <ipaddr> `
347
347
Will show the hardware address that the IP address ` <ipaddr> ` is mapped to.
348
348
349
- - ` -d <ipaddr> `
349
+ - ` -d <ipaddr> `
350
350
Will delete the mapping for the IP address ` <ipaddr> ` from the ARP table.
351
351
352
- - ` -s <ipaddr> <hwaddr> `
352
+ - ` -s <ipaddr> <hwaddr> `
353
353
Will set (or replace) the mapping of the IP address ` <ipaddr> ` to the
354
354
hardware address ` <hwaddr> ` .
355
355
356
- - ` -t `
356
+ - ` -t `
357
357
Will dump the entire content of the ARP table. This option is only
358
358
available if ` CONFIG_NETLINK_ROUTE ` is enabled.
359
359
@@ -632,21 +632,21 @@ All of the startup-behavior is contained in `rcS.template`. The role of
632
632
Use TFTP to copy the file at `<remote-address>` from the host whose IP
633
633
address is identified by `<ip-address>`. Other options:
634
634
635
- - `-f <local-path>`
635
+ - `-f <local-path>`
636
636
The file will be saved relative to the current working directory unless
637
637
`<local-path>` is provided.
638
- - `-b|-n`
638
+ - `-b|-n`
639
639
Selects either binary (_octet_) or text (_netascii_) transfer mode. Default:
640
640
text.
641
641
642
642
- `help [-v] [<cmd>]`
643
643
644
644
Presents summary information about NSH commands to console. Options:
645
645
646
- - `-v`
646
+ - `-v`
647
647
Show verbose output will full command usage.
648
648
649
- - `<cmd>`
649
+ - `<cmd>`
650
650
Show full command usage only for this command.
651
651
652
652
- `hexdump <file or device>`
@@ -838,9 +838,9 @@ All of the startup-behavior is contained in `rcS.template`. The role of
838
838
839
839
- `md5 [-f] <string or filepath>`
840
840
841
- - `mb <hex-address>[=<hex-value>][ <hex-byte-count>]`
842
- `mh <hex-address>[=<hex-value>][ <hex-byte-count>]`
843
- `mw <hex-address>[=<hex-value>][ <hex-byte-count>]`
841
+ - `mb <hex-address>[=<hex-value>][ <hex-byte-count>]`
842
+ `mh <hex-address>[=<hex-value>][ <hex-byte-count>]`
843
+ `mw <hex-address>[=<hex-value>][ <hex-byte-count>]`
844
844
845
845
Access memory using byte size access (`mb`), 16-bit accesses (`mh`),
846
846
or 32-bit access (`mw`). In each case,
@@ -922,7 +922,7 @@ All of the startup-behavior is contained in `rcS.template`. The role of
922
922
device driver. NSH provides this command to access the `mkfifo()` NuttX API.
923
923
924
924
**Example**:
925
-
925
+
926
926
```
927
927
nsh> ls -l /dev
928
928
/dev:
@@ -971,7 +971,7 @@ All of the startup-behavior is contained in `rcS.template`. The role of
971
971
command and mounted using the `mount` command.
972
972
973
973
**Example**:
974
-
974
+
975
975
```
976
976
nsh> mkrd 1024
977
977
nsh> mkfatfs /dev/ram0
@@ -1040,7 +1040,7 @@ All of the startup-behavior is contained in `rcS.template`. The role of
1040
1040
/mnt/fs type vfat
1041
1041
```
1042
1042
1043
- - `mv <old-path> <new-path>`
1043
+ - `mv <old-path> <new-path>`
1044
1044
1045
1045
Rename the file object at `<old-path>` to `<new-path>`. Both paths must
1046
1046
reside in the same mounted file system.
@@ -1110,11 +1110,11 @@ All of the startup-behavior is contained in `rcS.template`. The role of
1110
1110
Copy the file at <local-address > to the host whose IP address is
1111
1111
identified by <ip-address >. Other options:
1112
1112
1113
- - ` -f <remote-path> `
1113
+ - ` -f <remote-path> `
1114
1114
The file will be saved with the same name on the host unless
1115
1115
unless ` <local-path> ` is provided.
1116
1116
1117
- - ` -b|-n `
1117
+ - ` -b|-n `
1118
1118
Selects either binary (_ octet_ ) or test (_ netascii_ ) transfer
1119
1119
mode. Default: text.
1120
1120
@@ -1502,7 +1502,7 @@ There are several built-in appliations in the `apps/` repository. No attempt is
1502
1502
made here to enumerate all of them. But a few of the more common built- in
1503
1503
applications are listed below.
1504
1504
1505
- - `ping [-c <count>] [-i <interval>] <ip-address>`
1505
+ - `ping [-c <count>] [-i <interval>] <ip-address>`
1506
1506
`ping6 [-c <count>] [-i <interval>] <ip-address>`
1507
1507
1508
1508
Test the network communication with a remote peer. Example:
@@ -1579,7 +1579,7 @@ mkfatfs | !`CONFIG_DISABLE_MOUNTPOINT` && `CONFIG_FSUTILS_MKFATFS`
1579
1579
mkfifo | `CONFIG_PIPES` && `CONFIG_DEV_FIFO_SIZE` > 0
1580
1580
mkrd | !`CONFIG_DISABLE_MOUNTPOINT`
1581
1581
mount | !`CONFIG_DISABLE_MOUNTPOINT`
1582
- mv | !`CONFIG_DISABLE_MOUNTPOINT` || !`CONFIG_DISABLE_PSEUDOFS_OPERATIONS`
1582
+ mv | !`CONFIG_DISABLE_MOUNTPOINT` || !`CONFIG_DISABLE_PSEUDOFS_OPERATIONS`
1583
1583
nfsmount | !`CONFIG_DISABLE_MOUNTPOINT` && `CONFIG_NET` && `CONFIG_NFS`
1584
1584
nslookup | `CONFIG_LIBC_NETDB` && `CONFIG_NETDB_DNSCLIENT`
1585
1585
password | !`CONFIG_DISABLE_MOUNTPOINT` && `CONFIG_NSH_LOGIN_PASSWD`
@@ -1675,7 +1675,7 @@ The behavior of NSH can be modified with the following settings in the
1675
1675
- `CONFIG_NSH_READLINE` – Selects the minimal implementation of `readline()`.
1676
1676
This minimal implementation provides on backspace for command line editing.
1677
1677
1678
- - `CONFIG_NSH_CLE`
1678
+ - `CONFIG_NSH_CLE`
1679
1679
1680
1680
Selects the more extensive, EMACS-like command line editor. Select this option
1681
1681
only if (1) you don't mind a modest increase in the FLASH footprint, and (2)
@@ -1703,7 +1703,7 @@ The behavior of NSH can be modified with the following settings in the
1703
1703
this feature to save a little memory on FLASH challenged platforms. Default:
1704
1704
`n`
1705
1705
1706
- - `CONFIG_NSH_CMDPARMS`
1706
+ - `CONFIG_NSH_CMDPARMS`
1707
1707
1708
1708
If selected, then the output from commands, from file applications, and from
1709
1709
NSH built-in commands can be used as arguments to other commands. The entity
@@ -1727,7 +1727,7 @@ The behavior of NSH can be modified with the following settings in the
1727
1727
- ` CONFIG_NSH_MAXARGUMENTS ` – The maximum number of NSH command arguments.
1728
1728
Default: ` 6 `
1729
1729
1730
- - ` CONFIG_NSH_ARGCAT `
1730
+ - ` CONFIG_NSH_ARGCAT `
1731
1731
1732
1732
Support concatenation of strings with environment variables or command
1733
1733
output. For example:
@@ -1743,7 +1743,7 @@ The behavior of NSH can be modified with the following settings in the
1743
1743
footprint results but then also only simple environment variables like ` $FOO `
1744
1744
can be used on the command line.
1745
1745
1746
- - ` CONFIG_NSH_VARS `
1746
+ - ` CONFIG_NSH_VARS `
1747
1747
1748
1748
By default, there are no internal NSH variables. NSH will use OS environment
1749
1749
variables for all variable storage. If this option, NSH will also support
@@ -1765,7 +1765,7 @@ The behavior of NSH can be modified with the following settings in the
1765
1765
` unset <a> ` | Unsets environment var ` a ` . | Unsets both environment var and NSH var ` a ` .
1766
1766
` export <a> <b> ` | Causes an error. | Unsets NSH var ` a ` . Sets environment var ` a ` to ` b ` .
1767
1767
` export <a> ` | Causes an error. | Sets environment var ` a ` to NSH var ` b ` (or ` "" ` ). <br > Unsets local var ` a ` .
1768
- ` env ` | Lists all environment variables. | Lists all environment variables (only).
1768
+ ` env ` | Lists all environment variables. | Lists all environment variables (only).
1769
1769
1770
1770
- ` CONFIG_NSH_QUOTE ` – Enables back-slash quoting of certain characters within
1771
1771
the command. This option is useful for the case where an NSH script is used to
@@ -1816,11 +1816,11 @@ The behavior of NSH can be modified with the following settings in the
1816
1816
if ` CONFIG_USBDEV ` is defined, then a USB serial device may, instead, be used
1817
1817
if the one of the following are defined:
1818
1818
1819
- - ` CONFIG_PL2303 ` and ` CONFIG_PL2303_CONSOLE `
1819
+ - ` CONFIG_PL2303 ` and ` CONFIG_PL2303_CONSOLE `
1820
1820
Sets up the Prolifics PL2303 emulation as a console device at
1821
1821
` /dev/console ` .
1822
1822
1823
- - ` CONFIG_CDCACM ` and ` CONFIG_CDCACM_CONSOLE `
1823
+ - ` CONFIG_CDCACM ` and ` CONFIG_CDCACM_CONSOLE `
1824
1824
Sets up the CDC/ACM serial device as a console device at ` /dev/console ` .
1825
1825
1826
1826
- ` CONFIG_NSH_USBCONSOLE ` – If defined, then the an arbitrary USB device may
0 commit comments