coreutils.xml 43 KB

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