coreutils.xml 43 KB

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