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