- Timestamp:
- 09/14/14 23:10:45 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- fc9f8f5
- Parents:
- ebf9a05
- git-author:
- Chris Johns <chrisj@…> (09/14/14 23:10:45)
- git-committer:
- Chris Johns <chrisj@…> (09/16/14 05:19:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/shell/file.t
rebf9a05 rb299960 37 37 @item @code{cd} - alias for chdir 38 38 @item @code{df} - display file system disk space usage 39 @item @code{md5} - display file system disk space usage 39 40 40 41 @end itemize … … 92 93 @findex CONFIGURE_SHELL_COMMAND_UMASK 93 94 94 This command is included in the default shell command set. 95 This command is included in the default shell command set. 95 96 When building a custom command set, define 96 97 @code{CONFIGURE_SHELL_COMMAND_UMASK} to have this … … 247 248 drwxr-xr-x 1 root root 536 Jan 01 00:00 dev/ 248 249 drwxr-xr-x 1 root root 1072 Jan 01 00:00 etc/ 249 -rw-r--r-- 1 root root 102 Jan 01 00:00 joel 250 -rw-r--r-- 1 root root 102 Jan 01 00:00 joel 250 251 3 files 1710 bytes occupied 251 252 @end example … … 257 258 @example 258 259 SHLL [/] # mkdir tmp 259 SHLL [/] # ls tmp 260 SHLL [/] # ls tmp 260 261 0 files 0 bytes occupied 261 262 SHLL [/] # cp /etc/passwd tmp 262 263 SHLL [/] # ls /tmp 263 -rw-r--r-- 1 root root 102 Jan 01 00:01 passwd 264 -rw-r--r-- 1 root root 102 Jan 01 00:01 passwd 264 265 1 files 102 bytes occupied 265 266 SHLL [/] # cp /etc/passwd /etc/group /tmp 266 267 SHLL [/] # ls /tmp 267 -rw-r--r-- 1 root root 102 Jan 01 00:01 passwd 268 -rw-r--r-- 1 root root 42 Jan 01 00:01 group 268 -rw-r--r-- 1 root root 102 Jan 01 00:01 passwd 269 -rw-r--r-- 1 root root 42 Jan 01 00:01 group 269 270 2 files 144 bytes occupied 270 SHLL [/] # 271 SHLL [/] # 271 272 @end example 272 273 … … 276 277 @findex CONFIGURE_SHELL_COMMAND_CP 277 278 278 This command is included in the default shell command set. 279 This command is included in the default shell command set. 279 280 When building a custom command set, define 280 281 @code{CONFIGURE_SHELL_COMMAND_CP} to have this … … 449 450 450 451 This command prints the fully qualified filename of the current 451 working directory. 452 working directory. 452 453 453 454 @subheading EXIT STATUS: … … 476 477 @findex CONFIGURE_SHELL_COMMAND_PWD 477 478 478 This command is included in the default shell command set. 479 This command is included in the default shell command set. 479 480 When building a custom command set, define 480 481 @code{CONFIGURE_SHELL_COMMAND_PWD} to have this … … 532 533 @subheading NOTES: 533 534 534 This command currently does not display information on a set of 535 This command currently does not display information on a set of 535 536 files like the POSIX ls(1). It only displays the contents of 536 537 entire directories. … … 546 547 2 files 1608 bytes occupied 547 548 SHLL [/] $ ls etc 548 -rw-r--r-- 1 root root 102 Jan 01 00:00 passwd 549 -rw-r--r-- 1 root root 42 Jan 01 00:00 group 550 -rw-r--r-- 1 root root 30 Jan 01 00:00 issue 551 -rw-r--r-- 1 root root 28 Jan 01 00:00 issue.net 549 -rw-r--r-- 1 root root 102 Jan 01 00:00 passwd 550 -rw-r--r-- 1 root root 42 Jan 01 00:00 group 551 -rw-r--r-- 1 root root 30 Jan 01 00:00 issue 552 -rw-r--r-- 1 root root 28 Jan 01 00:00 issue.net 552 553 4 files 202 bytes occupied 553 554 SHLL [/] $ ls dev etc 554 -rwxr-xr-x 1 rtems root 0 Jan 01 00:00 console 555 -rwxr-xr-x 1 root root 0 Jan 01 00:00 console_b 555 -rwxr-xr-x 1 rtems root 0 Jan 01 00:00 console 556 -rwxr-xr-x 1 root root 0 Jan 01 00:00 console_b 556 557 @end example 557 558 … … 561 562 @findex CONFIGURE_SHELL_COMMAND_LS 562 563 563 This command is included in the default shell command set. 564 This command is included in the default shell command set. 564 565 When building a custom command set, define 565 566 @code{CONFIGURE_SHELL_COMMAND_LS} to have this … … 627 628 / 628 629 SHLL [/] $ chdir etc 629 SHLL [/etc] $ pwd 630 SHLL [/etc] $ pwd 630 631 /etc 631 632 @end example … … 636 637 @findex CONFIGURE_SHELL_COMMAND_CHDIR 637 638 638 This command is included in the default shell command set. 639 This command is included in the default shell command set. 639 640 When building a custom command set, define 640 641 @code{CONFIGURE_SHELL_COMMAND_CHDIR} to have this … … 684 685 This command creates the set of directories in the order they 685 686 are specified on the command line. If an error is encountered 686 making one of the directories, the command will continue to 687 making one of the directories, the command will continue to 687 688 attempt to create the remaining directories on the command line. 688 689 … … 713 714 SHLL [/] # cp etc/passwd joel 714 715 SHLL [/] # ls joel 715 -rw-r--r-- 1 root root 102 Jan 01 00:02 passwd 716 -rw-r--r-- 1 root root 102 Jan 01 00:02 passwd 716 717 1 files 102 bytes occupied 717 718 @end example … … 722 723 @findex CONFIGURE_SHELL_COMMAND_MKDIR 723 724 724 This command is included in the default shell command set. 725 This command is included in the default shell command set. 725 726 When building a custom command set, define 726 727 @code{CONFIGURE_SHELL_COMMAND_MKDIR} to have this … … 768 769 @subheading DESCRIPTION: 769 770 770 This command removes the specified set of directories. If no 771 This command removes the specified set of directories. If no 771 772 directories are provided on the command line, no actions are taken. 772 773 … … 796 797 @findex CONFIGURE_SHELL_COMMAND_RMDIR 797 798 798 This command is included in the default shell command set. 799 This command is included in the default shell command set. 799 800 When building a custom command set, define 800 801 @code{CONFIGURE_SHELL_COMMAND_RMDIR} to have this … … 967 968 968 969 @example 969 mknod [-rR] [-F fmt] [-g gid] [-m mode] [-u uid] name [c | b] 970 mknod [-rR] [-F fmt] [-g gid] [-m mode] [-u uid] name [c | b] 970 971 [driver | major] minor 971 mknod [-rR] [-F fmt] [-g gid] [-m mode] [-u uid] name [c | b] 972 mknod [-rR] [-F fmt] [-g gid] [-m mode] [-u uid] name [c | b] 972 973 major unit subunit 973 974 mknod [-rR] [-g gid] [-m mode] [-u uid] name [c | b] number … … 1146 1147 @findex CONFIGURE_SHELL_COMMAND_CHROOT 1147 1148 1148 This command is included in the default shell command set. 1149 This command is included in the default shell command set. 1149 1150 When building a custom command set, define 1150 1151 @code{CONFIGURE_SHELL_COMMAND_CHROOT} to have this … … 1215 1216 SHLL [/] # cd etc 1216 1217 SHLL [/etc] # ls 1217 -rw-r--r-- 1 root root 102 Jan 01 00:00 passwd 1218 -rw-r--r-- 1 root root 42 Jan 01 00:00 group 1219 -rw-r--r-- 1 root root 30 Jan 01 00:00 issue 1220 -rw-r--r-- 1 root root 28 Jan 01 00:00 issue.net 1218 -rw-r--r-- 1 root root 102 Jan 01 00:00 passwd 1219 -rw-r--r-- 1 root root 42 Jan 01 00:00 group 1220 -rw-r--r-- 1 root root 30 Jan 01 00:00 issue 1221 -rw-r--r-- 1 root root 28 Jan 01 00:00 issue.net 1221 1222 4 files 202 bytes occupied 1222 1223 SHLL [/etc] # chmod 0777 passwd 1223 SHLL [/etc] # ls 1224 -rwxrwxrwx 1 root root 102 Jan 01 00:00 passwd 1225 -rw-r--r-- 1 root root 42 Jan 01 00:00 group 1226 -rw-r--r-- 1 root root 30 Jan 01 00:00 issue 1227 -rw-r--r-- 1 root root 28 Jan 01 00:00 issue.net 1224 SHLL [/etc] # ls 1225 -rwxrwxrwx 1 root root 102 Jan 01 00:00 passwd 1226 -rw-r--r-- 1 root root 42 Jan 01 00:00 group 1227 -rw-r--r-- 1 root root 30 Jan 01 00:00 issue 1228 -rw-r--r-- 1 root root 28 Jan 01 00:00 issue.net 1228 1229 4 files 202 bytes occupied 1229 1230 SHLL [/etc] # chmod 0322 passwd 1230 1231 SHLL [/etc] # ls 1231 --wx-w--w- 1 nouser root 102 Jan 01 00:00 passwd 1232 -rw-r--r-- 1 nouser root 42 Jan 01 00:00 group 1233 -rw-r--r-- 1 nouser root 30 Jan 01 00:00 issue 1234 -rw-r--r-- 1 nouser root 28 Jan 01 00:00 issue.net 1232 --wx-w--w- 1 nouser root 102 Jan 01 00:00 passwd 1233 -rw-r--r-- 1 nouser root 42 Jan 01 00:00 group 1234 -rw-r--r-- 1 nouser root 30 Jan 01 00:00 issue 1235 -rw-r--r-- 1 nouser root 28 Jan 01 00:00 issue.net 1235 1236 4 files 202 bytes occupied 1236 1237 SHLL [/etc] # chmod 0644 passwd 1237 1238 SHLL [/etc] # ls 1238 -rw-r--r-- 1 root root 102 Jan 01 00:00 passwd 1239 -rw-r--r-- 1 root root 42 Jan 01 00:00 group 1240 -rw-r--r-- 1 root root 30 Jan 01 00:00 issue 1241 -rw-r--r-- 1 root root 28 Jan 01 00:00 issue.net 1239 -rw-r--r-- 1 root root 102 Jan 01 00:00 passwd 1240 -rw-r--r-- 1 root root 42 Jan 01 00:00 group 1241 -rw-r--r-- 1 root root 30 Jan 01 00:00 issue 1242 -rw-r--r-- 1 root root 28 Jan 01 00:00 issue.net 1242 1243 4 files 202 bytes occupied 1243 1244 @end example … … 1248 1249 @findex CONFIGURE_SHELL_COMMAND_CHMOD 1249 1250 1250 This command is included in the default shell command set. 1251 This command is included in the default shell command set. 1251 1252 When building a custom command set, define 1252 1253 @code{CONFIGURE_SHELL_COMMAND_CHMOD} to have this … … 1320 1321 @findex CONFIGURE_SHELL_COMMAND_CAT 1321 1322 1322 This command is included in the default shell command set. 1323 This command is included in the default shell command set. 1323 1324 When building a custom command set, define 1324 1325 @code{CONFIGURE_SHELL_COMMAND_CAT} to have this … … 1366 1367 @subheading DESCRIPTION: 1367 1368 1368 This command deletes a name from the filesystem. If the specified file name 1369 This command deletes a name from the filesystem. If the specified file name 1369 1370 was the last link to a file and there are no @code{open} file descriptor 1370 1371 references to that file, then it is deleted and the associated space in … … 1404 1405 @findex CONFIGURE_SHELL_COMMAND_RM 1405 1406 1406 This command is included in the default shell command set. 1407 This command is included in the default shell command set. 1407 1408 When building a custom command set, define 1408 1409 @code{CONFIGURE_SHELL_COMMAND_RM} to have this … … 1511 1512 @findex CONFIGURE_SHELL_COMMAND_MOUNT 1512 1513 1513 This command is included in the default shell command set. 1514 This command is included in the default shell command set. 1514 1515 When building a custom command set, define 1515 1516 @code{CONFIGURE_SHELL_COMMAND_MOUNT} to have this … … 1604 1605 @findex CONFIGURE_SHELL_COMMAND_UNMOUNT 1605 1606 1606 This command is included in the default shell command set. 1607 This command is included in the default shell command set. 1607 1608 When building a custom command set, define 1608 1609 @code{CONFIGURE_SHELL_COMMAND_UNMOUNT} to have this … … 1673 1674 @findex CONFIGURE_SHELL_COMMAND_BLKSYNC 1674 1675 1675 This command is included in the default shell command set. 1676 This command is included in the default shell command set. 1676 1677 When building a custom command set, define 1677 1678 @code{CONFIGURE_SHELL_COMMAND_BLKSYNC} to have this … … 2070 2071 version character (unlike the fprintf(3) default which prints the 2071 2072 entire string if the precision is unspecified). 2072 @item 2073 @item 2073 2074 The conversion characters ``h'', ``l'', ``n'', ``p'' and ``q'' are not 2074 2075 supported. … … 2244 2245 @findex CONFIGURE_SHELL_COMMAND_FDISK 2245 2246 2246 This command is included in the default shell command set. 2247 This command is included in the default shell command set. 2247 2248 When building a custom command set, define 2248 2249 @code{CONFIGURE_SHELL_COMMAND_FDISK} to have this … … 2269 2270 @subheading DESCRIPTION: 2270 2271 2271 This command is an alias or alternate name for the @code{ls}. 2272 This command is an alias or alternate name for the @code{ls}. 2272 2273 See @ref{File and Directory Commands ls - list files in the directory, ls} 2273 2274 for more information. … … 2291 2292 2 files 1608 bytes occupied 2292 2293 SHLL [/] $ dir etc 2293 -rw-r--r-- 1 root root 102 Jan 01 00:00 passwd 2294 -rw-r--r-- 1 root root 42 Jan 01 00:00 group 2295 -rw-r--r-- 1 root root 30 Jan 01 00:00 issue 2296 -rw-r--r-- 1 root root 28 Jan 01 00:00 issue.net 2294 -rw-r--r-- 1 root root 102 Jan 01 00:00 passwd 2295 -rw-r--r-- 1 root root 42 Jan 01 00:00 group 2296 -rw-r--r-- 1 root root 30 Jan 01 00:00 issue 2297 -rw-r--r-- 1 root root 28 Jan 01 00:00 issue.net 2297 2298 4 files 202 bytes occupied 2298 2299 @end example … … 2303 2304 @findex CONFIGURE_SHELL_COMMAND_DIR 2304 2305 2305 This command is included in the default shell command set. 2306 This command is included in the default shell command set. 2306 2307 When building a custom command set, define 2307 2308 @code{CONFIGURE_SHELL_COMMAND_DIR} to have this … … 2408 2409 @findex CONFIGURE_SHELL_COMMAND_MKRFS 2409 2410 2410 This command is included in the default shell command set. 2411 This command is included in the default shell command set. 2411 2412 When building a custom command set, define 2412 2413 @code{CONFIGURE_SHELL_COMMAND_MKRFS} to have this … … 2449 2450 2450 2451 @example 2451 debugrfs [-hl] path command [options] 2452 debugrfs [-hl] path command [options] 2452 2453 @end example 2453 2454 … … 2477 2478 2478 2479 @item data 2479 Display the file system data and configuration. 2480 Display the file system data and configuration. 2480 2481 2481 2482 @item dir bno … … 2520 2521 @findex CONFIGURE_SHELL_COMMAND_DEBUGRFS 2521 2522 2522 This command is included in the default shell command set. 2523 This command is included in the default shell command set. 2523 2524 When building a custom command set, define 2524 2525 @code{CONFIGURE_SHELL_COMMAND_DEBUGRFS} to have this … … 2566 2567 @subheading DESCRIPTION: 2567 2568 2568 This command is an alias or alternate name for the @code{chdir}. 2569 This command is an alias or alternate name for the @code{chdir}. 2569 2570 See @ref{File and Directory Commands chdir - change the current directory, cd} 2570 2571 for more information. … … 2602 2603 @findex CONFIGURE_SHELL_COMMAND_CD 2603 2604 2604 This command is included in the default shell command set. 2605 This command is included in the default shell command set. 2605 2606 When building a custom command set, define 2606 2607 @code{CONFIGURE_SHELL_COMMAND_CD} to have this … … 2679 2680 @findex CONFIGURE_SHELL_COMMAND_DF 2680 2681 2681 This command is included in the default shell command set. 2682 This command is included in the default shell command set. 2682 2683 When building a custom command set, define 2683 2684 @code{CONFIGURE_SHELL_COMMAND_DF} to have this … … 2709 2710 @end example 2710 2711 2712 @c 2713 @c 2714 @c 2715 @page 2716 @subsection md5 - compute the Md5 hash of a file or list of files 2717 2718 @pgindex md5 2719 2720 @subheading SYNOPSYS: 2721 2722 @example 2723 md5 <files> 2724 @end example 2725 2726 @subheading DESCRIPTION: 2727 2728 This command prints the MD5 of a file. You can provide one or more 2729 files on the command line and a hash for each file is printed in a 2730 single line of output. 2731 2732 @subheading EXIT STATUS: 2733 2734 This command returns 0 on success and non-zero if an error is encountered. 2735 2736 @subheading NOTES: 2737 2738 NONE 2739 2740 @subheading EXAMPLES: 2741 2742 The following is an example of how to use @code{md5}: 2743 2744 @example 2745 SHLL [/] $ md5 shell-init 2746 MD5 (shell-init) = 43b4d2e71b47db79eae679a2efeacf31 2747 @end example 2748 2749 @subheading CONFIGURATION: 2750 2751 @findex CONFIGURE_SHELL_NO_COMMAND_MD5 2752 @findex CONFIGURE_SHELL_COMMAND_MD5 2753 2754 This command is included in the default shell command set. 2755 When building a custom command set, define 2756 @code{CONFIGURE_SHELL_COMMAND_MD5} to have this 2757 command included. 2758 2759 This command can be excluded from the shell command set by 2760 defining @code{CONFIGURE_SHELL_NO_COMMAND_MD5} when all 2761 shell commands have been configured. 2762 2763 @subheading PROGRAMMING INFORMATION: 2764 2765 @findex rtems_shell_rtems_main_md5 2766 2767 The @code{df} is implemented by a C language function 2768 which has the following prototype: 2769 2770 @example 2771 int rtems_shell_main_md5( 2772 int argc, 2773 char **argv 2774 ); 2775 @end example 2776 2777 The configuration structure for the @code{md5} has the 2778 following prototype: 2779 2780 @example 2781 extern rtems_shell_cmd_t rtems_shell_MD5_Command; 2782 @end example
Note: See TracChangeset
for help on using the changeset viewer.