coreutils.xml 39 KB

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