coreutils.xml 39 KB

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