coreutils.xml 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-coreutils" role="wrap">
  8. <?dbhtml filename="coreutils.html"?>
  9. <sect1info condition="script">
  10. <productname>coreutils</productname>
  11. <productnumber>&coreutils-version;</productnumber>
  12. <address>&coreutils-url;</address>
  13. </sect1info>
  14. <title>Coreutils-&coreutils-version;</title>
  15. <indexterm zone="ch-system-coreutils">
  16. <primary sortas="a-Coreutils">Coreutils</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Coreutils package contains utilities for showing and setting the
  21. basic system characteristics.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&coreutils-ch6-sbu;</seg>
  27. <seg>&coreutils-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Coreutils</title>
  33. <para>A known issue with the <command>uname</command> program from
  34. this package is that the <parameter>-p</parameter> switch always
  35. returns <computeroutput>unknown</computeroutput>. The following patch
  36. fixes this behavior for Intel architectures:</para>
  37. <screen><userinput>patch -Np1 -i ../&coreutils-uname-patch;</userinput></screen>
  38. <para>Prevent Coreutils from installing binaries that will be installed by
  39. other packages later:</para>
  40. <screen><userinput>patch -Np1 -i ../&coreutils-suppress-patch;</userinput></screen>
  41. <para>POSIX requires that programs from Coreutils recognize character
  42. boundaries correctly even in multibyte locales. The following patch
  43. fixes this non-compliance and other internationalization-related bugs:</para>
  44. <screen><userinput>patch -Np1 -i ../&coreutils-i18n-patch;</userinput></screen>
  45. <para>In order for the tests added by this patch to pass, the permissions for
  46. the test file have to be changed:</para>
  47. <screen><userinput>chmod +x tests/sort/sort-mb-tests</userinput></screen>
  48. <note>
  49. <para>In the past, many bugs were found in this patch. When reporting new
  50. bugs to Coreutils maintainers, please check first if they are reproducible
  51. without this patch.</para>
  52. </note>
  53. <para>Now prepare Coreutils for compilation:</para>
  54. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  55. <para>Compile the package:</para>
  56. <screen><userinput>make</userinput></screen>
  57. <para>Skip down to <quote>Install the
  58. package</quote> if not running the test suite.</para>
  59. <para>Now the test suite is ready to be run. First, run the tests that are
  60. meant to be run as user <systemitem class="username">root</systemitem>:</para>
  61. <screen><userinput>make NON_ROOT_USERNAME=nobody check-root</userinput></screen>
  62. <para>We're going to run the remainder of the tests as the
  63. <systemitem class="username">nobody</systemitem> user. Certain tests,
  64. however, require that the user be a member of more than one group. So that
  65. these tests are not skipped we'll add a temporary group and make the
  66. user <systemitem class="username">nobody</systemitem> a part of it:</para>
  67. <screen><userinput>echo "dummy:x:1000:nobody" &gt;&gt; /etc/group</userinput></screen>
  68. <para>Now run the tests:</para>
  69. <screen><userinput>su-tools nobody -s /bin/bash -c "make RUN_EXPENSIVE_TESTS=yes check"</userinput></screen>
  70. <para>Remove the temporary group:</para>
  71. <screen><userinput>sed -i '/dummy/d' /etc/group</userinput></screen>
  72. <para>Install the package:</para>
  73. <screen><userinput>make install</userinput></screen>
  74. <para>Move programs to the locations specified by the FHS:</para>
  75. <screen><userinput>mv -v /usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} /bin
  76. mv -v /usr/bin/{false,hostname,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} /bin
  77. mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin
  78. mv -v /usr/bin/chroot /usr/sbin</userinput></screen>
  79. <para>Some of the scripts in the LFS-Bootscripts package depend on
  80. <command>head</command>, <command>sleep</command>, and
  81. <command>nice</command>. As <filename class="directory">/usr</filename>
  82. may not be available during the early stages of booting, those binaries
  83. need to be on the root partition:</para>
  84. <screen><userinput>mv -v /usr/bin/{head,sleep,nice} /bin</userinput></screen>
  85. </sect2>
  86. <sect2 id="contents-coreutils" role="content">
  87. <title>Contents of Coreutils</title>
  88. <segmentedlist>
  89. <segtitle>Installed programs</segtitle>
  90. <seglistitem>
  91. <seg>base64, basename, cat, chgrp, chmod, chown, chroot, cksum, comm,
  92. cp, csplit, cut, date, dd, df, dir, dircolors, dirname, du, echo, env,
  93. expand, expr, factor, false, fmt, fold, groups, head, hostid, hostname,
  94. id, install, join, link, ln, logname, ls, md5sum, mkdir, mkfifo, mknod,
  95. mv, nice, nl, nohup, od, paste, pathchk, pinky, pr, printenv, printf,
  96. ptx, pwd, readlink, rm, rmdir, seq, sha1sum, sha224sum, sha256sum,
  97. sha384sum, sha512sum, shred, shuf, sleep, sort, split, stat, stty, sum,
  98. sync, tac, tail, tee, test, touch, tr, true, tsort, tty, uname,
  99. unexpand, uniq, unlink, users, vdir, wc, who, whoami, and yes</seg>
  100. </seglistitem>
  101. </segmentedlist>
  102. <variablelist>
  103. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  104. <?dbfo list-presentation="list"?>
  105. <?dbhtml list-presentation="table"?>
  106. <varlistentry id="base64">
  107. <term><command>base64</command></term>
  108. <listitem>
  109. <para>Encodes and decodes data according to the base64 (RFC 3548)
  110. specification</para>
  111. <indexterm zone="ch-system-coreutils base64">
  112. <primary sortas="b-base64">basename</primary>
  113. </indexterm>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry id="basename">
  117. <term><command>basename</command></term>
  118. <listitem>
  119. <para>Strips any path and a given suffix from a file name</para>
  120. <indexterm zone="ch-system-coreutils basename">
  121. <primary sortas="b-basename">basename</primary>
  122. </indexterm>
  123. </listitem>
  124. </varlistentry>
  125. <varlistentry id="cat">
  126. <term><command>cat</command></term>
  127. <listitem>
  128. <para>Concatenates files to standard output</para>
  129. <indexterm zone="ch-system-coreutils cat">
  130. <primary sortas="b-cat">cat</primary>
  131. </indexterm>
  132. </listitem>
  133. </varlistentry>
  134. <varlistentry id="chgrp">
  135. <term><command>chgrp</command></term>
  136. <listitem>
  137. <para>Changes the group ownership of files and directories</para>
  138. <indexterm zone="ch-system-coreutils chgrp">
  139. <primary sortas="b-chgrp">chgrp</primary>
  140. </indexterm>
  141. </listitem>
  142. </varlistentry>
  143. <varlistentry id="chmod">
  144. <term><command>chmod</command></term>
  145. <listitem>
  146. <para>Changes the permissions of each file to the given mode; the mode
  147. can be either a symbolic representation of the changes to make or an
  148. octal number representing the new permissions</para>
  149. <indexterm zone="ch-system-coreutils chmod">
  150. <primary sortas="b-chmod">chmod</primary>
  151. </indexterm>
  152. </listitem>
  153. </varlistentry>
  154. <varlistentry id="chown">
  155. <term><command>chown</command></term>
  156. <listitem>
  157. <para>Changes the user and/or group ownership of files and
  158. directories</para>
  159. <indexterm zone="ch-system-coreutils chown">
  160. <primary sortas="b-chown">chown</primary>
  161. </indexterm>
  162. </listitem>
  163. </varlistentry>
  164. <varlistentry id="chroot">
  165. <term><command>chroot</command></term>
  166. <listitem>
  167. <para>Runs a command with the specified directory as the
  168. <filename class="directory">/</filename> directory</para>
  169. <indexterm zone="ch-system-coreutils chroot">
  170. <primary sortas="b-chroot">chroot</primary>
  171. </indexterm>
  172. </listitem>
  173. </varlistentry>
  174. <varlistentry id="cksum">
  175. <term><command>cksum</command></term>
  176. <listitem>
  177. <para>Prints the Cyclic Redundancy Check (CRC) checksum and the byte
  178. counts of each specified file</para>
  179. <indexterm zone="ch-system-coreutils cksum">
  180. <primary sortas="b-cksum">cksum</primary>
  181. </indexterm>
  182. </listitem>
  183. </varlistentry>
  184. <varlistentry id="comm">
  185. <term><command>comm</command></term>
  186. <listitem>
  187. <para>Compares two sorted files, outputting in three columns the lines
  188. that are unique and the lines that are common</para>
  189. <indexterm zone="ch-system-coreutils comm">
  190. <primary sortas="b-comm">comm</primary>
  191. </indexterm>
  192. </listitem>
  193. </varlistentry>
  194. <varlistentry id="cp">
  195. <term><command>cp</command></term>
  196. <listitem>
  197. <para>Copies files</para>
  198. <indexterm zone="ch-system-coreutils cp">
  199. <primary sortas="b-cp">cp</primary>
  200. </indexterm>
  201. </listitem>
  202. </varlistentry>
  203. <varlistentry id="csplit">
  204. <term><command>csplit</command></term>
  205. <listitem>
  206. <para>Splits a given file into several new files, separating them
  207. according to given patterns or line numbers and outputting the byte
  208. count of each new file</para>
  209. <indexterm zone="ch-system-coreutils csplit">
  210. <primary sortas="b-csplit">csplit</primary>
  211. </indexterm>
  212. </listitem>
  213. </varlistentry>
  214. <varlistentry id="cut">
  215. <term><command>cut</command></term>
  216. <listitem>
  217. <para>Prints sections of lines, selecting the parts according to given
  218. fields or positions</para>
  219. <indexterm zone="ch-system-coreutils cut">
  220. <primary sortas="b-cut">cut</primary>
  221. </indexterm>
  222. </listitem>
  223. </varlistentry>
  224. <varlistentry id="date">
  225. <term><command>date</command></term>
  226. <listitem>
  227. <para>Displays the current time in the given format, or sets the
  228. system date</para>
  229. <indexterm zone="ch-system-coreutils date">
  230. <primary sortas="b-date">date</primary>
  231. </indexterm>
  232. </listitem>
  233. </varlistentry>
  234. <varlistentry id="dd">
  235. <term><command>dd</command> </term>
  236. <listitem>
  237. <para>Copies a file using the given block size and count, while
  238. optionally performing conversions on it</para>
  239. <indexterm zone="ch-system-coreutils dd">
  240. <primary sortas="b-dd">dd</primary>
  241. </indexterm>
  242. </listitem>
  243. </varlistentry>
  244. <varlistentry id="df">
  245. <term><command>df</command></term>
  246. <listitem>
  247. <para>Reports the amount of disk space available (and used) on all
  248. mounted file systems, or only on the file systems holding the selected
  249. files</para>
  250. <indexterm zone="ch-system-coreutils df">
  251. <primary sortas="b-df">df</primary>
  252. </indexterm>
  253. </listitem>
  254. </varlistentry>
  255. <varlistentry id="dir">
  256. <term><command>dir</command></term>
  257. <listitem>
  258. <para>Lists the contents of each given directory (the same as
  259. the <command>ls</command> command)</para>
  260. <indexterm zone="ch-system-coreutils dir">
  261. <primary sortas="b-dir">dir</primary>
  262. </indexterm>
  263. </listitem>
  264. </varlistentry>
  265. <varlistentry id="dircolors">
  266. <term><command>dircolors</command></term>
  267. <listitem>
  268. <para>Outputs commands to set the <envar>LS_COLOR</envar>
  269. environment variable to change the color scheme used by
  270. <command>ls</command></para>
  271. <indexterm zone="ch-system-coreutils dircolors">
  272. <primary sortas="b-dircolors">dircolors</primary>
  273. </indexterm>
  274. </listitem>
  275. </varlistentry>
  276. <varlistentry id="dirname">
  277. <term><command>dirname</command></term>
  278. <listitem>
  279. <para>Strips the non-directory suffix from a file name</para>
  280. <indexterm zone="ch-system-coreutils dirname">
  281. <primary sortas="b-dirname">dirname</primary>
  282. </indexterm>
  283. </listitem>
  284. </varlistentry>
  285. <varlistentry id="du">
  286. <term><command>du</command></term>
  287. <listitem>
  288. <para>Reports the amount of disk space used by the current directory,
  289. by each of the given directories (including all subdirectories) or by
  290. each of the given files</para>
  291. <indexterm zone="ch-system-coreutils du">
  292. <primary sortas="b-du">du</primary>
  293. </indexterm>
  294. </listitem>
  295. </varlistentry>
  296. <varlistentry id="echo">
  297. <term><command>echo</command></term>
  298. <listitem>
  299. <para>Displays the given strings</para>
  300. <indexterm zone="ch-system-coreutils echo">
  301. <primary sortas="b-echo">echo</primary>
  302. </indexterm>
  303. </listitem>
  304. </varlistentry>
  305. <varlistentry id="env">
  306. <term><command>env</command></term>
  307. <listitem>
  308. <para>Runs a command in a modified environment</para>
  309. <indexterm zone="ch-system-coreutils env">
  310. <primary sortas="b-env">env</primary>
  311. </indexterm>
  312. </listitem>
  313. </varlistentry>
  314. <varlistentry id="expand">
  315. <term><command>expand</command></term>
  316. <listitem>
  317. <para>Converts tabs to spaces</para>
  318. <indexterm zone="ch-system-coreutils expand">
  319. <primary sortas="b-expand">expand</primary>
  320. </indexterm>
  321. </listitem>
  322. </varlistentry>
  323. <varlistentry id="expr">
  324. <term><command>expr</command></term>
  325. <listitem>
  326. <para>Evaluates expressions</para>
  327. <indexterm zone="ch-system-coreutils expr">
  328. <primary sortas="b-expr">expr</primary>
  329. </indexterm>
  330. </listitem>
  331. </varlistentry>
  332. <varlistentry id="factor">
  333. <term><command>factor</command></term>
  334. <listitem>
  335. <para>Prints the prime factors of all specified integer numbers</para>
  336. <indexterm zone="ch-system-coreutils factor">
  337. <primary sortas="b-factor">factor</primary>
  338. </indexterm>
  339. </listitem>
  340. </varlistentry>
  341. <varlistentry id="false">
  342. <term><command>false</command></term>
  343. <listitem>
  344. <para>Does nothing, unsuccessfully; it always exits with a status code
  345. indicating failure</para>
  346. <indexterm zone="ch-system-coreutils false">
  347. <primary sortas="b-false">false</primary>
  348. </indexterm>
  349. </listitem>
  350. </varlistentry>
  351. <varlistentry id="fmt">
  352. <term><command>fmt</command></term>
  353. <listitem>
  354. <para>Reformats the paragraphs in the given files</para>
  355. <indexterm zone="ch-system-coreutils fmt">
  356. <primary sortas="b-fmt">fmt</primary>
  357. </indexterm>
  358. </listitem>
  359. </varlistentry>
  360. <varlistentry id="fold">
  361. <term><command>fold</command></term>
  362. <listitem>
  363. <para>Wraps the lines in the given files</para>
  364. <indexterm zone="ch-system-coreutils fold">
  365. <primary sortas="b-fold">fold</primary>
  366. </indexterm>
  367. </listitem>
  368. </varlistentry>
  369. <varlistentry id="groups">
  370. <term><command>groups</command></term>
  371. <listitem>
  372. <para>Reports a user's group memberships</para>
  373. <indexterm zone="ch-system-coreutils groups">
  374. <primary sortas="b-groups">groups</primary>
  375. </indexterm>
  376. </listitem>
  377. </varlistentry>
  378. <varlistentry id="head">
  379. <term><command>head</command></term>
  380. <listitem>
  381. <para>Prints the first ten lines (or the given number of lines)
  382. of each given file</para>
  383. <indexterm zone="ch-system-coreutils head">
  384. <primary sortas="b-head">head</primary>
  385. </indexterm>
  386. </listitem>
  387. </varlistentry>
  388. <varlistentry id="hostid">
  389. <term><command>hostid</command></term>
  390. <listitem>
  391. <para>Reports the numeric identifier (in hexadecimal) of the host</para>
  392. <indexterm zone="ch-system-coreutils hostid">
  393. <primary sortas="b-hostid">hostid</primary>
  394. </indexterm>
  395. </listitem>
  396. </varlistentry>
  397. <varlistentry id="hostname">
  398. <term><command>hostname</command></term>
  399. <listitem>
  400. <para>Reports or sets the name of the host</para>
  401. <indexterm zone="ch-system-coreutils hostname">
  402. <primary sortas="b-hostname">hostname</primary>
  403. </indexterm>
  404. </listitem>
  405. </varlistentry>
  406. <varlistentry id="id">
  407. <term><command>id</command></term>
  408. <listitem>
  409. <para>Reports the effective user ID, group ID, and group memberships
  410. of the current user or specified user</para>
  411. <indexterm zone="ch-system-coreutils id">
  412. <primary sortas="b-id">id</primary>
  413. </indexterm>
  414. </listitem>
  415. </varlistentry>
  416. <varlistentry id="install">
  417. <term><command>install</command> </term>
  418. <listitem>
  419. <para>Copies files while setting their permission modes and, if
  420. possible, their owner and group</para>
  421. <indexterm zone="ch-system-coreutils install">
  422. <primary sortas="b-install">install</primary>
  423. </indexterm>
  424. </listitem>
  425. </varlistentry>
  426. <varlistentry id="join">
  427. <term><command>join</command></term>
  428. <listitem>
  429. <para>Joins the lines that have identical join fields from two
  430. separate files</para>
  431. <indexterm zone="ch-system-coreutils join">
  432. <primary sortas="b-join">join</primary>
  433. </indexterm>
  434. </listitem>
  435. </varlistentry>
  436. <varlistentry id="link">
  437. <term><command>link</command></term>
  438. <listitem>
  439. <para>Creates a hard link with the given name to a file</para>
  440. <indexterm zone="ch-system-coreutils link">
  441. <primary sortas="b-link">link</primary>
  442. </indexterm>
  443. </listitem>
  444. </varlistentry>
  445. <varlistentry id="ln">
  446. <term><command>ln</command></term>
  447. <listitem>
  448. <para>Makes hard links or soft (symbolic) links between files</para>
  449. <indexterm zone="ch-system-coreutils ln">
  450. <primary sortas="b-ln">ln</primary>
  451. </indexterm>
  452. </listitem>
  453. </varlistentry>
  454. <varlistentry id="logname">
  455. <term><command>logname</command></term>
  456. <listitem>
  457. <para>Reports the current user's login name</para>
  458. <indexterm zone="ch-system-coreutils logname">
  459. <primary sortas="b-logname">logname</primary>
  460. </indexterm>
  461. </listitem>
  462. </varlistentry>
  463. <varlistentry id="ls">
  464. <term><command>ls</command></term>
  465. <listitem>
  466. <para>Lists the contents of each given directory</para>
  467. <indexterm zone="ch-system-coreutils ls">
  468. <primary sortas="b-ls">ls</primary>
  469. </indexterm>
  470. </listitem>
  471. </varlistentry>
  472. <varlistentry id="md5sum">
  473. <term><command>md5sum</command></term>
  474. <listitem>
  475. <para>Reports or checks Message Digest 5 (MD5) checksums</para>
  476. <indexterm zone="ch-system-coreutils md5sum">
  477. <primary sortas="b-md5sum">md5sum</primary>
  478. </indexterm>
  479. </listitem>
  480. </varlistentry>
  481. <varlistentry id="mkdir">
  482. <term><command>mkdir</command></term>
  483. <listitem>
  484. <para>Creates directories with the given names</para>
  485. <indexterm zone="ch-system-coreutils mkdir">
  486. <primary sortas="b-mkdir">mkdir</primary>
  487. </indexterm>
  488. </listitem>
  489. </varlistentry>
  490. <varlistentry id="mkfifo">
  491. <term><command>mkfifo</command></term>
  492. <listitem>
  493. <para>Creates First-In, First-Outs (FIFOs), a <quote>named
  494. pipe</quote> in UNIX parlance, with the given names</para>
  495. <indexterm zone="ch-system-coreutils mkfifo">
  496. <primary sortas="b-mkfifo">mkfifo</primary>
  497. </indexterm>
  498. </listitem>
  499. </varlistentry>
  500. <varlistentry id="mknod">
  501. <term><command>mknod</command></term>
  502. <listitem>
  503. <para>Creates device nodes with the given names; a device node is a
  504. character special file, a block special file, or a FIFO</para>
  505. <indexterm zone="ch-system-coreutils mknod">
  506. <primary sortas="b-mknod">mknod</primary>
  507. </indexterm>
  508. </listitem>
  509. </varlistentry>
  510. <varlistentry id="mv">
  511. <term><command>mv</command></term>
  512. <listitem>
  513. <para>Moves or renames files or directories</para>
  514. <indexterm zone="ch-system-coreutils mv">
  515. <primary sortas="b-mv">mv</primary>
  516. </indexterm>
  517. </listitem>
  518. </varlistentry>
  519. <varlistentry id="nice">
  520. <term><command>nice</command></term>
  521. <listitem>
  522. <para>Runs a program with modified scheduling priority</para>
  523. <indexterm zone="ch-system-coreutils nice">
  524. <primary sortas="b-nice">nice</primary>
  525. </indexterm>
  526. </listitem>
  527. </varlistentry>
  528. <varlistentry id="nl">
  529. <term><command>nl</command></term>
  530. <listitem>
  531. <para>Numbers the lines from the given files</para>
  532. <indexterm zone="ch-system-coreutils nl">
  533. <primary sortas="b-nl">nl</primary>
  534. </indexterm>
  535. </listitem>
  536. </varlistentry>
  537. <varlistentry id="nohup">
  538. <term><command>nohup</command></term>
  539. <listitem>
  540. <para>Runs a command immune to hangups, with its output redirected to
  541. a log file</para>
  542. <indexterm zone="ch-system-coreutils nohup">
  543. <primary sortas="b-nohup">nohup</primary>
  544. </indexterm>
  545. </listitem>
  546. </varlistentry>
  547. <varlistentry id="od">
  548. <term><command>od</command></term>
  549. <listitem>
  550. <para>Dumps files in octal and other formats</para>
  551. <indexterm zone="ch-system-coreutils od">
  552. <primary sortas="b-od">od</primary>
  553. </indexterm>
  554. </listitem>
  555. </varlistentry>
  556. <varlistentry id="paste">
  557. <term><command>paste</command></term>
  558. <listitem>
  559. <para>Merges the given files, joining sequentially corresponding lines
  560. side by side, separated by tab characters</para>
  561. <indexterm zone="ch-system-coreutils paste">
  562. <primary sortas="b-paste">paste</primary>
  563. </indexterm>
  564. </listitem>
  565. </varlistentry>
  566. <varlistentry id="pathchk">
  567. <term><command>pathchk</command></term>
  568. <listitem>
  569. <para>Checks if file names are valid or portable</para>
  570. <indexterm zone="ch-system-coreutils pathchk">
  571. <primary sortas="b-pathchk">pathchk</primary>
  572. </indexterm>
  573. </listitem>
  574. </varlistentry>
  575. <varlistentry id="pinky">
  576. <term><command>pinky</command></term>
  577. <listitem>
  578. <para>Is a lightweight finger client; it reports some information
  579. about the given users</para>
  580. <indexterm zone="ch-system-coreutils pinky">
  581. <primary sortas="b-pinky">pinky</primary>
  582. </indexterm>
  583. </listitem>
  584. </varlistentry>
  585. <varlistentry id="pr">
  586. <term><command>pr</command></term>
  587. <listitem>
  588. <para>Paginates and columnates files for printing</para>
  589. <indexterm zone="ch-system-coreutils pr">
  590. <primary sortas="b-pr">pr</primary>
  591. </indexterm>
  592. </listitem>
  593. </varlistentry>
  594. <varlistentry id="printenv">
  595. <term><command>printenv</command></term>
  596. <listitem>
  597. <para>Prints the environment</para>
  598. <indexterm zone="ch-system-coreutils printenv">
  599. <primary sortas="b-printenv">printenv</primary>
  600. </indexterm>
  601. </listitem>
  602. </varlistentry>
  603. <varlistentry id="printf">
  604. <term><command>printf</command></term>
  605. <listitem>
  606. <para>Prints the given arguments according to the given format, much
  607. like the C printf function</para>
  608. <indexterm zone="ch-system-coreutils printf">
  609. <primary sortas="b-printf">printf</primary>
  610. </indexterm>
  611. </listitem>
  612. </varlistentry>
  613. <varlistentry id="ptx">
  614. <term><command>ptx</command></term>
  615. <listitem>
  616. <para>Produces a permuted index from the contents of the given files,
  617. with each keyword in its context</para>
  618. <indexterm zone="ch-system-coreutils ptx">
  619. <primary sortas="b-ptx">ptx</primary>
  620. </indexterm>
  621. </listitem>
  622. </varlistentry>
  623. <varlistentry id="pwd">
  624. <term><command>pwd</command></term>
  625. <listitem>
  626. <para>Reports the name of the current working directory</para>
  627. <indexterm zone="ch-system-coreutils pwd">
  628. <primary sortas="b-pwd">pwd</primary>
  629. </indexterm>
  630. </listitem>
  631. </varlistentry>
  632. <varlistentry id="readlink">
  633. <term><command>readlink</command></term>
  634. <listitem>
  635. <para>Reports the value of the given symbolic link</para>
  636. <indexterm zone="ch-system-coreutils readlink">
  637. <primary sortas="b-readlink">readlink</primary>
  638. </indexterm>
  639. </listitem>
  640. </varlistentry>
  641. <varlistentry id="rm">
  642. <term><command>rm</command></term>
  643. <listitem>
  644. <para>Removes files or directories</para>
  645. <indexterm zone="ch-system-coreutils rm">
  646. <primary sortas="b-rm">rm</primary>
  647. </indexterm>
  648. </listitem>
  649. </varlistentry>
  650. <varlistentry id="rmdir">
  651. <term><command>rmdir</command></term>
  652. <listitem>
  653. <para>Removes directories if they are empty</para>
  654. <indexterm zone="ch-system-coreutils rmdir">
  655. <primary sortas="b-rmdir">rmdir</primary>
  656. </indexterm>
  657. </listitem>
  658. </varlistentry>
  659. <varlistentry id="seq">
  660. <term><command>seq</command></term>
  661. <listitem>
  662. <para>Prints a sequence of numbers within a given range and with a
  663. given increment</para>
  664. <indexterm zone="ch-system-coreutils seq">
  665. <primary sortas="b-seq">seq</primary>
  666. </indexterm>
  667. </listitem>
  668. </varlistentry>
  669. <varlistentry id="sha1sum">
  670. <term><command>sha1sum</command></term>
  671. <listitem>
  672. <para>Prints or checks 160-bit Secure Hash Algorithm 1 (SHA1)
  673. checksums</para>
  674. <indexterm zone="ch-system-coreutils sha1sum">
  675. <primary sortas="b-sha1sum">sha1sum</primary>
  676. </indexterm>
  677. </listitem>
  678. </varlistentry>
  679. <varlistentry id="sha224sum">
  680. <term><command>sha224sum</command></term>
  681. <listitem>
  682. <para>Prints or checks 224-bit Secure Hash Algorithm checksums</para>
  683. <indexterm zone="ch-system-coreutils sha224sum">
  684. <primary sortas="b-sha224sum">sha224sum</primary>
  685. </indexterm>
  686. </listitem>
  687. </varlistentry>
  688. <varlistentry id="sha256sum">
  689. <term><command>sha256sum</command></term>
  690. <listitem>
  691. <para>Prints or checks 256-bit Secure Hash Algorithm checksums</para>
  692. <indexterm zone="ch-system-coreutils sha256sum">
  693. <primary sortas="b-sha256sum">sha256sum</primary>
  694. </indexterm>
  695. </listitem>
  696. </varlistentry>
  697. <varlistentry id="sha384sum">
  698. <term><command>sha384sum</command></term>
  699. <listitem>
  700. <para>Prints or checks 384-bit Secure Hash Algorithm checksums</para>
  701. <indexterm zone="ch-system-coreutils sha384sum">
  702. <primary sortas="b-sha384sum">sha384sum</primary>
  703. </indexterm>
  704. </listitem>
  705. </varlistentry>
  706. <varlistentry id="sha512sum">
  707. <term><command>sha512sum</command></term>
  708. <listitem>
  709. <para>Prints or checks 512-bit Secure Hash Algorithm checksums</para>
  710. <indexterm zone="ch-system-coreutils sha512sum">
  711. <primary sortas="b-sha512sum">sha512sum</primary>
  712. </indexterm>
  713. </listitem>
  714. </varlistentry>
  715. <varlistentry id="shred">
  716. <term><command>shred</command></term>
  717. <listitem>
  718. <para>Overwrites the given files repeatedly with complex patterns,
  719. making it difficult to recover the data</para>
  720. <indexterm zone="ch-system-coreutils shred">
  721. <primary sortas="b-shred">shred</primary>
  722. </indexterm>
  723. </listitem>
  724. </varlistentry>
  725. <varlistentry id="shuf">
  726. <term><command>shuf</command></term>
  727. <listitem>
  728. <para>Shuffles lines of text</para>
  729. <indexterm zone="ch-system-coreutils shuf">
  730. <primary sortas="b-shuf">shuf</primary>
  731. </indexterm>
  732. </listitem>
  733. </varlistentry>
  734. <varlistentry id="sleep">
  735. <term><command>sleep</command></term>
  736. <listitem>
  737. <para>Pauses for the given amount of time</para>
  738. <indexterm zone="ch-system-coreutils sleep">
  739. <primary sortas="b-sleep">sleep</primary>
  740. </indexterm>
  741. </listitem>
  742. </varlistentry>
  743. <varlistentry id="sort">
  744. <term><command>sort</command></term>
  745. <listitem>
  746. <para>Sorts the lines from the given files</para>
  747. <indexterm zone="ch-system-coreutils sort">
  748. <primary sortas="b-sort">sort</primary>
  749. </indexterm>
  750. </listitem>
  751. </varlistentry>
  752. <varlistentry id="split">
  753. <term><command>split</command></term>
  754. <listitem>
  755. <para>Splits the given file into pieces, by size or by number of
  756. lines</para>
  757. <indexterm zone="ch-system-coreutils split">
  758. <primary sortas="b-split">split</primary>
  759. </indexterm>
  760. </listitem>
  761. </varlistentry>
  762. <varlistentry id="stat">
  763. <term><command>stat</command></term>
  764. <listitem>
  765. <para>Displays file or filesystem status</para>
  766. <indexterm zone="ch-system-coreutils stat">
  767. <primary sortas="b-stat">stat</primary>
  768. </indexterm>
  769. </listitem>
  770. </varlistentry>
  771. <varlistentry id="stty">
  772. <term><command>stty</command></term>
  773. <listitem>
  774. <para>Sets or reports terminal line settings</para>
  775. <indexterm zone="ch-system-coreutils stty">
  776. <primary sortas="b-stty">stty</primary>
  777. </indexterm>
  778. </listitem>
  779. </varlistentry>
  780. <varlistentry id="sum">
  781. <term><command>sum</command></term>
  782. <listitem>
  783. <para>Prints checksum and block counts for each given file</para>
  784. <indexterm zone="ch-system-coreutils sum">
  785. <primary sortas="b-sum">sum</primary>
  786. </indexterm>
  787. </listitem>
  788. </varlistentry>
  789. <varlistentry id="sync">
  790. <term><command>sync</command></term>
  791. <listitem>
  792. <para>Flushes file system buffers; it forces changed blocks to disk
  793. and updates the super block</para>
  794. <indexterm zone="ch-system-coreutils sync">
  795. <primary sortas="b-sync">sync</primary>
  796. </indexterm>
  797. </listitem>
  798. </varlistentry>
  799. <varlistentry id="tac">
  800. <term><command>tac</command></term>
  801. <listitem>
  802. <para>Concatenates the given files in reverse</para>
  803. <indexterm zone="ch-system-coreutils tac">
  804. <primary sortas="b-tac">tac</primary>
  805. </indexterm>
  806. </listitem>
  807. </varlistentry>
  808. <varlistentry id="tail">
  809. <term><command>tail</command></term>
  810. <listitem>
  811. <para>Prints the last ten lines (or the given number of lines) of each
  812. given file</para>
  813. <indexterm zone="ch-system-coreutils tail">
  814. <primary sortas="b-tail">tail</primary>
  815. </indexterm>
  816. </listitem>
  817. </varlistentry>
  818. <varlistentry id="tee">
  819. <term><command>tee</command></term>
  820. <listitem>
  821. <para>Reads from standard input while writing both to standard output
  822. and to the given files</para>
  823. <indexterm zone="ch-system-coreutils tee">
  824. <primary sortas="b-tee">tee</primary>
  825. </indexterm>
  826. </listitem>
  827. </varlistentry>
  828. <varlistentry id="test">
  829. <term><command>test</command></term>
  830. <listitem>
  831. <para>Compares values and checks file types</para>
  832. <indexterm zone="ch-system-coreutils test">
  833. <primary sortas="b-test">test</primary>
  834. </indexterm>
  835. </listitem>
  836. </varlistentry>
  837. <varlistentry id="touch">
  838. <term><command>touch</command></term>
  839. <listitem>
  840. <para>Changes file timestamps, setting the access and modification
  841. times of the given files to the current time; files that do not exist
  842. are created with zero length</para>
  843. <indexterm zone="ch-system-coreutils touch">
  844. <primary sortas="b-touch">touch</primary>
  845. </indexterm>
  846. </listitem>
  847. </varlistentry>
  848. <varlistentry id="tr">
  849. <term><command>tr</command></term>
  850. <listitem>
  851. <para>Translates, squeezes, and deletes the given characters from
  852. standard input</para>
  853. <indexterm zone="ch-system-coreutils tr">
  854. <primary sortas="b-tr">tr</primary>
  855. </indexterm>
  856. </listitem>
  857. </varlistentry>
  858. <varlistentry id="true">
  859. <term><command>true</command></term>
  860. <listitem>
  861. <para>Does nothing, successfully; it always exits with a status code
  862. indicating success</para>
  863. <indexterm zone="ch-system-coreutils true">
  864. <primary sortas="b-true">true</primary>
  865. </indexterm>
  866. </listitem>
  867. </varlistentry>
  868. <varlistentry id="tsort">
  869. <term><command>tsort</command></term>
  870. <listitem>
  871. <para>Performs a topological sort; it writes a completely ordered list
  872. according to the partial ordering in a given file</para>
  873. <indexterm zone="ch-system-coreutils tsort">
  874. <primary sortas="b-tsort">tsort</primary>
  875. </indexterm>
  876. </listitem>
  877. </varlistentry>
  878. <varlistentry id="tty">
  879. <term><command>tty</command></term>
  880. <listitem>
  881. <para>Reports the file name of the terminal connected to standard
  882. input</para>
  883. <indexterm zone="ch-system-coreutils tty">
  884. <primary sortas="b-tty">tty</primary>
  885. </indexterm>
  886. </listitem>
  887. </varlistentry>
  888. <varlistentry id="uname">
  889. <term><command>uname</command></term>
  890. <listitem>
  891. <para>Reports system information</para>
  892. <indexterm zone="ch-system-coreutils uname">
  893. <primary sortas="b-uname">uname</primary>
  894. </indexterm>
  895. </listitem>
  896. </varlistentry>
  897. <varlistentry id="unexpand">
  898. <term><command>unexpand</command></term>
  899. <listitem>
  900. <para>Converts spaces to tabs</para>
  901. <indexterm zone="ch-system-coreutils unexpand">
  902. <primary sortas="b-unexpand">unexpand</primary>
  903. </indexterm>
  904. </listitem>
  905. </varlistentry>
  906. <varlistentry id="uniq">
  907. <term><command>uniq</command></term>
  908. <listitem>
  909. <para>Discards all but one of successive identical lines</para>
  910. <indexterm zone="ch-system-coreutils uniq">
  911. <primary sortas="b-uniq">uniq</primary>
  912. </indexterm>
  913. </listitem>
  914. </varlistentry>
  915. <varlistentry id="unlink">
  916. <term><command>unlink</command></term>
  917. <listitem>
  918. <para>Removes the given file</para>
  919. <indexterm zone="ch-system-coreutils unlink">
  920. <primary sortas="b-unlink">unlink</primary>
  921. </indexterm>
  922. </listitem>
  923. </varlistentry>
  924. <varlistentry id="users">
  925. <term><command>users</command></term>
  926. <listitem>
  927. <para>Reports the names of the users currently logged on</para>
  928. <indexterm zone="ch-system-coreutils users">
  929. <primary sortas="b-users">users</primary>
  930. </indexterm>
  931. </listitem>
  932. </varlistentry>
  933. <varlistentry id="vdir">
  934. <term><command>vdir</command></term>
  935. <listitem>
  936. <para>Is the same as <command>ls -l</command></para>
  937. <indexterm zone="ch-system-coreutils vdir">
  938. <primary sortas="b-vdir">vdir</primary>
  939. </indexterm>
  940. </listitem>
  941. </varlistentry>
  942. <varlistentry id="wc">
  943. <term><command>wc</command></term>
  944. <listitem>
  945. <para>Reports the number of lines, words, and bytes for each given
  946. file, as well as a total line when more than one file is given</para>
  947. <indexterm zone="ch-system-coreutils wc">
  948. <primary sortas="b-wc">wc</primary>
  949. </indexterm>
  950. </listitem>
  951. </varlistentry>
  952. <varlistentry id="who">
  953. <term><command>who</command></term>
  954. <listitem>
  955. <para>Reports who is logged on</para>
  956. <indexterm zone="ch-system-coreutils who">
  957. <primary sortas="b-who">who</primary>
  958. </indexterm>
  959. </listitem>
  960. </varlistentry>
  961. <varlistentry id="whoami">
  962. <term><command>whoami</command></term>
  963. <listitem>
  964. <para>Reports the user name associated with the current effective
  965. user ID</para>
  966. <indexterm zone="ch-system-coreutils whoami">
  967. <primary sortas="b-whoami">whoami</primary>
  968. </indexterm>
  969. </listitem>
  970. </varlistentry>
  971. <varlistentry id="yes">
  972. <term><command>yes</command></term>
  973. <listitem>
  974. <para>Repeatedly outputs <quote>y</quote> or a given string until
  975. killed</para>
  976. <indexterm zone="ch-system-coreutils yes">
  977. <primary sortas="b-yes">yes</primary>
  978. </indexterm>
  979. </listitem>
  980. </varlistentry>
  981. </variablelist>
  982. </sect2>
  983. </sect1>