1 --- coreutils-9.1/doc/coreutils.texi.orig 2022-04-15 19:30:07.000000000 +0200
2 +++ coreutils-9.1/doc/coreutils.texi 2022-04-17 14:06:21.550894970 +0200
8 +@dircategory Core utilities:
10 -* Coreutils: (coreutils). Core GNU (file, text, shell) utilities.
11 +* Coreutils: (coreutils). Core GNU (file, text, shell) utilities
12 * Common options: (coreutils)Common options.
13 -* File permissions: (coreutils)File permissions. Access modes.
14 +* File permissions: (coreutils)File permissions. Access modes.
15 * Date input formats: (coreutils)Date input formats.
18 -@c FIXME: the following need documentation
19 -@c * [: (coreutils)[ invocation. File/string tests.
20 -@c * pinky: (coreutils)pinky invocation. FIXME.
22 -@dircategory Individual utilities
24 -* arch: (coreutils)arch invocation. Print machine hardware name.
25 -* b2sum: (coreutils)b2sum invocation. Print or check BLAKE2 digests.
26 -* base32: (coreutils)base32 invocation. Base32 encode/decode data.
27 -* base64: (coreutils)base64 invocation. Base64 encode/decode data.
28 -* basename: (coreutils)basename invocation. Strip directory and suffix.
29 -* basenc: (coreutils)basenc invocation. Encoding/decoding of data.
30 -* cat: (coreutils)cat invocation. Concatenate and write files.
31 -* chcon: (coreutils)chcon invocation. Change SELinux CTX of files.
32 -* chgrp: (coreutils)chgrp invocation. Change file groups.
33 -* chmod: (coreutils)chmod invocation. Change access permissions.
34 -* chown: (coreutils)chown invocation. Change file owners and groups.
35 -* chroot: (coreutils)chroot invocation. Specify the root directory.
36 -* cksum: (coreutils)cksum invocation. Print POSIX CRC checksum.
37 -* comm: (coreutils)comm invocation. Compare sorted files by line.
38 -* cp: (coreutils)cp invocation. Copy files.
39 -* csplit: (coreutils)csplit invocation. Split by context.
40 -* cut: (coreutils)cut invocation. Print selected parts of lines.
41 -* date: (coreutils)date invocation. Print/set system date and time.
42 -* dd: (coreutils)dd invocation. Copy and convert a file.
43 -* df: (coreutils)df invocation. Report file system usage.
44 -* dir: (coreutils)dir invocation. List directories briefly.
45 -* dircolors: (coreutils)dircolors invocation. Color setup for ls.
46 -* dirname: (coreutils)dirname invocation. Strip last file name component.
47 -* du: (coreutils)du invocation. Report file usage.
48 -* echo: (coreutils)echo invocation. Print a line of text.
49 -* env: (coreutils)env invocation. Modify the environment.
50 -* expand: (coreutils)expand invocation. Convert tabs to spaces.
51 -* expr: (coreutils)expr invocation. Evaluate expressions.
52 -* factor: (coreutils)factor invocation. Print prime factors
53 -* false: (coreutils)false invocation. Do nothing, unsuccessfully.
54 -* fmt: (coreutils)fmt invocation. Reformat paragraph text.
55 -* fold: (coreutils)fold invocation. Wrap long input lines.
56 -* groups: (coreutils)groups invocation. Print group names a user is in.
57 -* head: (coreutils)head invocation. Output the first part of files.
58 -* hostid: (coreutils)hostid invocation. Print numeric host identifier.
59 -* hostname: (coreutils)hostname invocation. Print or set system name.
60 -* id: (coreutils)id invocation. Print user identity.
61 -* install: (coreutils)install invocation. Copy files and set attributes.
62 -* join: (coreutils)join invocation. Join lines on a common field.
63 -* kill: (coreutils)kill invocation. Send a signal to processes.
64 -* link: (coreutils)link invocation. Make hard links between files.
65 -* ln: (coreutils)ln invocation. Make links between files.
66 -* logname: (coreutils)logname invocation. Print current login name.
67 -* ls: (coreutils)ls invocation. List directory contents.
68 -* md5sum: (coreutils)md5sum invocation. Print or check MD5 digests.
69 -* mkdir: (coreutils)mkdir invocation. Create directories.
70 -* mkfifo: (coreutils)mkfifo invocation. Create FIFOs (named pipes).
71 -* mknod: (coreutils)mknod invocation. Create special files.
72 -* mktemp: (coreutils)mktemp invocation. Create temporary files.
73 -* mv: (coreutils)mv invocation. Rename files.
74 -* nice: (coreutils)nice invocation. Modify niceness.
75 -* nl: (coreutils)nl invocation. Number lines and write files.
76 -* nohup: (coreutils)nohup invocation. Immunize to hangups.
77 -* nproc: (coreutils)nproc invocation. Print the number of processors.
78 -* numfmt: (coreutils)numfmt invocation. Reformat numbers.
79 -* od: (coreutils)od invocation. Dump files in octal, etc.
80 -* paste: (coreutils)paste invocation. Merge lines of files.
81 -* pathchk: (coreutils)pathchk invocation. Check file name portability.
82 -* pr: (coreutils)pr invocation. Paginate or columnate files.
83 -* printenv: (coreutils)printenv invocation. Print environment variables.
84 -* printf: (coreutils)printf invocation. Format and print data.
85 -* ptx: (coreutils)ptx invocation. Produce permuted indexes.
86 -* pwd: (coreutils)pwd invocation. Print working directory.
87 -* readlink: (coreutils)readlink invocation. Print referent of a symlink.
88 -* realpath: (coreutils)realpath invocation. Print resolved file names.
89 -* rm: (coreutils)rm invocation. Remove files.
90 -* rmdir: (coreutils)rmdir invocation. Remove empty directories.
91 -* runcon: (coreutils)runcon invocation. Run in specified SELinux CTX.
92 -* seq: (coreutils)seq invocation. Print numeric sequences
93 -* sha1sum: (coreutils)sha1sum invocation. Print or check SHA-1 digests.
94 -* sha2: (coreutils)sha2 utilities. Print or check SHA-2 digests.
95 -* shred: (coreutils)shred invocation. Remove files more securely.
96 -* shuf: (coreutils)shuf invocation. Shuffling text files.
97 -* sleep: (coreutils)sleep invocation. Delay for a specified time.
98 -* sort: (coreutils)sort invocation. Sort text files.
99 -* split: (coreutils)split invocation. Split into pieces.
100 -* stat: (coreutils)stat invocation. Report file(system) status.
101 -* stdbuf: (coreutils)stdbuf invocation. Modify stdio buffering.
102 -* stty: (coreutils)stty invocation. Print/change terminal settings.
103 -* sum: (coreutils)sum invocation. Print traditional checksum.
104 -* sync: (coreutils)sync invocation. Sync files to stable storage.
105 -* tac: (coreutils)tac invocation. Reverse files.
106 -* tail: (coreutils)tail invocation. Output the last part of files.
107 -* tee: (coreutils)tee invocation. Redirect to multiple files.
108 -* test: (coreutils)test invocation. File/string tests.
109 -* timeout: (coreutils)timeout invocation. Run with time limit.
110 -* touch: (coreutils)touch invocation. Change file timestamps.
111 -* tr: (coreutils)tr invocation. Translate characters.
112 -* true: (coreutils)true invocation. Do nothing, successfully.
113 -* truncate: (coreutils)truncate invocation. Shrink/extend size of a file.
114 -* tsort: (coreutils)tsort invocation. Topological sort.
115 -* tty: (coreutils)tty invocation. Print terminal name.
116 -* uname: (coreutils)uname invocation. Print system information.
117 -* unexpand: (coreutils)unexpand invocation. Convert spaces to tabs.
118 -* uniq: (coreutils)uniq invocation. Uniquify files.
119 -* unlink: (coreutils)unlink invocation. Removal via unlink(2).
120 -* uptime: (coreutils)uptime invocation. Print uptime and load.
121 -* users: (coreutils)users invocation. Print current user names.
122 -* vdir: (coreutils)vdir invocation. List directories verbosely.
123 -* wc: (coreutils)wc invocation. Line, word, and byte counts.
124 -* who: (coreutils)who invocation. Print who is logged in.
125 -* whoami: (coreutils)whoami invocation. Print effective user ID.
126 -* yes: (coreutils)yes invocation. Print a string indefinitely.
127 +* arch: (coreutils)arch. Print machine hardware name.
128 +* b2sum: (coreutils)b2sum. Print or check BLAKE2 digests.
129 +* base32: (coreutils)base32. Base32 encode/decode data.
130 +* base64: (coreutils)base64. Base64 encode/decode data.
131 +* basename: (coreutils)basename. Strip directory and suffix.
132 +* basenc: (coreutils)basenc. Encoding/decoding of data.
133 +* cat: (coreutils)cat. Concatenate and write files.
134 +* chcon: (coreutils)chcon. Change SELinux CTX of files.
135 +* chgrp: (coreutils)chgrp. Change file groups.
136 +* chmod: (coreutils)chmod. Change access permissions.
137 +* chown: (coreutils)chown. Change file owners and groups.
138 +* chroot: (coreutils)chroot. Specify the root directory.
139 +* cksum: (coreutils)cksum. Print POSIX CRC checksum.
140 +* comm: (coreutils)comm. Compare sorted files by line.
141 +* cp: (coreutils)cp. Copy files.
142 +* csplit: (coreutils)csplit. Split by context.
143 +* cut: (coreutils)cut. Print selected parts of lines.
144 +* date: (coreutils)date. Print/set system date and time.
145 +* dd: (coreutils)dd. Copy and convert a file.
146 +* df: (coreutils)df. Report file system usage.
147 +* dir: (coreutils)dir. List directories briefly.
148 +* dircolors: (coreutils)dircolors. Color setup for ls.
149 +* dirname: (coreutils)dirname. Strip last file name component.
150 +* du: (coreutils)du. Report file usage.
151 +* echo: (coreutils)echo. Print a line of text.
152 +* env: (coreutils)env. Modify the environment.
153 +* expand: (coreutils)expand. Convert tabs to spaces.
154 +* expr: (coreutils)expr. Evaluate expressions.
155 +* factor: (coreutils)factor. Print prime factors
156 +* false: (coreutils)false. Do nothing, unsuccessfully.
157 +* fmt: (coreutils)fmt. Reformat paragraph text.
158 +* fold: (coreutils)fold. Wrap long input lines.
159 +* groups: (coreutils)groups. Print group names a user is in.
160 +* head: (coreutils)head. Output the first part of files.
161 +* hostid: (coreutils)hostid. Print numeric host identifier.
162 +* id: (coreutils)id. Print user identity.
163 +* install: (coreutils)install. Copy files and set attributes.
164 +* join: (coreutils)join. Join lines on a common field.
165 +* link: (coreutils)link. Make hard links between files.
166 +* ln: (coreutils)ln. Make links between files.
167 +* logname: (coreutils)logname. Print current login name.
168 +* ls: (coreutils)ls. List directory contents.
169 +* md5sum: (coreutils)md5sum. Print or check MD5 digests.
170 +* mkdir: (coreutils)mkdir. Create directories.
171 +* mkfifo: (coreutils)mkfifo. Create FIFOs (named pipes).
172 +* mknod: (coreutils)mknod. Create special files.
173 +* mktemp: (coreutils)mktemp. Create temporary files.
174 +* mv: (coreutils)mv. Rename files.
175 +* nice: (coreutils)nice. Modify niceness.
176 +* nl: (coreutils)nl. Number lines and write files.
177 +* nohup: (coreutils)nohup. Immunize to hangups.
178 +* nproc: (coreutils)nproc. Print the number of processors.
179 +* numfmt: (coreutils)numfmt. Reformat numbers.
180 +* od: (coreutils)od. Dump files in octal, etc.
181 +* paste: (coreutils)paste. Merge lines of files.
182 +* pathchk: (coreutils)pathchk. Check file name portability.
183 +* pr: (coreutils)pr. Paginate or columnate files.
184 +* printenv: (coreutils)printenv. Print environment variables.
185 +* printf: (coreutils)printf. Format and print data.
186 +* ptx: (coreutils)ptx. Produce permuted indexes.
187 +* pwd: (coreutils)pwd. Print working directory.
188 +* readlink: (coreutils)readlink. Print referent of a symlink.
189 +* realpath: (coreutils)realpath. Print resolved file names.
190 +* rm: (coreutils)rm. Remove files.
191 +* rmdir: (coreutils)rmdir. Remove empty directories.
192 +* runcon: (coreutils)runcon. Run in specified SELinux CTX.
193 +* seq: (coreutils)seq. Print numeric sequences
194 +* sha1sum: (coreutils)sha1sum. Print or check SHA-1 digests.
195 +* sha2: (coreutils)sha2 utilities. Print or check SHA-2 digests.
196 +* shred: (coreutils)shred. Remove files more securely.
197 +* shuf: (coreutils)shuf. Shuffling text files.
198 +* sleep: (coreutils)sleep. Delay for a specified time.
199 +* sort: (coreutils)sort. Sort text files.
200 +* split: (coreutils)split. Split into pieces.
201 +* stat: (coreutils)stat. Report file(system) status.
202 +* stdbuf: (coreutils)stdbuf. Modify stdio buffering.
203 +* stty: (coreutils)stty. Print/change terminal settings.
204 +* sum: (coreutils)sum. Print traditional checksum.
205 +* sync: (coreutils)sync. Sync files to stable storage.
206 +* tac: (coreutils)tac. Reverse files.
207 +* tail: (coreutils)tail. Output the last part of files.
208 +* tee: (coreutils)tee. Redirect to multiple files.
209 +* test: (coreutils)test. File/string tests.
210 +* timeout: (coreutils)timeout. Run with time limit.
211 +* touch: (coreutils)touch. Change file timestamps.
212 +* tr: (coreutils)tr. Translate characters.
213 +* true: (coreutils)true. Do nothing, successfully.
214 +* truncate: (coreutils)truncate. Shrink/extend size of a file.
215 +* tsort: (coreutils)tsort. Topological sort.
216 +* tty: (coreutils)tty. Print terminal name.
217 +* uname: (coreutils)uname. Print system information.
218 +* unexpand: (coreutils)unexpand. Convert spaces to tabs.
219 +* uniq: (coreutils)uniq. Uniquify files.
220 +* unlink: (coreutils)unlink. Removal via unlink(2).
221 +* users: (coreutils)users. Print current user names.
222 +* vdir: (coreutils)vdir. List directories verbosely.
223 +* wc: (coreutils)wc. Line, word, and byte counts.
224 +* who: (coreutils)who. Print who is logged in.
225 +* whoami: (coreutils)whoami. Print effective user ID.
226 +* yes: (coreutils)yes. Print a string indefinitely.
230 @@ -203,10 +192,9 @@ Free Documentation License''.
231 * File name manipulation:: dirname basename pathchk mktemp realpath
232 * Working context:: pwd stty printenv tty
233 * User information:: id logname whoami groups users who
234 -* System context:: date arch nproc uname hostname hostid uptime
235 +* System context:: date arch nproc uname hostid
236 * SELinux context:: chcon runcon
237 * Modified command invocation:: chroot env nice nohup stdbuf timeout
238 -* Process control:: kill
240 * Numeric operations:: factor numfmt seq
241 * File permissions:: Access modes
242 @@ -238,45 +226,45 @@ Common Options
244 Output of entire files
246 -* cat invocation:: Concatenate and write files
247 -* tac invocation:: Concatenate and write files in reverse
248 -* nl invocation:: Number lines and write files
249 -* od invocation:: Write files in octal or other formats
250 -* base32 invocation:: Transform data into printable data
251 -* base64 invocation:: Transform data into printable data
252 -* basenc invocation:: Transform data into printable data
253 +* cat:: Concatenate and write files
254 +* tac:: Concatenate and write files in reverse
255 +* nl:: Number lines and write files
256 +* od:: Write files in octal or other formats
257 +* base32:: Transform data into printable data
258 +* base64:: Transform data into printable data
259 +* basenc:: Transform data into printable data
261 Formatting file contents
263 -* fmt invocation:: Reformat paragraph text
264 -* pr invocation:: Paginate or columnate files for printing
265 -* fold invocation:: Wrap input lines to fit in specified width
266 +* fmt:: Reformat paragraph text
267 +* pr:: Paginate or columnate files for printing
268 +* fold:: Wrap input lines to fit in specified width
270 Output of parts of files
272 -* head invocation:: Output the first part of files
273 -* tail invocation:: Output the last part of files
274 -* split invocation:: Split a file into fixed-size pieces
275 -* csplit invocation:: Split a file into context-determined pieces
276 +* head:: Output the first part of files
277 +* tail:: Output the last part of files
278 +* split:: Split a file into fixed-size pieces
279 +* csplit:: Split a file into context-determined pieces
283 -* wc invocation:: Print newline, word, and byte counts
284 -* sum invocation:: Print checksum and block counts
285 -* cksum invocation:: Print CRC checksum and byte counts
286 -* b2sum invocation:: Print or check BLAKE2 digests
287 -* md5sum invocation:: Print or check MD5 digests
288 -* sha1sum invocation:: Print or check SHA-1 digests
289 +* wc:: Print newline, word, and byte counts
290 +* sum:: Print checksum and block counts
291 +* cksum:: Print CRC checksum and byte counts
292 +* b2sum:: Print or check BLAKE2 digests
293 +* md5sum:: Print or check MD5 digests
294 +* sha1sum:: Print or check SHA-1 digests
295 * sha2 utilities:: Print or check SHA-2 digests
297 Operating on sorted files
299 -* sort invocation:: Sort text files
300 -* shuf invocation:: Shuffle text files
301 -* uniq invocation:: Uniquify files
302 -* comm invocation:: Compare two sorted files line by line
303 -* ptx invocation:: Produce a permuted index of file contents
304 -* tsort invocation:: Topological sort
305 +* sort:: Sort text files
306 +* shuf:: Shuffle text files
307 +* uniq:: Uniquify files
308 +* comm:: Compare two sorted files line by line
309 +* ptx:: Produce a permuted index of file contents
310 +* tsort:: Topological sort
312 @command{ptx}: Produce permuted indexes
314 @@ -288,15 +276,15 @@ Operating on sorted files
318 -* cut invocation:: Print selected parts of lines
319 -* paste invocation:: Merge lines of files
320 -* join invocation:: Join lines on a common field
321 +* cut:: Print selected parts of lines
322 +* paste:: Merge lines of files
323 +* join:: Join lines on a common field
325 Operating on characters
327 -* tr invocation:: Translate, squeeze, and/or delete characters
328 -* expand invocation:: Convert tabs to spaces
329 -* unexpand invocation:: Convert spaces to tabs
330 +* tr:: Translate, squeeze, and/or delete characters
331 +* expand:: Convert tabs to spaces
332 +* unexpand:: Convert spaces to tabs
334 @command{tr}: Translate, squeeze, and/or delete characters
336 @@ -306,10 +294,10 @@ Operating on characters
340 -* ls invocation:: List directory contents
341 -* dir invocation:: Briefly list directory contents
342 -* vdir invocation:: Verbosely list directory contents
343 -* dircolors invocation:: Color setup for @command{ls}
344 +* ls:: List directory contents
345 +* dir:: Briefly list directory contents
346 +* vdir:: Verbosely list directory contents
347 +* dircolors:: Color setup for @command{ls}
349 @command{ls}: List directory contents
351 @@ -321,51 +309,51 @@ Directory listing
355 -* cp invocation:: Copy files and directories
356 -* dd invocation:: Convert and copy a file
357 -* install invocation:: Copy files and set attributes
358 -* mv invocation:: Move (rename) files
359 -* rm invocation:: Remove files or directories
360 -* shred invocation:: Remove files more securely
361 +* cp:: Copy files and directories
362 +* dd:: Convert and copy a file
363 +* install:: Copy files and set attributes
364 +* mv:: Move (rename) files
365 +* rm:: Remove files or directories
366 +* shred:: Remove files more securely
370 -* link invocation:: Make a hard link via the link syscall
371 -* ln invocation:: Make links between files
372 -* mkdir invocation:: Make directories
373 -* mkfifo invocation:: Make FIFOs (named pipes)
374 -* mknod invocation:: Make block or character special files
375 -* readlink invocation:: Print value of a symlink or canonical file name
376 -* rmdir invocation:: Remove empty directories
377 -* unlink invocation:: Remove files via unlink syscall
378 +* link:: Make a hard link via the link syscall
379 +* ln:: Make links between files
380 +* mkdir:: Make directories
381 +* mkfifo:: Make FIFOs (named pipes)
382 +* mknod:: Make block or character special files
383 +* readlink:: Print value of a symlink or canonical file name
384 +* rmdir:: Remove empty directories
385 +* unlink:: Remove files via unlink syscall
387 Changing file attributes
389 -* chown invocation:: Change file owner and group
390 -* chgrp invocation:: Change group ownership
391 -* chmod invocation:: Change access permissions
392 -* touch invocation:: Change file timestamps
393 +* chown:: Change file owner and group
394 +* chgrp:: Change group ownership
395 +* chmod:: Change access permissions
396 +* touch:: Change file timestamps
400 -* df invocation:: Report file system space usage
401 -* du invocation:: Estimate file space usage
402 -* stat invocation:: Report file or file system status
403 -* sync invocation:: Synchronize cached writes to persistent storage
404 -* truncate invocation:: Shrink or extend the size of a file
405 +* df:: Report file system space usage
406 +* du:: Estimate file space usage
407 +* stat:: Report file or file system status
408 +* sync:: Synchronize cached writes to persistent storage
409 +* truncate:: Shrink or extend the size of a file
413 -* echo invocation:: Print a line of text
414 -* printf invocation:: Format and print data
415 -* yes invocation:: Print a string until interrupted
416 +* echo:: Print a line of text
417 +* printf:: Format and print data
418 +* yes:: Print a string until interrupted
422 -* false invocation:: Do nothing, unsuccessfully
423 -* true invocation:: Do nothing, successfully
424 -* test invocation:: Check file types and compare values
425 -* expr invocation:: Evaluate expressions
426 +* false:: Do nothing, unsuccessfully
427 +* true:: Do nothing, successfully
428 +* test:: Check file types and compare values
429 +* expr:: Evaluate expressions
431 @command{test}: Check file types and compare values
433 @@ -384,22 +372,22 @@ Conditions
437 -* tee invocation:: Redirect output to multiple files or processes
438 +* tee:: Redirect output to multiple files or processes
440 File name manipulation
442 -* basename invocation:: Strip directory and suffix from a file name
443 -* dirname invocation:: Strip last file name component
444 -* pathchk invocation:: Check file name validity and portability
445 -* mktemp invocation:: Create temporary file or directory
446 -* realpath invocation:: Print resolved file names
447 +* basename:: Strip directory and suffix from a file name
448 +* dirname:: Strip last file name component
449 +* pathchk:: Check file name validity and portability
450 +* mktemp:: Create temporary file or directory
451 +* realpath:: Print resolved file names
455 -* pwd invocation:: Print working directory
456 -* stty invocation:: Print or change terminal characteristics
457 -* printenv invocation:: Print all or some environment variables
458 -* tty invocation:: Print file name of terminal on standard input
459 +* pwd:: Print working directory
460 +* stty:: Print or change terminal characteristics
461 +* printenv:: Print all or some environment variables
462 +* tty:: Print file name of terminal on standard input
464 @command{stty}: Print or change terminal characteristics
466 @@ -413,22 +401,20 @@ Working context
470 -* id invocation:: Print user identity
471 -* logname invocation:: Print current login name
472 -* whoami invocation:: Print effective user ID
473 -* groups invocation:: Print group names a user is in
474 -* users invocation:: Print login names of users currently logged in
475 -* who invocation:: Print who is currently logged in
476 +* id:: Print user identity
477 +* logname:: Print current login name
478 +* whoami:: Print effective user ID
479 +* groups:: Print group names a user is in
480 +* users:: Print login names of users currently logged in
481 +* who:: Print who is currently logged in
485 -* arch invocation:: Print machine hardware name
486 -* date invocation:: Print or set system date and time
487 -* nproc invocation:: Print the number of processors
488 -* uname invocation:: Print system information
489 -* hostname invocation:: Print or set system name
490 -* hostid invocation:: Print numeric host identifier
491 -* uptime invocation:: Print system uptime and load
492 +* arch:: Print machine hardware name
493 +* date:: Print or set system date and time
494 +* nproc:: Print the number of processors
495 +* uname:: Print system information
496 +* hostid:: Print numeric host identifier
498 @command{date}: Print or set system date and time
500 @@ -443,31 +429,27 @@ System context
504 -* chcon invocation:: Change SELinux context of file
505 -* runcon invocation:: Run a command in specified SELinux context
506 +* chcon:: Change SELinux context of file
507 +* runcon:: Run a command in specified SELinux context
509 Modified command invocation
511 -* chroot invocation:: Run a command with a different root directory
512 -* env invocation:: Run a command in a modified environment
513 -* nice invocation:: Run a command with modified niceness
514 -* nohup invocation:: Run a command immune to hangups
515 -* stdbuf invocation:: Run a command with modified I/O buffering
516 -* timeout invocation:: Run a command with a time limit
520 -* kill invocation:: Sending a signal to processes.
521 +* chroot:: Run a command with a different root directory
522 +* env:: Run a command in a modified environment
523 +* nice:: Run a command with modified niceness
524 +* nohup:: Run a command immune to hangups
525 +* stdbuf:: Run a command with modified I/O buffering
526 +* timeout:: Run a command with a time limit
530 -* sleep invocation:: Delay for a specified time
531 +* sleep:: Delay for a specified time
535 -* factor invocation:: Print prime factors
536 -* numfmt invocation:: Reformat numbers
537 -* seq invocation:: Print numeric sequences
538 +* factor:: Print prime factors
539 +* numfmt:: Reformat numbers
540 +* seq:: Print numeric sequences
544 @@ -1597,16 +1579,16 @@ These commands read and write entire fil
548 -* cat invocation:: Concatenate and write files.
549 -* tac invocation:: Concatenate and write files in reverse.
550 -* nl invocation:: Number lines and write files.
551 -* od invocation:: Write files in octal or other formats.
552 -* base32 invocation:: Transform data into printable data.
553 -* base64 invocation:: Transform data into printable data.
554 -* basenc invocation:: Transform data into printable data.
555 +* cat:: Concatenate and write files.
556 +* tac:: Concatenate and write files in reverse.
557 +* nl:: Number lines and write files.
558 +* od:: Write files in octal or other formats.
559 +* base32:: Transform data into printable data.
560 +* base64:: Transform data into printable data.
561 +* basenc:: Transform data into printable data.
564 -@node cat invocation
566 @section @command{cat}: Concatenate and write files
569 @@ -1708,7 +1690,7 @@ cat
573 -@node tac invocation
575 @section @command{tac}: Concatenate and write files in reverse
578 @@ -1766,7 +1748,7 @@ tac -r -s 'x\|[^x]'
584 @section @command{nl}: Number lines and write files
587 @@ -1934,7 +1916,7 @@ Use @var{number} characters for line num
593 @section @command{od}: Write files in octal or other formats
596 @@ -2200,7 +2182,7 @@ address.
600 -@node base32 invocation
602 @section @command{base32}: Transform data into printable data
605 @@ -2210,10 +2192,10 @@ address.
606 into (or from) base32 encoded form. The base32 encoded form uses
607 printable ASCII characters to represent binary data.
608 The usage and options of this command are precisely the
609 -same as for @command{base64}. @xref{base64 invocation}.
610 +same as for @command{base64}. @xref{base64}.
613 -@node base64 invocation
615 @section @command{base64}: Transform data into printable data
618 @@ -2273,7 +2255,7 @@ to permit distorted data to be decoded.
622 -@node basenc invocation
624 @section @command{basenc}: Transform data into printable data
627 @@ -2294,7 +2276,7 @@ The @var{encoding} argument is required.
628 @command{basenc} reads from standard input.
629 The @option{-w/--wrap},@option{-i/--ignore-garbage},
630 @option{-d/--decode} options of this command are precisely the same as
631 -for @command{base64}. @xref{base64 invocation}.
632 +for @command{base64}. @xref{base64}.
635 Supported @var{encoding}s are:
636 @@ -2409,13 +2391,13 @@ $ printf 01010100 | basenc --base2lsbf -
637 These commands reformat the contents of files.
640 -* fmt invocation:: Reformat paragraph text.
641 -* pr invocation:: Paginate or columnate files for printing.
642 -* fold invocation:: Wrap input lines to fit in specified width.
643 +* fmt:: Reformat paragraph text.
644 +* pr:: Paginate or columnate files for printing.
645 +* fold:: Wrap input lines to fit in specified width.
649 -@node fmt invocation
651 @section @command{fmt}: Reformat paragraph text
654 @@ -2519,7 +2501,7 @@ leaving the code unchanged.
660 @section @command{pr}: Paginate or columnate files for printing
663 @@ -2629,7 +2611,7 @@ Double space the output.
665 @cindex formatting times
666 Format header dates using @var{format}, using the same conventions as
667 -for the command @samp{date +@var{format}}. @xref{date invocation}.
668 +for the command @samp{date +@var{format}}. @xref{date}.
669 Except for directives, which start with
670 @samp{%}, characters in @var{format} are printed unchanged. You can use
671 this option to specify an arbitrary string in place of the header date,
672 @@ -2859,7 +2841,7 @@ line is never truncated.
676 -@node fold invocation
678 @section @command{fold}: Wrap input lines to fit in specified width
681 @@ -2926,13 +2908,13 @@ instead.
682 These commands output pieces of the input.
685 -* head invocation:: Output the first part of files.
686 -* tail invocation:: Output the last part of files.
687 -* split invocation:: Split a file into pieces.
688 -* csplit invocation:: Split a file into context-determined pieces.
689 +* head:: Output the first part of files.
690 +* tail:: Output the last part of files.
691 +* split:: Split a file into pieces.
692 +* csplit:: Split a file into context-determined pieces.
695 -@node head invocation
697 @section @command{head}: Output the first part of files
700 @@ -3011,7 +2993,7 @@ avoid @command{head}, e.g., by using @sa
704 -@node tail invocation
706 @section @command{tail}: Output the last part of files
709 @@ -3262,7 +3244,7 @@ mean either @samp{tail ./+4} or @samp{ta
713 -@node split invocation
715 @section @command{split}: Split a file into pieces.
718 @@ -3517,7 +3499,7 @@ $ seq 100 > k; split -nl/7/33 k
722 -@node csplit invocation
724 @section @command{csplit}: Split a file into context-determined pieces
727 @@ -3737,17 +3719,17 @@ These commands generate just a few numbe
731 -* wc invocation:: Print newline, word, and byte counts.
732 -* sum invocation:: Print checksum and block counts.
733 -* cksum invocation:: Print CRC checksum and byte counts.
734 -* b2sum invocation:: Print or check BLAKE2 digests.
735 -* md5sum invocation:: Print or check MD5 digests.
736 -* sha1sum invocation:: Print or check SHA-1 digests.
737 +* wc:: Print newline, word, and byte counts.
738 +* sum:: Print checksum and block counts.
739 +* cksum:: Print CRC checksum and byte counts.
740 +* b2sum:: Print or check BLAKE2 digests.
741 +* md5sum:: Print or check MD5 digests.
742 +* sha1sum:: Print or check SHA-1 digests.
743 * sha2 utilities:: Print or check SHA-2 digests.
749 @section @command{wc}: Print newline, word, and byte counts
752 @@ -3873,7 +3855,7 @@ find . -name '*.[ch]' -print0 |
756 -@node sum invocation
758 @section @command{sum}: Print checksum and block counts
761 @@ -3922,7 +3904,7 @@ next section) is preferable in new appli
765 -@node cksum invocation
767 @section @command{cksum}: Print and verify file checksums
770 @@ -3954,7 +3936,7 @@ for each file along with the number of b
771 and the file name unless no arguments were given.
773 The same usage and options as the @command{b2sum}
774 -command are supported. @xref{b2sum invocation}.
775 +command are supported. @xref{b2sum}.
776 In addition @command{cksum} supports the following options.
779 @@ -3997,11 +3979,11 @@ This format has the checksum at the star
780 more amenable to further processing by other utilities,
781 especially in combination with the @option{--zero} option.
782 Note this does not identify the digest algorithm used for the checksum.
783 -@xref{md5sum invocation} for details of this format.
784 +@xref{md5sum} for details of this format.
788 -@node b2sum invocation
790 @section @command{b2sum}: Print or check BLAKE2 digests
793 @@ -4013,7 +3995,7 @@ Note this does not identify the digest a
795 @command{b2sum} computes a 512-bit checksum for each specified
796 @var{file}. The same usage and options as the @command{md5sum}
797 -command are supported. @xref{md5sum invocation}.
798 +command are supported. @xref{md5sum}.
799 In addition @command{b2sum} supports the following options.
802 @@ -4028,7 +4010,7 @@ This option is ignored when @option{--ch
803 as the length is automatically determined when checking.
806 -@node md5sum invocation
808 @section @command{md5sum}: Print or check MD5 digests
811 @@ -4051,7 +4033,7 @@ fingerprint is considered infeasible at
812 to modify certain files, including digital certificates, so that they
813 appear valid when signed with an \hash\ digest. For more secure hashes,
814 consider using SHA-2, or the newer @command{b2sum} command.
815 -@xref{sha2 utilities}. @xref{b2sum invocation}.
816 +@xref{sha2 utilities}. @xref{b2sum}.
820 @@ -4209,7 +4191,7 @@ Also file name escaping is not used.
824 -@node sha1sum invocation
826 @section @command{sha1sum}: Print or check SHA-1 digests
829 @@ -4221,7 +4203,7 @@ Also file name escaping is not used.
831 @command{sha1sum} computes a 160-bit checksum for each specified
832 @var{file}. The usage and options of this command are precisely the
833 -same as for @command{md5sum}. @xref{md5sum invocation}.
834 +same as for @command{md5sum}. @xref{md5sum}.
838 @@ -4257,7 +4239,7 @@ various lengths (respectively 224, 256,
839 collectively known as the SHA-2 hashes. The usage and options of
840 these commands are precisely the same as for @command{md5sum}
841 and @command{sha1sum}.
842 -@xref{md5sum invocation}.
846 @node Operating on sorted files
847 @@ -4269,16 +4251,16 @@ and @command{sha1sum}.
848 These commands work with (or produce) sorted files.
851 -* sort invocation:: Sort text files.
852 -* shuf invocation:: Shuffle text files.
853 -* uniq invocation:: Uniquify files.
854 -* comm invocation:: Compare two sorted files line by line.
855 -* ptx invocation:: Produce a permuted index of file contents.
856 -* tsort invocation:: Topological sort.
857 +* sort:: Sort text files.
858 +* shuf:: Shuffle text files.
859 +* uniq:: Uniquify files.
860 +* comm:: Compare two sorted files line by line.
861 +* ptx:: Produce a permuted index of file contents.
862 +* tsort:: Topological sort.
866 -@node sort invocation
868 @section @command{sort}: Sort text files
871 @@ -4574,7 +4556,7 @@ appear earlier in the output instead of
872 Sort by hashing the input keys and then sorting the hash values.
873 Choose the hash function at random, ensuring that it is free of
874 collisions so that differing keys have differing hash values. This is
875 -like a random permutation of the inputs (@pxref{shuf invocation}),
876 +like a random permutation of the inputs (@pxref{shuf}),
877 except that keys with the same value sort together.
879 If multiple random sort fields are specified, the same random hash
880 @@ -4772,7 +4754,7 @@ Set the number of sorts run in parallel
881 @var{n} is set to the number of available processors, but limited
882 to 8, as there are diminishing performance gains after that.
883 Note also that using @var{n} threads increases the memory usage by
884 -a factor of log @var{n}. Also see @ref{nproc invocation}.
885 +a factor of log @var{n}. Also see @ref{nproc}.
889 @@ -4790,7 +4772,7 @@ The commands @code{sort -u} and @code{so
890 this equivalence does not extend to arbitrary @command{sort} options.
891 For example, @code{sort -n -u} inspects only the value of the initial
892 numeric string when checking for uniqueness, whereas @code{sort -n |
893 -uniq} inspects the entire line. @xref{uniq invocation}.
894 +uniq} inspects the entire line. @xref{uniq}.
897 @macro newlineFieldSeparator
898 @@ -5003,7 +4985,7 @@ ls */* | sort -t / -k 1,1R -k 2,2
902 -@node shuf invocation
904 @section @command{shuf}: Shuffling text
907 @@ -5159,7 +5141,7 @@ shuf -r -n 100 -e Head Tail
911 -@node uniq invocation
913 @section @command{uniq}: Uniquify files
916 @@ -5181,7 +5163,7 @@ lines that are not repeated, or all repe
917 The input need not be sorted, but repeated input lines are detected
918 only if they are adjacent. If you want to discard non-adjacent
919 duplicate lines, perhaps you want to use @code{sort -u}.
920 -@xref{sort invocation}.
924 Comparisons honor the rules specified by the @env{LC_COLLATE}
925 @@ -5346,7 +5328,7 @@ compared.
929 -@node comm invocation
931 @section @command{comm}: Compare two sorted files line by line
934 @@ -5461,7 +5443,7 @@ $ comm -12 file1 file2 | wc -l # numb
938 -@node ptx invocation
940 @section @command{ptx}: Produce permuted indexes
943 @@ -5951,7 +5933,7 @@ allowed with System V @command{ptx}.
947 -@node tsort invocation
949 @section @command{tsort}: Topological sort
952 @@ -6113,13 +6095,13 @@ in different ways.
953 @chapter Operating on fields
956 -* cut invocation:: Print selected parts of lines.
957 -* paste invocation:: Merge lines of files.
958 -* join invocation:: Join lines on a common field.
959 +* cut:: Print selected parts of lines.
960 +* paste:: Merge lines of files.
961 +* join:: Join lines on a common field.
965 -@node cut invocation
967 @section @command{cut}: Print selected parts of lines
970 @@ -6244,7 +6226,7 @@ many fields and want to print all but a
974 -@node paste invocation
976 @section @command{paste}: Merge lines of files
979 @@ -6342,7 +6324,7 @@ $ paste -d '%_' num2 let3 num2
983 -@node join invocation
985 @section @command{join}: Join lines on a common field
988 @@ -6874,13 +6856,13 @@ entire lines as the key.
989 These commands operate on individual characters.
992 -* tr invocation:: Translate, squeeze, and/or delete characters.
993 -* expand invocation:: Convert tabs to spaces.
994 -* unexpand invocation:: Convert spaces to tabs.
995 +* tr:: Translate, squeeze, and/or delete characters.
996 +* expand:: Convert tabs to spaces.
997 +* unexpand:: Convert spaces to tabs.
1001 -@node tr invocation
1003 @section @command{tr}: Translate, squeeze, and/or delete characters
1006 @@ -7303,7 +7285,7 @@ tr -d -- -axM
1010 -@node expand invocation
1012 @section @command{expand}: Convert tabs to spaces
1015 @@ -7372,7 +7354,7 @@ characters) on each line to spaces.
1019 -@node unexpand invocation
1021 @section @command{unexpand}: Convert spaces to tabs
1024 @@ -7435,14 +7417,14 @@ This chapter describes the @command{ls}
1025 and @command{vdir}, which list information about files.
1028 -* ls invocation:: List directory contents.
1029 -* dir invocation:: Briefly ls.
1030 -* vdir invocation:: Verbosely ls.
1031 -* dircolors invocation:: Color setup for ls, etc.
1032 +* ls:: List directory contents.
1033 +* dir:: Briefly ls.
1034 +* vdir:: Verbosely ls.
1035 +* dircolors:: Color setup for ls, etc.
1039 -@node ls invocation
1041 @section @command{ls}: List directory contents
1044 @@ -8337,7 +8319,7 @@ be one of the following:
1047 List timestamps using @var{format}, where @var{format} is interpreted
1048 -like the format argument of @command{date} (@pxref{date invocation}).
1049 +like the format argument of @command{date} (@pxref{date}).
1050 For example, @option{--time-style="+%Y-%m-%d %H:%M:%S"} causes
1051 @command{ls} to list timestamps like @samp{2020-03-30 23:45:56}. As
1052 with @command{date}, @var{format}'s interpretation is affected by the
1053 @@ -8538,7 +8520,7 @@ This is the default unless the output is
1057 -@node dir invocation
1059 @section @command{dir}: Briefly list directory contents
1062 @@ -8548,10 +8530,10 @@ This is the default unless the output is
1063 -b}; that is, by default files are listed in columns, sorted vertically,
1064 and special characters are represented by backslash escape sequences.
1066 -@xref{ls invocation, @command{ls}}.
1067 +@xref{ls, @command{ls}}.
1070 -@node vdir invocation
1072 @section @command{vdir}: Verbosely list directory contents
1075 @@ -8561,9 +8543,9 @@ and special characters are represented b
1076 -b}; that is, by default files are listed in long format and special
1077 characters are represented by backslash escape sequences.
1079 -@xref{ls invocation, @command{ls}}.
1080 +@xref{ls, @command{ls}}.
1082 -@node dircolors invocation
1084 @section @command{dircolors}: Color setup for @command{ls}
1087 @@ -8656,16 +8638,16 @@ This chapter describes the commands for
1088 copying, moving (renaming), and deleting (removing).
1091 -* cp invocation:: Copy files.
1092 -* dd invocation:: Convert and copy a file.
1093 -* install invocation:: Copy files and set attributes.
1094 -* mv invocation:: Move (rename) files.
1095 -* rm invocation:: Remove files or directories.
1096 -* shred invocation:: Remove files more securely.
1098 +* dd:: Convert and copy a file.
1099 +* install:: Copy files and set attributes.
1100 +* mv:: Move (rename) files.
1101 +* rm:: Remove files or directories.
1102 +* shred:: Remove files more securely.
1106 -@node cp invocation
1108 @section @command{cp}: Copy files and directories
1111 @@ -9160,7 +9142,7 @@ option, and overrides the @option{--pres
1115 -@node dd invocation
1117 @section @command{dd}: Convert and copy a file
1120 @@ -9740,7 +9722,7 @@ environment variable is set.
1124 -@node install invocation
1126 @section @command{install}: Copy files and set attributes
1129 @@ -9922,7 +9904,7 @@ This option is mutually exclusive with t
1133 -@node mv invocation
1135 @section @command{mv}: Move (rename) files
1138 @@ -10068,7 +10050,7 @@ to the system default type for destinati
1142 -@node rm invocation
1144 @section @command{rm}: Remove files or directories
1147 @@ -10234,7 +10216,7 @@ predates the development of the @code{ge
1151 -@node shred invocation
1153 @section @command{shred}: Remove files more securely
1156 @@ -10244,7 +10226,7 @@ predates the development of the @code{ge
1157 @command{shred} overwrites devices or files, to help prevent even
1158 extensive forensics from recovering the data.
1160 -Ordinarily when you remove a file (@pxref{rm invocation}), its data
1161 +Ordinarily when you remove a file (@pxref{rm}), its data
1162 and metadata are not actually destroyed. Only the file's directory
1163 entry is removed, and the file's storage is reclaimed only when no
1164 process has the file open and no other directory entry links to the
1165 @@ -10531,18 +10513,18 @@ Besides directories, other special file
1166 (FIFOs), symbolic links, sockets, and so-called @dfn{special files}.
1169 -* link invocation:: Make a hard link via the link syscall
1170 -* ln invocation:: Make links between files.
1171 -* mkdir invocation:: Make directories.
1172 -* mkfifo invocation:: Make FIFOs (named pipes).
1173 -* mknod invocation:: Make block or character special files.
1174 -* readlink invocation:: Print value of a symlink or canonical file name.
1175 -* rmdir invocation:: Remove empty directories.
1176 -* unlink invocation:: Remove files via the unlink syscall
1177 +* link:: Make a hard link via the link syscall
1178 +* ln:: Make links between files.
1179 +* mkdir:: Make directories.
1180 +* mkfifo:: Make FIFOs (named pipes).
1181 +* mknod:: Make block or character special files.
1182 +* readlink:: Print value of a symlink or canonical file name.
1183 +* rmdir:: Remove empty directories.
1184 +* unlink:: Remove files via the unlink syscall
1188 -@node link invocation
1190 @section @command{link}: Make a hard link via the link syscall
1193 @@ -10555,7 +10537,7 @@ It is a minimalist interface to the syst
1194 @code{link} function. @xref{Hard Links, , , libc,
1195 The GNU C Library Reference Manual}.
1196 It avoids the bells and whistles of the more commonly-used
1197 -@command{ln} command (@pxref{ln invocation}).
1198 +@command{ln} command (@pxref{ln}).
1202 @@ -10581,7 +10563,7 @@ to specify which behavior is desired.
1206 -@node ln invocation
1208 @section @command{ln}: Make links between files
1211 @@ -10768,7 +10750,7 @@ ln -srv /a/file /tmp
1212 Relative symbolic links are generated based on their canonicalized
1213 containing directory, and canonicalized targets. I.e., all symbolic
1214 links in these file names will be resolved.
1215 -@xref{realpath invocation}, which gives greater control
1216 +@xref{realpath}, which gives greater control
1217 over relative file name generation, as demonstrated in the following example:
1220 @@ -10845,7 +10827,7 @@ ln -s ../adir/afile yetanotherfile
1224 -@node mkdir invocation
1226 @section @command{mkdir}: Make directories
1229 @@ -10923,7 +10905,7 @@ Print a message for each created directo
1233 -@node mkfifo invocation
1235 @section @command{mkfifo}: Make FIFOs (named pipes)
1238 @@ -10964,7 +10946,7 @@ permission bits. @xref{File permissions
1242 -@node mknod invocation
1244 @section @command{mknod}: Make block or character special files
1247 @@ -11041,7 +11023,7 @@ Set the mode of created files to @var{mo
1251 -@node readlink invocation
1253 @section @command{readlink}: Print value of a symlink or canonical file name
1256 @@ -11065,7 +11047,7 @@ of a symbolic link, it produces no outpu
1257 @command{readlink} outputs the absolute name of the given files which contain
1258 no @file{.}, @file{..} components nor any repeated separators
1259 (@file{/}) or symbolic links. Note the @command{realpath} command is the
1260 -preferred command to use for canonicalization. @xref{realpath invocation}.
1261 +preferred command to use for canonicalization. @xref{realpath}.
1265 @@ -11140,7 +11122,7 @@ The @command{realpath} command without o
1269 -@node rmdir invocation
1271 @section @command{rmdir}: Remove empty directories
1274 @@ -11188,7 +11170,7 @@ Give a diagnostic for each successful re
1278 -@xref{rm invocation}, for how to remove non-empty directories recursively.
1279 +@xref{rm}, for how to remove non-empty directories recursively.
1281 To remove all empty directories under @var{dirname}, including
1282 directories that become empty because other directories are removed,
1283 @@ -11205,7 +11187,7 @@ find @var{dirname} -depth -type d -exec
1287 -@node unlink invocation
1289 @section @command{unlink}: Remove files via the unlink syscall
1292 @@ -11216,7 +11198,7 @@ It is a minimalist interface to the syst
1293 @code{unlink} function. @xref{Deleting Files, , , libc,
1294 The GNU C Library Reference Manual}. Synopsis:
1295 It avoids the bells and whistles of the more commonly-used
1296 -@command{rm} command (@pxref{rm invocation}).
1297 +@command{rm} command (@pxref{rm}).
1300 unlink @var{filename}
1301 @@ -11250,14 +11232,14 @@ timestamps, and other information. Coll
1302 These commands change file attributes.
1305 -* chown invocation:: Change file owners and groups.
1306 -* chgrp invocation:: Change file groups.
1307 -* chmod invocation:: Change access permissions.
1308 -* touch invocation:: Change file timestamps.
1309 +* chown:: Change file owners and groups.
1310 +* chgrp:: Change file groups.
1311 +* chmod:: Change access permissions.
1312 +* touch:: Change file timestamps.
1316 -@node chown invocation
1318 @section @command{chown}: Change file owner and group
1321 @@ -11485,7 +11467,7 @@ chown -hR root /u
1325 -@node chgrp invocation
1327 @section @command{chgrp}: Change group ownership
1330 @@ -11494,7 +11476,7 @@ chown -hR root /u
1332 @command{chgrp} changes the group ownership of each given @var{file}
1333 to @var{group} (which can be either a group name or a numeric group ID)
1334 -or to the group of an existing reference file. @xref{chown invocation}.
1335 +or to the group of an existing reference file. @xref{chown}.
1339 @@ -11613,7 +11595,7 @@ chgrp -hR staff /u
1343 -@node chmod invocation
1345 @section @command{chmod}: Change access permissions
1348 @@ -11735,7 +11717,7 @@ chmod -R a=,+rwX dir
1352 -@node touch invocation
1354 @section @command{touch}: Change file timestamps
1357 @@ -11910,15 +11892,15 @@ how much storage is in use or available,
1358 file status information, and write buffers to file systems.
1361 -* df invocation:: Report file system space usage.
1362 -* du invocation:: Estimate file space usage.
1363 -* stat invocation:: Report file or file system status.
1364 -* sync invocation:: Synchronize cached writes to persistent storage.
1365 -* truncate invocation:: Shrink or extend the size of a file.
1366 +* df:: Report file system space usage.
1367 +* du:: Estimate file space usage.
1368 +* stat:: Report file or file system status.
1369 +* sync:: Synchronize cached writes to persistent storage.
1370 +* truncate:: Shrink or extend the size of a file.
1374 -@node df invocation
1376 @section @command{df}: Report file system space usage
1379 @@ -12226,7 +12208,7 @@ be read and one or more of the options @
1380 or @option{-x} is used together with a file name argument.
1383 -@node du invocation
1385 @section @command{du}: Estimate file space usage
1388 @@ -12484,7 +12466,7 @@ be one of the following:
1391 List timestamps using @var{format}, where @var{format} is interpreted
1392 -like the format argument of @command{date} (@pxref{date invocation}).
1393 +like the format argument of @command{date} (@pxref{date}).
1394 For example, @option{--time-style="+%Y-%m-%d %H:%M:%S"} causes
1395 @command{du} to list timestamps like @samp{2020-07-21 23:45:56}. As
1396 with @command{date}, @var{format}'s interpretation is affected by the
1397 @@ -12552,7 +12534,7 @@ in HP-UX; it also affects the HP-UX @com
1401 -@node stat invocation
1403 @section @command{stat}: Report file or file system status
1406 @@ -12794,7 +12776,7 @@ with @env{TZ}, libc, The GNU C Library R
1410 -@node sync invocation
1412 @section @command{sync}: Synchronize cached writes to persistent storage
1415 @@ -12854,7 +12836,7 @@ write barriers, than a global sync(2) us
1419 -@node truncate invocation
1421 @section @command{truncate}: Shrink or extend the size of a file
1424 @@ -12931,13 +12913,13 @@ the size of each @var{file} based on its
1425 This section describes commands that display text strings.
1428 -* echo invocation:: Print a line of text.
1429 -* printf invocation:: Format and print data.
1430 -* yes invocation:: Print a string until interrupted.
1431 +* echo:: Print a line of text.
1432 +* printf:: Format and print data.
1433 +* yes:: Print a string until interrupted.
1437 -@node echo invocation
1439 @section @command{echo}: Print a line of text
1442 @@ -12960,7 +12942,7 @@ strings cannot be passed to @command{ech
1443 It is therefore not advisable to use @command{echo} for printing unknown or
1444 variable arguments. The @command{printf} command is recommended as a more
1445 portable and flexible replacement for tasks historically performed by
1446 -@command{echo}. @xref{printf invocation}.
1447 +@command{echo}. @xref{printf}.
1449 The program accepts the following options. Also see @ref{Common options}.
1450 Options must precede operands, and the normally-special argument
1451 @@ -13035,12 +13017,12 @@ POSIX does not require support for any o
1452 that the behavior of @command{echo} is implementation-defined if any
1453 @var{string} contains a backslash or if the first argument is @option{-n}.
1454 Portable programs should use the @command{printf} command instead.
1455 -@xref{printf invocation}.
1461 -@node printf invocation
1463 @section @command{printf}: Format and print data
1466 @@ -13202,7 +13184,7 @@ $ recode BIG5..JAVA < sample.txt \
1470 -@node yes invocation
1472 @section @command{yes}: Print a string until interrupted
1475 @@ -13233,14 +13215,14 @@ condition of shell @code{if} statements,
1479 -* false invocation:: Do nothing, unsuccessfully.
1480 -* true invocation:: Do nothing, successfully.
1481 -* test invocation:: Check file types and compare values.
1482 -* expr invocation:: Evaluate expressions.
1483 +* false:: Do nothing, unsuccessfully.
1484 +* true:: Do nothing, successfully.
1485 +* test:: Check file types and compare values.
1486 +* expr:: Evaluate expressions.
1490 -@node false invocation
1492 @section @command{false}: Do nothing, unsuccessfully
1495 @@ -13270,7 +13252,7 @@ Portable programs should not assume that
1499 -@node true invocation
1501 @section @command{true}: Do nothing, successfully
1504 @@ -13306,7 +13288,7 @@ This version of @command{true} is implem
1505 more secure and faster than a shell script implementation, and may safely
1506 be used as a dummy shell for the purpose of disabling accounts.
1508 -@node test invocation
1510 @section @command{test}: Check file types and compare values
1513 @@ -13677,7 +13659,7 @@ True if either @var{expr1} or @var{expr2
1517 -@node expr invocation
1519 @section @command{expr}: Evaluate expressions
1522 @@ -13954,11 +13936,11 @@ useful redirection is performed by a sep
1523 it's described here.
1526 -* tee invocation:: Redirect output to multiple files or processes.
1527 +* tee:: Redirect output to multiple files or processes.
1531 -@node tee invocation
1533 @section @command{tee}: Redirect output to multiple files or processes
1536 @@ -14166,15 +14148,15 @@ tar chof - "$tardir" \
1537 This section describes commands that manipulate file names.
1540 -* basename invocation:: Strip directory and suffix from a file name.
1541 -* dirname invocation:: Strip last file name component.
1542 -* pathchk invocation:: Check file name validity and portability.
1543 -* mktemp invocation:: Create temporary file or directory.
1544 -* realpath invocation:: Print resolved file names.
1545 +* basename:: Strip directory and suffix from a file name.
1546 +* dirname:: Strip last file name component.
1547 +* pathchk:: Check file name validity and portability.
1548 +* mktemp:: Create temporary file or directory.
1549 +* realpath:: Print resolved file names.
1553 -@node basename invocation
1555 @section @command{basename}: Strip directory and suffix from a file name
1558 @@ -14256,7 +14238,7 @@ basename -a -s .h include/stdio.h includ
1562 -@node dirname invocation
1564 @section @command{dirname}: Strip last file name component
1567 @@ -14309,7 +14291,7 @@ dirname stdio.h
1571 -@node pathchk invocation
1573 @section @command{pathchk}: Check file name validity and portability
1576 @@ -14385,7 +14367,7 @@ Exit status:
1580 -@node mktemp invocation
1582 @section @command{mktemp}: Create temporary file or directory
1585 @@ -14560,7 +14542,7 @@ Exit status:
1589 -@node realpath invocation
1591 @section @command{realpath}: Print the resolved file name.
1594 @@ -14752,14 +14734,14 @@ which you are working: the current direc
1595 so forth. See also the user-related commands in the next section.
1598 -* pwd invocation:: Print working directory.
1599 -* stty invocation:: Print or change terminal characteristics.
1600 -* printenv invocation:: Print environment variables.
1601 -* tty invocation:: Print file name of terminal on standard input.
1602 +* pwd:: Print working directory.
1603 +* stty:: Print or change terminal characteristics.
1604 +* printenv:: Print environment variables.
1605 +* tty:: Print file name of terminal on standard input.
1609 -@node pwd invocation
1611 @section @command{pwd}: Print working directory
1614 @@ -14806,7 +14788,7 @@ environment variable is set.
1618 -@node stty invocation
1620 @section @command{stty}: Print or change terminal characteristics
1623 @@ -15548,7 +15530,7 @@ or
1627 -@node printenv invocation
1629 @section @command{printenv}: Print all or some environment variables
1632 @@ -15583,7 +15565,7 @@ Exit status:
1636 -@node tty invocation
1638 @section @command{tty}: Print file name of terminal on standard input
1641 @@ -15633,16 +15615,16 @@ This section describes commands that pri
1642 logins, groups, and so forth.
1645 -* id invocation:: Print user identity.
1646 -* logname invocation:: Print current login name.
1647 -* whoami invocation:: Print effective user ID.
1648 -* groups invocation:: Print group names a user is in.
1649 -* users invocation:: Print login names of users currently logged in.
1650 -* who invocation:: Print who is currently logged in.
1651 +* id:: Print user identity.
1652 +* logname:: Print current login name.
1653 +* whoami:: Print effective user ID.
1654 +* groups:: Print group names a user is in.
1655 +* users:: Print login names of users currently logged in.
1656 +* who:: Print who is currently logged in.
1660 -@node id invocation
1662 @section @command{id}: Print user identity
1665 @@ -15749,7 +15731,7 @@ database to be consulted afresh, and so
1669 -@node logname invocation
1671 @section @command{logname}: Print current login name
1674 @@ -15770,7 +15752,7 @@ options}.
1678 -@node whoami invocation
1680 @section @command{whoami}: Print effective user name
1683 @@ -15786,7 +15768,7 @@ options}.
1687 -@node groups invocation
1689 @section @command{groups}: Print group names a user is in
1692 @@ -15813,7 +15795,7 @@ options}.
1696 -@node users invocation
1698 @section @command{users}: Print login names of users currently logged in
1701 @@ -15848,7 +15830,7 @@ should not rely on its existence on non-
1705 -@node who invocation
1707 @section @command{who}: Print who is currently logged in
1710 @@ -16011,16 +15993,14 @@ This section describes commands that pri
1714 -* date invocation:: Print or set system date and time.
1715 -* arch invocation:: Print machine hardware name.
1716 -* nproc invocation:: Print the number of processors.
1717 -* uname invocation:: Print system information.
1718 -* hostname invocation:: Print or set system name.
1719 -* hostid invocation:: Print numeric host identifier.
1720 -* uptime invocation:: Print system uptime and load.
1721 +* date:: Print or set system date and time.
1722 +* arch:: Print machine hardware name.
1723 +* nproc:: Print the number of processors.
1724 +* uname:: Print system information.
1725 +* hostid:: Print numeric host identifier.
1728 -@node date invocation
1730 @section @command{date}: Print or set system date and time
1733 @@ -16770,7 +16750,7 @@ date --date='2017-01-01 00:00:00 +0000'
1737 -@node arch invocation
1739 @section @command{arch}: Print machine hardware name
1742 @@ -16793,7 +16773,7 @@ not rely on its existence.
1746 -@node nproc invocation
1748 @section @command{nproc}: Print the number of available processors
1751 @@ -16832,7 +16812,7 @@ If possible, exclude this @var{number} o
1755 -@node uname invocation
1757 @section @command{uname}: Print system information
1760 @@ -16962,35 +16942,7 @@ Print the kernel version.
1764 -@node hostname invocation
1765 -@section @command{hostname}: Print or set system name
1768 -@cindex setting the hostname
1769 -@cindex printing the hostname
1770 -@cindex system name, printing
1771 -@cindex appropriate privileges
1773 -With no arguments, @command{hostname} prints the name of the current host
1774 -system. With one argument, it sets the current host name to the
1775 -specified string. You must have appropriate privileges to set the host
1779 -hostname [@var{name}]
1782 -The only options are @option{--help} and @option{--version}. @xref{Common
1785 -@command{hostname} is not installed by default, and other packages
1786 -also supply a @command{hostname} command, so portable scripts should
1787 -not rely on its existence or on the exact behavior documented above.
1792 -@node hostid invocation
1794 @section @command{hostid}: Print numeric host identifier
1797 @@ -17018,44 +16970,6 @@ existence.
1801 -@node uptime invocation
1802 -@section @command{uptime}: Print system uptime and load
1805 -@cindex printing the system uptime and load
1807 -@command{uptime} prints the current time, the system's uptime, the
1808 -number of logged-in users and the current load average.
1810 -If an argument is specified, it is used as the file to be read
1811 -to discover how many users are logged in. If no argument is
1812 -specified, a system default is used (@command{uptime --help} indicates
1813 -the default setting).
1815 -The only options are @option{--help} and @option{--version}.
1816 -@xref{Common options}.
1818 -For example, here's what it prints right now on one system I use:
1822 - 14:07 up 3:35, 3 users, load average: 1.39, 1.15, 1.04
1825 -The precise method of calculation of load average varies somewhat
1826 -between systems. Some systems calculate it as the average number of
1827 -runnable processes over the last 1, 5 and 15 minutes, but some systems
1828 -also include processes in the uninterruptible sleep state (that is,
1829 -those processes which are waiting for device I/O). The Linux kernel
1830 -includes uninterruptible processes.
1832 -@command{uptime} is installed only on platforms with infrastructure
1833 -for obtaining the boot time, and other packages also supply an
1834 -@command{uptime} command, so portable scripts should not rely on its
1835 -existence or on the exact behavior documented above.
1839 @node SELinux context
1840 @chapter SELinux context
1842 @@ -17067,11 +16981,11 @@ This section describes commands for oper
1846 -* chcon invocation:: Change SELinux context of file
1847 -* runcon invocation:: Run a command in specified SELinux context
1848 +* chcon:: Change SELinux context of file
1849 +* runcon:: Run a command in specified SELinux context
1852 -@node chcon invocation
1854 @section @command{chcon}: Change SELinux context of file
1857 @@ -17174,7 +17088,7 @@ Set range @var{range} in the target secu
1861 -@node runcon invocation
1863 @section @command{runcon}: Run a command in specified SELinux context
1866 @@ -17266,16 +17180,16 @@ different than the current one: a modifi
1870 -* chroot invocation:: Modify the root directory.
1871 -* env invocation:: Modify environment variables.
1872 -* nice invocation:: Modify niceness.
1873 -* nohup invocation:: Immunize to hangups.
1874 -* stdbuf invocation:: Modify buffering of standard streams.
1875 -* timeout invocation:: Run with time limit.
1876 +* chroot:: Modify the root directory.
1877 +* env:: Modify environment variables.
1878 +* nice:: Modify niceness.
1879 +* nohup:: Immunize to hangups.
1880 +* stdbuf:: Modify buffering of standard streams.
1881 +* timeout:: Run with time limit.
1885 -@node chroot invocation
1887 @section @command{chroot}: Run a command with a different root directory
1890 @@ -17391,7 +17305,7 @@ the exit status of @var{command} otherwi
1894 -@node env invocation
1896 @section @command{env}: Run a command in a modified environment
1899 @@ -18011,7 +17925,7 @@ OLDUSER=gordon
1903 -@node nice invocation
1905 @section @command{nice}: Run a command with modified niceness
1908 @@ -18142,7 +18056,7 @@ $ sudo nice -n -1 nice
1912 -@node nohup invocation
1914 @section @command{nohup}: Run a command immune to hangups
1917 @@ -18216,7 +18130,7 @@ If @env{POSIXLY_CORRECT} is set, interna
1921 -@node stdbuf invocation
1923 @section @command{stdbuf}: Run a command with modified I/O stream buffering
1926 @@ -18310,7 +18224,7 @@ the exit status of @var{command} otherwi
1930 -@node timeout invocation
1932 @section @command{timeout}: Run a command with a time limit
1935 @@ -18446,90 +18360,6 @@ timeout -s INT 5s env --ignore-signal=IN
1936 timeout -s INT -k 3s 5s env --ignore-signal=INT sleep 20
1939 -@node Process control
1940 -@chapter Process control
1942 -@cindex processes, commands for controlling
1943 -@cindex commands for controlling processes
1946 -* kill invocation:: Sending a signal to processes.
1950 -@node kill invocation
1951 -@section @command{kill}: Send a signal to processes
1954 -@cindex send a signal to processes
1956 -The @command{kill} command sends a signal to processes, causing them
1957 -to terminate or otherwise act upon receiving the signal in some way.
1958 -Alternatively, it lists information about signals. Synopses:
1961 -kill [-s @var{signal} | --signal @var{signal} | -@var{signal}] @var{pid}@dots{}
1962 -kill [-l | --list | -t | --table] [@var{signal}]@dots{}
1965 -@mayConflictWithShellBuiltIn{kill}
1967 -The first form of the @command{kill} command sends a signal to all
1968 -@var{pid} arguments. The default signal to send if none is specified
1969 -is @samp{TERM}@. The special signal number @samp{0} does not denote a
1970 -valid signal, but can be used to test whether the @var{pid} arguments
1971 -specify processes to which a signal could be sent.
1973 -If @var{pid} is positive, the signal is sent to the process with the
1974 -process ID @var{pid}. If @var{pid} is zero, the signal is sent to all
1975 -processes in the process group of the current process. If @var{pid}
1976 -is @minus{}1, the signal is sent to all processes for which the user has
1977 -permission to send a signal. If @var{pid} is less than @minus{}1, the signal
1978 -is sent to all processes in the process group that equals the absolute
1979 -value of @var{pid}.
1981 -If @var{pid} is not positive, a system-dependent set of system
1982 -processes is excluded from the list of processes to which the signal
1985 -If a negative @var{pid} argument is desired as the first one, it
1986 -should be preceded by @option{--}. However, as a common extension to
1987 -POSIX, @option{--} is not required with @samp{kill
1988 --@var{signal} -@var{pid}}. The following commands are equivalent:
1997 -The first form of the @command{kill} command succeeds if every @var{pid}
1998 -argument specifies at least one process that the signal was sent to.
2000 -The second form of the @command{kill} command lists signal information.
2001 -Either the @option{-l} or @option{--list} option, or the @option{-t}
2002 -or @option{--table} option must be specified. Without any
2003 -@var{signal} argument, all supported signals are listed. The output
2004 -of @option{-l} or @option{--list} is a list of the signal names, one
2005 -per line; if @var{signal} is already a name, the signal number is
2006 -printed instead. The output of @option{-t} or @option{--table} is a
2007 -table of signal numbers, names, and descriptions. This form of the
2008 -@command{kill} command succeeds if all @var{signal} arguments are valid
2009 -and if there is no output error.
2011 -The @command{kill} command also supports the @option{--help} and
2012 -@option{--version} options. @xref{Common options}.
2014 -A @var{signal} may be a signal name like @samp{HUP}, or a signal
2015 -number like @samp{1}, or an exit status of a process terminated by the
2016 -signal. A signal name can be given in canonical form or prefixed by
2017 -@samp{SIG}@. The case of the letters is ignored, except for the
2018 -@option{-@var{signal}} option which must use upper case to avoid
2019 -ambiguity with lower case option letters.
2020 -@xref{Signal specifications}, for a list of supported
2021 -signal names and numbers.
2026 @@ -18539,11 +18369,11 @@ signal names and numbers.
2027 @c Perhaps @command{wait} or other commands should be described here also?
2030 -* sleep invocation:: Delay for a specified time.
2031 +* sleep:: Delay for a specified time.
2035 -@node sleep invocation
2037 @section @command{sleep}: Delay for a specified time
2040 @@ -18606,13 +18436,13 @@ options}.
2041 These programs do numerically-related operations.
2044 -* factor invocation:: Show factors of numbers.
2045 -* numfmt invocation:: Reformat numbers.
2046 -* seq invocation:: Print sequences of numbers.
2047 +* factor:: Show factors of numbers.
2048 +* numfmt:: Reformat numbers.
2049 +* seq:: Print sequences of numbers.
2053 -@node factor invocation
2055 @section @command{factor}: Print prime factors
2058 @@ -18673,7 +18503,7 @@ are the product of two large primes), ot
2062 -@node numfmt invocation
2064 @section @command{numfmt}: Reformat numbers
2067 @@ -19013,7 +18843,7 @@ $ LC_ALL=ta_IN numfmt --from=iec --forma
2071 -@node seq invocation
2073 @section @command{seq}: Print numeric sequences
2076 @@ -19188,7 +19018,7 @@ Naively, a file's atime, mtime, and ctim
2077 whenever you read, write, or change the attributes of the file
2078 respectively, and searching a directory counts as reading it. A
2079 file's atime and mtime can also be set directly, via the
2080 -@command{touch} command (@pxref{touch invocation}). In practice,
2081 +@command{touch} command (@pxref{touch}). In practice,
2082 though, timestamps are not updated quite that way.
2084 For efficiency reasons, many systems are lazy about updating atimes: