coreutils.xml 38 KB

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