coreutils.xml 44 KB

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