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