coreutils.xml 38 KB

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