coreutils.xml 41 KB

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