coreutils.xml 39 KB

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