coreutils.xml 40 KB

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