diff --git a/Documentation/NuttShell.html b/Documentation/NuttShell.html index afbfcb0bda1..0a08b0001b2 100644 --- a/Documentation/NuttShell.html +++ b/Documentation/NuttShell.html @@ -8,7 +8,7 @@
Last Updated: December 13, 2015
+Last Updated: December 31, 2015
-nsh> mount
+nsh> mount
/etc type romfs
/tmp type vfat
-nsh> df
+nsh> df
Block Number
Size Blocks Used Available Mounted on
64 6 6 0 /etc
512 985 2 983 /tmp
-nsh>
+nsh>
If CONFIG_NSH_CMDOPT_DF_H is defined in the NuttX configuration, then the df will also support an option -h which may be used to show the volume information in human readable format.
@@ -1715,27 +1721,27 @@ insmod <file-path> <module-name>
Example:
-nsh> ls -l /mnt/romfs +nsh> ls -l /mnt/romfs /mnt/romfs: dr-xr-xr-x 0 . -r-xr-xr-x 9153 chardev -nsh> ls -l /dev +nsh> ls -l /dev /dev: crw-rw-rw- 0 console crw-rw-rw- 0 null brw-rw-rw- 0 ram0 crw-rw-rw- 0 ttyS0 -nsh> lsmod +nsh> lsmod NAME INIT UNINIT ARG TEXT SIZE DATA SIZE -nsh> insmod /mnt/romfs/chardev mydriver -nsh> ls -l /dev +nsh> insmod /mnt/romfs/chardev mydriver +nsh> ls -l /dev /dev: crw-rw-rw- 0 chardev crw-rw-rw- 0 console crw-rw-rw- 0 null brw-rw-rw- 0 ram0 crw-rw-rw- 0 ttyS0 -nsh> lsmod +nsh> lsmod NAME INIT UNINIT ARG TEXT SIZE DATA SIZE mydriver 20404659 20404625 0 20404580 552 204047a8 0@@ -1901,7 +1907,7 @@ lsmod
Example:
-nsh> lsmod +nsh> lsmod NAME INIT UNINIT ARG TEXT SIZE DATA SIZE mydriver 20404659 20404625 0 20404580 552 204047a8 0@@ -2038,12 +2044,12 @@ mkdir <path>
Example:
-nsh> mkdir /mnt/fs/tmp -nsh> ls -l /mnt/fs +nsh> mkdir /mnt/fs/tmp +nsh> ls -l /mnt/fs /mnt/fs: drw-rw-rw- 0 TESTDIR/ drw-rw-rw- 0 TMP/ -nsh> +nsh>
- 2.54 Unmount a File System (umount)+2.54 Time execution of another command (time)+ |
+
Command Syntax:
++time "<command>" ++
+ Synopsis. + Perform command timing. + This command will execute the following <command> string and then show how much time was required to execute the command. + Time is shown with a resolution of 100 microseconds which may be beyond the resolution of many configurations. + Note that the <command> string must be enclosed in quotation marks. +
+Example:
++nsh> time "sleep 2" + +2.0001 sec +nsh> ++
+ The addition 100 microseconds in this example is the additional overhead of the time command execution itself which is included in the total. + Timing quantization errors could also result in small errors in the measurement. +
++ Notice that: +
++nsh> time "sleep 2 &" +sleep [3:100] + +0.0000 sec +nsh> ++
+ Since the sleep command is executed in background, the sleep command completes almost immediately. + As opposed to the following where the time command is run in background with the sleep command: +
++nsh> time "sleep 2" & +time [3:100] +nsh> +2.0001 sec ++ +
+ 2.55 Unmount a File System (umount) |
Example:
-nsh> ls /mnt/fs +nsh> ls /mnt/fs /mnt/fs: TESTDIR/ -nsh> umount /mnt/fs -nsh> ls /mnt/fs +nsh> umount /mnt/fs +nsh> ls /mnt/fs /mnt/fs: nsh: ls: no such directory: /mnt/fs -nsh> +nsh>
- 2.55 Print system information (uname)+2.56 Print system information (uname) |
- 2.56 Unset an Environment Variable (unset)+2.57 Unset an Environment Variable (unset) |
- 2.57 URL Decode (urldecode)+2.58 URL Decode (urldecode) |
- 2.58 URL Encode (urlencode)+2.59 URL Encode (urlencode) |
- 2.59 Wait for Microseconds (usleep)+2.60 Wait for Microseconds (usleep) |
- 2.60 Get File Via HTTP (wget)+2.61 Get File Via HTTP (wget) |
- 2.61 Hexadecimal Dump of Memory (xd)+2.62 Hexadecimal Dump of Memory (xd) |
Example:
-nsh> xd 410e0 512 +nsh> xd 410e0 512 Hex dump: 0000: 00 00 00 00 9c 9d 03 00 00 00 00 01 11 01 10 06 ................ 0010: 12 01 11 01 25 08 13 0b 03 08 1b 08 00 00 02 24 ....%..........$ ... 01f0: 08 3a 0b 3b 0b 49 13 00 00 04 13 01 01 13 03 08 .:.;.I.......... -nsh> +nsh>
!CONFIG_NSH_DISABLESCRIPT |
CONFIG_NSH_DISABLE_TEST |
+ |
time |
+   | +CONFIG_NSH_DISABLE_TIME |
+
umount |
!CONFIG_DISABLE_MOUNTPOINT && CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_FS_READABLE3 |
@@ -4726,11 +4788,12 @@ mount -t vfat /dev/ram1 /tmp