coreutils.xml 38 KB

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