coreutils.xml 42 KB

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