coreutils.xml 38 KB

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