coreutils.xml 39 KB

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