[8fcc2c0] | 1 | <sect2><title>Contents of Sh-utils</title>
|
---|
| 2 |
|
---|
| 3 | <para>Last checked against version &sh-utils-contversion;.</para>
|
---|
[6370fa6] | 4 |
|
---|
[bdc08c1] | 5 | <sect3><title>Program Files</title>
|
---|
| 6 | <para>basename, chroot, date, dirname,
|
---|
[b06ac510] | 7 | echo, env, expr, factor, false, groups, hostid, id, logname,
|
---|
[6370fa6] | 8 | nice, nohup, pathchk, pinky, printenv, printf, pwd, seq, sleep, stty,
|
---|
[bdc08c1] | 9 | su, tee, test, true, tty, uname, uptime, users, who, whoami and
|
---|
| 10 | yes</para></sect3>
|
---|
[6370fa6] | 11 |
|
---|
[bdc08c1] | 12 | <sect3><title>Descriptions</title>
|
---|
[6370fa6] | 13 |
|
---|
[bdc08c1] | 14 | <sect4><title>basename</title>
|
---|
| 15 | <para>basename strips directory and suffixes from filenames.</para></sect4>
|
---|
[6370fa6] | 16 |
|
---|
[bdc08c1] | 17 | <sect4><title>chroot</title>
|
---|
[b822811] | 18 | <para>chroot runs a command or interactive shell with special
|
---|
[bdc08c1] | 19 | root directory.</para></sect4>
|
---|
[6370fa6] | 20 |
|
---|
[bdc08c1] | 21 | <sect4><title>date</title>
|
---|
[b822811] | 22 | <para>date displays the current time in a specified format, or sets
|
---|
[bdc08c1] | 23 | the system date.</para></sect4>
|
---|
[6370fa6] | 24 |
|
---|
[bdc08c1] | 25 | <sect4><title>dirname</title>
|
---|
| 26 | <para>dirname strips non-directory suffixes from file name.</para></sect4>
|
---|
[6370fa6] | 27 |
|
---|
[bdc08c1] | 28 | <sect4><title>echo</title>
|
---|
| 29 | <para>echo displays a line of text.</para></sect4>
|
---|
[6370fa6] | 30 |
|
---|
[bdc08c1] | 31 | <sect4><title>env</title>
|
---|
| 32 | <para>env runs a program in a modified environment.</para></sect4>
|
---|
[6370fa6] | 33 |
|
---|
[bdc08c1] | 34 | <sect4><title>expr</title>
|
---|
| 35 | <para>expr evaluates expressions.</para></sect4>
|
---|
[6370fa6] | 36 |
|
---|
[bdc08c1] | 37 | <sect4><title>factor</title>
|
---|
[53ad30a] | 38 | <para>factor prints the prime factors of all specified
|
---|
[bdc08c1] | 39 | integer numbers.</para></sect4>
|
---|
[6370fa6] | 40 |
|
---|
[bdc08c1] | 41 | <sect4><title>false</title>
|
---|
| 42 | <para>false always exits with a status code indicating failure.</para></sect4>
|
---|
[6370fa6] | 43 |
|
---|
[bdc08c1] | 44 | <sect4><title>groups</title>
|
---|
[2c094d6] | 45 | <para>groups prints a user's group memberships.</para></sect4>
|
---|
[6370fa6] | 46 |
|
---|
[bdc08c1] | 47 | <sect4><title>hostid</title>
|
---|
[b822811] | 48 | <para>hostid prints the numeric identifier (in hexadecimal) for the current
|
---|
[bdc08c1] | 49 | host.</para></sect4>
|
---|
[6370fa6] | 50 |
|
---|
[bdc08c1] | 51 | <sect4><title>id</title>
|
---|
[159c2d2] | 52 | <para>id prints the effective user and group IDs of the current
|
---|
| 53 | user or a given user.</para></sect4>
|
---|
[6370fa6] | 54 |
|
---|
[bdc08c1] | 55 | <sect4><title>logname</title>
|
---|
| 56 | <para>logname prints the current user's login name.</para></sect4>
|
---|
[6370fa6] | 57 |
|
---|
[bdc08c1] | 58 | <sect4><title>nice</title>
|
---|
| 59 | <para>nice runs a program with modified scheduling priority.</para></sect4>
|
---|
[6370fa6] | 60 |
|
---|
[bdc08c1] | 61 | <sect4><title>nohup</title>
|
---|
[53ad30a] | 62 | <para>nohup runs a command immune to hangups, with output to a
|
---|
[2c094d6] | 63 | log file.</para></sect4>
|
---|
[6370fa6] | 64 |
|
---|
[bdc08c1] | 65 | <sect4><title>pathchk</title>
|
---|
| 66 | <para>pathchk checks whether file names are valid or portable.</para></sect4>
|
---|
[6370fa6] | 67 |
|
---|
[bdc08c1] | 68 | <sect4><title>pinky</title>
|
---|
[b822811] | 69 | <para>pinky is a lightweight finger utility which retrieves information about
|
---|
[335838c] | 70 | a certain user.</para></sect4>
|
---|
[6370fa6] | 71 |
|
---|
[bdc08c1] | 72 | <sect4><title>printenv</title>
|
---|
| 73 | <para>printenv prints all or part of the environment.</para></sect4>
|
---|
[6370fa6] | 74 |
|
---|
[bdc08c1] | 75 | <sect4><title>printf</title>
|
---|
[2c094d6] | 76 | <para>printf formats and prints data (the same as the C printf
|
---|
[bdc08c1] | 77 | function).</para></sect4>
|
---|
[6370fa6] | 78 |
|
---|
[bdc08c1] | 79 | <sect4><title>pwd</title>
|
---|
[335838c] | 80 | <para>pwd prints the name of the current/working directory.</para></sect4>
|
---|
[6370fa6] | 81 |
|
---|
[bdc08c1] | 82 | <sect4><title>seq</title>
|
---|
[53ad30a] | 83 | <para>seq prints numbers in a certain range with a certain
|
---|
[bdc08c1] | 84 | increment.</para></sect4>
|
---|
[6370fa6] | 85 |
|
---|
[bdc08c1] | 86 | <sect4><title>sleep</title>
|
---|
| 87 | <para>sleep delays for a specified amount of time.</para></sect4>
|
---|
[6370fa6] | 88 |
|
---|
[bdc08c1] | 89 | <sect4><title>stty</title>
|
---|
| 90 | <para>stty changes and prints terminal line settings.</para></sect4>
|
---|
[6370fa6] | 91 |
|
---|
[bdc08c1] | 92 | <sect4><title>su</title>
|
---|
[159c2d2] | 93 | <para>su runs a shell with substitute user and group IDs.</para></sect4>
|
---|
[6370fa6] | 94 |
|
---|
[bdc08c1] | 95 | <sect4><title>tee</title>
|
---|
[7d45ab12] | 96 | <para>tee reads from standard input and writes to standard output and
|
---|
[bdc08c1] | 97 | files.</para></sect4>
|
---|
[6370fa6] | 98 |
|
---|
[bdc08c1] | 99 | <sect4><title>test</title>
|
---|
| 100 | <para>test checks file types and compares values.</para></sect4>
|
---|
[6370fa6] | 101 |
|
---|
[bdc08c1] | 102 | <sect4><title>true</title>
|
---|
[cf24ff1] | 103 | <para>true always exits with a status code indicating success.</para></sect4>
|
---|
[6370fa6] | 104 |
|
---|
[bdc08c1] | 105 | <sect4><title>tty</title>
|
---|
[b822811] | 106 | <para>tty prints the file name of the terminal connected to standard
|
---|
[bdc08c1] | 107 | input.</para></sect4>
|
---|
[6370fa6] | 108 |
|
---|
[bdc08c1] | 109 | <sect4><title>uname</title>
|
---|
| 110 | <para>uname prints system information.</para></sect4>
|
---|
[6370fa6] | 111 |
|
---|
[bdc08c1] | 112 | <sect4><title>uptime</title>
|
---|
| 113 | <para>uptime tells how long the system has been running.</para></sect4>
|
---|
[6370fa6] | 114 |
|
---|
[bdc08c1] | 115 | <sect4><title>users</title>
|
---|
[b822811] | 116 | <para>users prints the user names of users currently logged in to the
|
---|
[bdc08c1] | 117 | current host.</para></sect4>
|
---|
| 118 |
|
---|
| 119 | <sect4><title>who</title>
|
---|
| 120 | <para>who shows who is logged on.</para></sect4>
|
---|
[6370fa6] | 121 |
|
---|
[bdc08c1] | 122 | <sect4><title>whoami</title>
|
---|
[159c2d2] | 123 | <para>whoami prints the user name associated with the current
|
---|
| 124 | effective user ID.</para></sect4>
|
---|
[6370fa6] | 125 |
|
---|
[bdc08c1] | 126 | <sect4><title>yes</title>
|
---|
[159c2d2] | 127 | <para>yes outputs 'y' or a given string repeatedly,
|
---|
| 128 | until killed.</para></sect4>
|
---|
[6370fa6] | 129 |
|
---|
[bdc08c1] | 130 | </sect3>
|
---|
[6370fa6] | 131 |
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|