coreutils.xml 42 KB

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