coreutils.xml 42 KB

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