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