coreutils.xml 39 KB

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