coreutils.xml 41 KB

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