coreutils.xml 42 KB

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