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