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