coreutils.xml 42 KB

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