coreutils.xml 41 KB

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