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