coreutils.xml 39 KB

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