coreutils.xml 42 KB

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