coreutils.xml 43 KB

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