coreutils.xml 43 KB

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