coreutils.xml 41 KB

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