coreutils.xml 38 KB

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