coreutils.xml 43 KB

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