coreutils.xml 44 KB

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