home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / fileutils-3.12-src.lha / fileutils-3.12 / doc / fileutils.info next >
Encoding:
GNU Info File  |  1994-11-06  |  98.9 KB  |  2,637 lines

  1. This is Info file fileutils.info, produced by Makeinfo-1.55 from the
  2. input file fileutils.texi.
  3.  
  4. START-INFO-DIR-ENTRY
  5. * File utilities: (fileutils).  GNU file utilities.
  6. * chgrp: (fileutils)chgrp invocation.            Change file groups.
  7. * chown: (fileutils)chown invocation.            Change file owners/groups.
  8. * chmod: (fileutils)chmod invocation.            Change file permissions.
  9. * cp: (fileutils)cp invocation.                    Copy files.
  10. * dd: (fileutils)dd invocation.                    Copy and convert a file.
  11. * df: (fileutils)df invocation.                    Report filesystem disk usage.
  12. * dir: (fileutils)dir invocation.        List directories briefly.
  13. * du: (fileutils)du invocation.                    Report on disk usage.
  14. * install: (fileutils)install invocation.    Copy and change attributes.
  15. * ln: (fileutils)ln invocation.                    Make links between files.
  16. * ls: (fileutils)ls invocation.            List directory contents.
  17. * mkdir: (fileutils)mkdir invocation.            Create directories.
  18. * mkfifo: (fileutils)mkfifo invocation.            Create FIFOs: (named pipes).
  19. * mknod: (fileutils)mknod invocation.            Create special files.
  20. * mv: (fileutils)mv invocation.                    Rename files.
  21. * rm: (fileutils)rm invocation.                    Remove files.
  22. * rmdir: (fileutils)rmdir invocation.            Remove empty directories.
  23. * sync: (fileutils)sync invocation.            Synchronize memory and disk.
  24. * touch: (fileutils)touch invocation.            Change file timestamps.
  25. * vdir: (fileutils)vdir invocation.        List directories verbosely.
  26. END-INFO-DIR-ENTRY
  27.  
  28.    This file documents the GNU set of file utilities.
  29.  
  30.    Copyright (C) 1994 Free Software Foundation, Inc.
  31.  
  32.    Permission is granted to make and distribute verbatim copies of this
  33. manual provided the copyright notice and this permission notice are
  34. preserved on all copies.
  35.  
  36.    Permission is granted to copy and distribute modified versions of
  37. this manual under the conditions for verbatim copying, provided that
  38. the entire resulting derived work is distributed under the terms of a
  39. permission notice identical to this one.
  40.  
  41.    Permission is granted to copy and distribute translations of this
  42. manual into another language, under the above conditions for modified
  43. versions, except that this permission notice may be stated in a
  44. translation approved by the Foundation.
  45.  
  46. 
  47. File: fileutils.info,  Node: Top,  Next: Introduction,  Prev: (DIR),  Up: (DIR)
  48.  
  49. GNU file utilities
  50. ******************
  51.  
  52.    This manual minimally documents version GNU fileutils 3.12 of the
  53. GNU file utilities.
  54.  
  55. * Menu:
  56.  
  57. * Introduction::        Caveats, overview, and authors.
  58. * Common options::              Common options.
  59. * File permissions::        Access modes.
  60. * Directory listing::           ls dir vdir d v
  61. * Basic operations::            cp dd install mv rm
  62. * Special file types::          ln mkdir rmdir mkfifo mknod
  63. * Changing file attributes::    chgrp chmod chown touch
  64. * Disk usage::                  df du sync
  65. * Index::                       General index.
  66.  
  67. 
  68. File: fileutils.info,  Node: Introduction,  Next: Common options,  Prev: Top,  Up: Top
  69.  
  70. Introduction
  71. ************
  72.  
  73.    This manual is incomplete: No attempt is made to explain basic file
  74. concepts in a way suitable for novices.  Thus, if you are interested,
  75. please get involved in improving this manual.  The entire GNU community
  76. will benefit.
  77.  
  78.    The GNU file utilities are mostly compatible with the POSIX.2
  79. standard.
  80.  
  81.    Please report bugs to `bug-gnu-utils@prep.ai.mit.edu'.  Remember to
  82. include the version number, machine architecture, input files, and any
  83. other information needed to reproduce the bug.  *Note Bugs: (gcc)Bugs.
  84.  
  85.    This manual is based on the Unix man pages in the distribution, which
  86. were originally written by David MacKenzie and updated by Jim Meyering.
  87. Franc,ois Pinard did the initial conversion to Texinfo format.  Karl
  88. Berry did the indexing, some reorganization, and editing of the results.
  89. Richard Stallman contributed his usual invaluable insights to the
  90. overall process.
  91.  
  92. 
  93. File: fileutils.info,  Node: Common options,  Next: File permissions,  Prev: Introduction,  Up: Top
  94.  
  95. Common options
  96. **************
  97.  
  98.    Certain options are available in all these programs.  Rather than
  99. writing identical descriptions for each of the programs, they are
  100. described here.  (In fact, every GNU program accepts (or should accept)
  101. these options.)
  102.  
  103. `--help'
  104.      Print a usage message listing all available options, then exit
  105.      successfully.
  106.  
  107. `--version'
  108.      Print the version number, then exit successfully.
  109.  
  110. * Menu:
  111.  
  112. * Backup options::              -b -S -V, in some programs.
  113.  
  114. 
  115. File: fileutils.info,  Node: Backup options,  Up: Common options
  116.  
  117. Backup options
  118. ==============
  119.  
  120.    Some GNU programs (at least `cp', `mv', and `ln') optionally make
  121. backups of files before writing new versions.  These options control
  122. the details of these backups.  The options are also briefly mentioned
  123. in the descriptions of the particular programs.
  124.  
  125. `-b'
  126. `--backup'
  127.      Make backups of files that are about to be overwritten or removed.
  128.      Without this option, the original versions are destroyed.
  129.  
  130. `-S SUFFIX'
  131. `--suffix=SUFFIX'
  132.      Append SUFFIX to each backup file made with `-b'.  If this option
  133.      is not specified, the value of the `SIMPLE_BACKUP_SUFFIX'
  134.      environment variable is used.  And if `SIMPLE_BACKUP_SUFFIX' is not
  135.      set, the default is `~', just as in Emacs.
  136.  
  137. `-V METHOD'
  138. `--version-control=METHOD'
  139.      Use METHOD to determine the type of backups made with `-b'.  If
  140.      this option is not specified, the value of the `VERSION_CONTROL'
  141.      environment variable is used.  And if `VERSION_CONTROL' is not set,
  142.      the default backup type is `existing'.
  143.  
  144.      This option corresponds to the Emacs variable `version-control';
  145.      the same values for METHOD are accepted as in Emacs.  This options
  146.      also more descriptive name.  The valid METHODs (unique
  147.      abbreviations are accepted):
  148.  
  149.     `t'
  150.     `numbered'
  151.           Always make numbered backups.
  152.  
  153.     `nil'
  154.     `existing'
  155.           Make numbered backups of files that already have them, simple
  156.           backups of the others.
  157.  
  158.     `never'
  159.     `simple'
  160.           Always make simple backups.
  161.  
  162. 
  163. File: fileutils.info,  Node: File permissions,  Next: Directory listing,  Prev: Common options,  Up: Top
  164.  
  165. File permissions
  166. ****************
  167.  
  168.    Each file has a set of "permissions" that control the kinds of
  169. access that users have to that file.  The permissions for a file are
  170. also called its "access mode".  They can be represented either in
  171. symbolic form or as an octal number.
  172.  
  173. * Menu:
  174.  
  175. * Mode Structure::              Structure of file permissions.
  176. * Symbolic Modes::              Mnemonic permissions representation.
  177. * Numeric Modes::               Permissions as octal numbers.
  178.  
  179. 
  180. File: fileutils.info,  Node: Mode Structure,  Next: Symbolic Modes,  Up: File permissions
  181.  
  182. Structure of File Permissions
  183. =============================
  184.  
  185.    There are three kinds of permissions that a user can have for a file:
  186.  
  187.   1. permission to read the file.  For directories, this means
  188.      permission to list the contents of the directory.
  189.  
  190.   2. permission to write to (change) the file.  For directories, this
  191.      means permission to create and remove files in the directory.
  192.  
  193.   3. permission to execute the file (run it as a program).  For
  194.      directories, this means permission to access files in the
  195.      directory.
  196.  
  197.    There are three categories of users who may have different
  198. permissions to perform any of the above operations on a file:
  199.  
  200.   1. the file's owner;
  201.  
  202.   2. other users who are in the file's group;
  203.  
  204.   3. everyone else.
  205.  
  206.    Files are given an owner and group when they are created.  Usually
  207. the owner is the current user and the group is the group of the
  208. directory the file is in, but this varies with the operating system, the
  209. filesystem the file is created on, and the way the file is created.  You
  210. can change the owner and group of a file by using the `chown' and
  211. `chgrp' commands.
  212.  
  213.    In addition to the three sets of three permissions listed above, a
  214. file's permissions have three special components, which affect only
  215. executable files (programs) and, on some systems, directories:
  216.  
  217.   1. set the process's effective user ID to that of the file upon
  218.      execution (called the "setuid bit").  No effect on directories.
  219.  
  220.   2. set the process's effective group ID to that of the file upon
  221.      execution (called the "setgid bit").  For directories on some
  222.      systems, put files created in the directory into the same group as
  223.      the directory, no matter what group the user who creates them is
  224.      in.
  225.  
  226.   3. save the program's text image on the swap device so it will load
  227.      more quickly when run (called the "sticky bit").  For directories
  228.      on some systems, prevent users from removing files that they do
  229.      not own in the directory; this is called making the directory
  230.      "append-only".
  231.  
  232. 
  233. File: fileutils.info,  Node: Symbolic Modes,  Next: Numeric Modes,  Prev: Mode Structure,  Up: File permissions
  234.  
  235. Symbolic Modes
  236. ==============
  237.  
  238.    "Symbolic modes" represent changes to files' permissions as
  239. operations on single-character symbols.  They allow you to modify either
  240. all or selected parts of files' permissions, optionally based on their
  241. previous values, and perhaps on the current `umask' as well (*note
  242. Umask and Protection::.).
  243.  
  244.    The format of symbolic modes is:
  245.  
  246.      [ugoa...][[+-=][rwxXstugo...]...][,...]
  247.  
  248.    The following sections describe the operators and other details of
  249. symbolic modes.
  250.  
  251. * Menu:
  252.  
  253. * Setting Permissions::          Basic operations on permissions.
  254. * Copying Permissions::          Copying existing permissions.
  255. * Changing Special Permissions:: Special permissions.
  256. * Conditional Executability::    Conditionally affecting executability.
  257. * Multiple Changes::             Making multiple changes.
  258. * Umask and Protection::              The effect of the umask.
  259.  
  260. 
  261. File: fileutils.info,  Node: Setting Permissions,  Next: Copying Permissions,  Up: Symbolic Modes
  262.  
  263. Setting Permissions
  264. -------------------
  265.  
  266.    The basic symbolic operations on a file's permissions are adding,
  267. removing, and setting the permission that certain users have to read,
  268. write, and execute the file.  These operations have the following
  269. format:
  270.  
  271.      USERS OPERATION PERMISSIONS
  272.  
  273. The spaces between the three parts above are shown for readability only;
  274. symbolic modes can not contain spaces.
  275.  
  276.    The USERS part tells which users' access to the file is changed.  It
  277. consists of one or more of the following letters (or it can be empty;
  278. *note Umask and Protection::., for a description of what happens then).
  279. When more than one of these letters is given, the order that they are
  280. in does not matter.
  281.  
  282. `u'
  283.      the user who owns the file;
  284.  
  285. `g'
  286.      other users who are in the file's group;
  287.  
  288. `o'
  289.      all other users;
  290.  
  291. `a'
  292.      all users; the same as `ugo'.
  293.  
  294.    The OPERATION part tells how to change the affected users' access to
  295. the file, and is one of the following symbols:
  296.  
  297. `+'
  298.      to add the PERMISSIONS to whatever permissions the USERS already
  299.      have for the file;
  300.  
  301. `-'
  302.      to remove the PERMISSIONS from whatever permissions the USERS
  303.      already have for the file;
  304.  
  305. `='
  306.      to make the PERMISSIONS the only permissions that the USERS have
  307.      for the file.
  308.  
  309.    The PERMISSIONS part tells what kind of access to the file should be
  310. changed; it is zero or more of the following letters.  As with the
  311. USERS part, the order does not matter when more than one letter is
  312. given.  Omitting the PERMISSIONS part is useful only with the `='
  313. operation, where it gives the specified USERS no access at all to the
  314. file.
  315.  
  316. `r'
  317.      the permission the USERS have to read the file;
  318.  
  319. `w'
  320.      the permission the USERS have to write to the file;
  321.  
  322. `x'
  323.      the permission the USERS have to execute the file.
  324.  
  325.    For example, to give everyone permission to read and write a file,
  326. but not to execute it, use:
  327.  
  328.      a=rw
  329.  
  330.    To remove write permission for from all users other than the file's
  331. owner, use:
  332.  
  333.      go-w
  334.  
  335. The above command does not affect the access that the owner of the file
  336. has to it, nor does it affect whether other users can read or execute
  337. the file.
  338.  
  339.    To give everyone except a file's owner no permission to do anything
  340. with that file, use the mode below.  Other users could still remove the
  341. file, if they have write permission on the directory it is in.
  342.  
  343.      go=
  344.  
  345. Another way to specify the same thing is:
  346.  
  347.      og-rxw
  348.  
  349. 
  350. File: fileutils.info,  Node: Copying Permissions,  Next: Changing Special Permissions,  Prev: Setting Permissions,  Up: Symbolic Modes
  351.  
  352. Copying Existing Permissions
  353. ----------------------------
  354.  
  355.    You can base part of a file's permissions on part of its existing
  356. permissions.  To do this, instead of using `r', `w', or `x' after the
  357. operator, you use the letter `u', `g', or `o'.  For example, the mode
  358.  
  359.      o+g
  360.  
  361. adds the permissions for users who are in a file's group to the
  362. permissions that other users have for the file.  Thus, if the file
  363. started out as mode 664 (`rw-rw-r--'), the above mode would change it
  364. to mode 666 (`rw-rw-rw-').  If the file had started out as mode 741
  365. (`rwxr----x'), the above mode would change it to mode 745
  366. (`rwxr--r-x').  The `-' and `=' operations work analogously.
  367.  
  368. 
  369. File: fileutils.info,  Node: Changing Special Permissions,  Next: Conditional Executability,  Prev: Copying Permissions,  Up: Symbolic Modes
  370.  
  371. Changing Special Permissions
  372. ----------------------------
  373.  
  374.    In addition to changing a file's read, write, and execute
  375. permissions, you can change its special permissions.  *Note Mode
  376. Structure::, for a summary of these permissions.
  377.  
  378.    To change a file's permission to set the user ID on execution, use
  379. `u' in the USERS part of the symbolic mode and `s' in the PERMISSIONS
  380. part.
  381.  
  382.    To change a file's permission to set the group ID on execution, use
  383. `g' in the USERS part of the symbolic mode and `s' in the PERMISSIONS
  384. part.
  385.  
  386.    To change a file's permission to stay permanently on the swap device,
  387. use `o' in the USERS part of the symbolic mode and `t' in the
  388. PERMISSIONS part.
  389.  
  390.    For example, to add set user ID permission to a program, you can use
  391. the mode:
  392.  
  393.      u+s
  394.  
  395.    To remove both set user ID and set group ID permission from it, you
  396. can use the mode:
  397.  
  398.      ug-s
  399.  
  400.    To cause a program to be saved on the swap device, you can use the
  401. mode:
  402.  
  403.      o+t
  404.  
  405.    Remember that the special permissions only affect files that are
  406. executable, plus, on some systems, directories (on which they have
  407. different meanings; *note Mode Structure::.).  Using `a' in the USERS
  408. part of a symbolic mode does not cause the special permissions to be
  409. affected; thus,
  410.  
  411.      a+s
  412.  
  413. has *no effect*.  You must use `u', `g', and `o' explicitly to affect
  414. the special permissions.  Also, the combinations `u+t', `g+t', and
  415. `o+s' have no effect.
  416.  
  417.    The `=' operator is not very useful with special permissions; for
  418. example, the mode:
  419.  
  420.      o=t
  421.  
  422. does cause the file to be saved on the swap device, but it also removes
  423. all read, write, and execute permissions that users not in the file's
  424. group might have had for it.
  425.  
  426. 
  427. File: fileutils.info,  Node: Conditional Executability,  Next: Multiple Changes,  Prev: Changing Special Permissions,  Up: Symbolic Modes
  428.  
  429. Conditional Executability
  430. -------------------------
  431.  
  432.    There is one more special type of symbolic permission: if you use
  433. `X' instead of `x', execute permission is affected only if the file
  434. already had execute permission or is a directory.  It affects
  435. directories' execute permission even if they did not initially have any
  436. execute permissions set.
  437.  
  438.    For example, this mode:
  439.  
  440.      a+X
  441.  
  442. gives all users permission to execute files (or search directories) if
  443. anyone could before.
  444.  
  445. 
  446. File: fileutils.info,  Node: Multiple Changes,  Next: Umask and Protection,  Prev: Conditional Executability,  Up: Symbolic Modes
  447.  
  448. Making Multiple Changes
  449. -----------------------
  450.  
  451.    The format of symbolic modes is actually more complex than described
  452. above (*note Setting Permissions::.).  It provides two ways to make
  453. multiple changes to files' permissions.
  454.  
  455.    The first way is to specify multiple OPERATION and PERMISSIONS parts
  456. after a USERS part in the symbolic mode.
  457.  
  458.    For example, the mode:
  459.  
  460.      og+rX-w
  461.  
  462. gives users other than the owner of the file read permission and, if it
  463. is a directory or if someone already had execute permission to it,
  464. gives them execute permission; and it also denies them write permission
  465. to it file.  It does not affect the permission that the owner of the
  466. file has for it.  The above mode is equivalent to the two modes:
  467.  
  468.      og+rX
  469.      og-w
  470.  
  471.    The second way to make multiple changes is to specify more than one
  472. simple symbolic mode, separated by commas.  For example, the mode:
  473.  
  474.      a+r,go-w
  475.  
  476. gives everyone permission to read the file and removes write permission
  477. on it for all users except its owner.  Another example:
  478.  
  479.      u=rwx,g=rx,o=
  480.  
  481. sets all of the non-special permissions for the file explicitly.  (It
  482. gives users who are not in the file's group no permission at all for
  483. it.)
  484.  
  485.    The two methods can be combined.  The mode:
  486.  
  487.      a+r,g+x-w
  488.  
  489. gives all users permission to read the file, and gives users who are in
  490. the file's group permission to execute it, as well, but not permission
  491. to write to it.  The above mode could be written in several different
  492. ways; another is:
  493.  
  494.      u+r,g+rx,o+r,g-w
  495.  
  496. 
  497. File: fileutils.info,  Node: Umask and Protection,  Prev: Multiple Changes,  Up: Symbolic Modes
  498.  
  499. The Umask and Protection
  500. ------------------------
  501.  
  502.    If the USERS part of a symbolic mode is omitted, it defaults to `a'
  503. (affect all users), except that any permissions that are *set* in the
  504. system variable `umask' are *not affected*.  The value of `umask' can
  505. be set using the `umask' command.  Its default value varies from system
  506. to system.
  507.  
  508.    Omitting the USERS part of a symbolic mode is generally not useful
  509. with operations other than `+'.  It is useful with `+' because it
  510. allows you to use `umask' as an easily customizable protection against
  511. giving away more permission to files than you intended to.
  512.  
  513.    As an example, if `umask' has the value 2, which removes write
  514. permission for users who are not in the file's group, then the mode:
  515.  
  516.      +w
  517.  
  518. adds permission to write to the file to its owner and to other users who
  519. are in the file's group, but *not* to other users.  In contrast, the
  520. mode:
  521.  
  522.      a+w
  523.  
  524. ignores `umask', and *does* give write permission for the file to all
  525. users.
  526.  
  527. 
  528. File: fileutils.info,  Node: Numeric Modes,  Prev: Symbolic Modes,  Up: File permissions
  529.  
  530. Numeric Modes
  531. =============
  532.  
  533.    File permissions are stored internally as 16 bit integers.  As an
  534. alternative to giving a symbolic mode, you can give an octal (base 8)
  535. number that corresponds to the internal representation of the new mode.
  536. This number is always interpreted in octal; you do not have to add a
  537. leading 0, as you do in C.  Mode 0055 is the same as mode 55.
  538.  
  539.    A numeric mode is usually shorter than the corresponding symbolic
  540. mode, but it is limited in that it can not take into account a file's
  541. previous permissions; it can only set them absolutely.
  542.  
  543.    The permissions granted to the user, to other users in the file's
  544. group, and to other users not in the file's group are each stored as
  545. three bits, which are represented as one octal digit.  The three special
  546. permissions are also each stored as one bit, and they are as a group
  547. represented as another octal digit.  Here is how the bits are arranged
  548. in the 16 bit integer, starting with the lowest valued bit:
  549.  
  550.      Value in  Corresponding
  551.      Mode      Permission
  552.      
  553.                Other users not in the file's group:
  554.         1      Execute
  555.         2      Write
  556.         4      Read
  557.      
  558.                Other users in the file's group:
  559.        10      Execute
  560.        20      Write
  561.        40      Read
  562.      
  563.                The file's owner:
  564.       100      Execute
  565.       200      Write
  566.       400      Read
  567.      
  568.                Special permissions:
  569.      1000      Save text image on swap device
  570.      2000      Set group ID on execution
  571.      4000      Set user ID on execution
  572.  
  573.    For example, numeric mode 4755 corresponds to symbolic mode
  574. `u=rwxs,go=rx', and numeric mode 664 corresponds to symbolic mode
  575. `ug=rw,o=r'.  Numeric mode 0 corresponds to symbolic mode `ugo='.
  576.  
  577. 
  578. File: fileutils.info,  Node: Directory listing,  Next: Basic operations,  Prev: File permissions,  Up: Top
  579.  
  580. Directory listing
  581. *****************
  582.  
  583.    This chapter describes the `ls' command and its variants `dir' and
  584. `vdir', which list information about files.
  585.  
  586. * Menu:
  587.  
  588. * ls invocation::               List directory contents.
  589. * dir invocation::              Briefly ls.
  590. * vdir invocation::             Verbosely ls.
  591.  
  592. 
  593. File: fileutils.info,  Node: ls invocation,  Next: dir invocation,  Up: Directory listing
  594.  
  595. `ls': List directory contents
  596. =============================
  597.  
  598.    The `ls' program lists information about files (of any type,
  599. including directories).  Options and file arguments can be intermixed
  600. arbitrarily, as usual.
  601.  
  602.    For non-option command-line arguments that are directories, by
  603. default `ls' lists the contents of directories, not recursively, and
  604. omitting files with names beginning with `.'.  For other non-option
  605. arguments, by default `ls' lists just the filename.  If no non-option
  606. arguments are specified, `ls' lists the contents of the current
  607. directory.
  608.  
  609.    By default, the output is sorted alphabetically.  If standard output
  610. is a terminal, the output is in columns (sorted vertically); otherwise,
  611. they are listed one per line.
  612.  
  613.    Because `ls' is such a fundamental program, it has accumulated many
  614. options over the years.  They are described in the subsections below;
  615. within each section, options are listed alphabetically (ignoring case).
  616. The division of options into the subsections is not absolute, since some
  617. options affect more than one aspect of `ls''s operation.
  618.  
  619.    Also, the `-g' option is accepted but ignored, for compatibility
  620. with Unix.  Also see *Note Common options::.
  621.  
  622. * Menu:
  623.  
  624. * Which files are listed::
  625. * What information is listed::
  626. * Sorting the output::
  627. * General output formatting::
  628. * Formatting the filenames::
  629.  
  630. 
  631. File: fileutils.info,  Node: Which files are listed,  Next: What information is listed,  Up: ls invocation
  632.  
  633. Which files are listed
  634. ----------------------
  635.  
  636.    These options determine which files `ls' lists information for.  By
  637. default, any files and the contents of any directories on the command
  638. line are shown.
  639.  
  640. `-a'
  641. `--all'
  642.      List all files in directories, including files that start with `.'.
  643.  
  644. `-A'
  645. `--almost-all'
  646.      List all files in directories except for `.' and `..'.
  647.  
  648. `-B'
  649. `--ignore-backups'
  650.      Do not list files that end with `~', unless they are given on the
  651.      command line.
  652.  
  653. `-d'
  654. `--directory'
  655.      List just the names of directories, as with other types of files,
  656.      rather than listing their contents.
  657.  
  658. `-I'
  659. `--ignore'
  660.      Do not list files whose names match the shell pattern (not regular
  661.      expression) PATTERN unless they are given on the command line.  As
  662.      in the shell, an initial `.' in a filename does not match a
  663.      wildcard at the start of PATTERN.
  664.  
  665. `-L'
  666. `--dereference'
  667.      List the files linked to by symbolic links instead of listing the
  668.      contents of the links.
  669.  
  670. `-R'
  671. `--recursive'
  672.      List the contents of all directories recursively.
  673.  
  674. 
  675. File: fileutils.info,  Node: What information is listed,  Next: Sorting the output,  Prev: Which files are listed,  Up: ls invocation
  676.  
  677. What information is listed
  678. --------------------------
  679.  
  680.    These options affect the information that `ls' displays.  By
  681. default, only filenames are shown.
  682.  
  683. `-D'
  684. `--dired'
  685.      With the long listing (`-l') format, print an additional line after
  686.      the main output:
  687.  
  688.           //DIRED// BEG1 END1 BEG2 END2 ...
  689.  
  690.      The BEGN and ENDN are unsigned integers which record the byte
  691.      position of the beginning and end of each filename in the output.
  692.      This makes it easy for Emacs to find the names, even when they
  693.      contain unusual characters such as space or newline, without fancy
  694.      searching.
  695.  
  696.      If directories are being listed recursively (`-R'), output a
  697.      similar line after each subdirectory:
  698.  
  699.           //SUBDIRED// BEG1 END1 ...
  700.  
  701. `-G'
  702. `--no-group'
  703.      Inhibit display of group information in a long format directory
  704.      listing.  (This is the default in some non-GNU versions of `ls',
  705.      so we provide this option for compatibility.)
  706.  
  707. `-i'
  708. `--inode'
  709.      Print the inode number (also called the file serial number and
  710.      index number) of each file to the left of the filename.  (This
  711.      number uniquely identifies each file within a particular
  712.      filesystem.)
  713.  
  714. `-l'
  715. `--format=long'
  716. `--format=verbose'
  717.      In addition to the name of each file, print the file type,
  718.      permissions, number of hard links, owner name, group name, size in
  719.      bytes, and timestamp (by default, the modification time).  For
  720.      files with a time more than 6 months old or more than 1 hour into
  721.      the future, the timestamp contains the year instead of the time of
  722.      day.
  723.  
  724.      For each directory that is listed, preface the files with a line
  725.      `total BLOCKS', where BLOCKS is the total disk space used by all
  726.      files in that directory.  By default, 1024-byte blocks are used;
  727.      if the environment variable `POSIXLY_CORRECT' is set, 512-byte
  728.      blocks are used (unless the `-k' option is given).  The BLOCKS
  729.      computed counts each hard link separately; this is arguably a bug.
  730.  
  731.      This output format is the default for the GNU `v' and `vdir'
  732.      programs.
  733.  
  734. `-s'
  735. `--size'
  736.      Print the size of each file in 1024-byte blocks to the left of the
  737.      filename.  If the environment variable `POSIXLY_CORRECT' is set,
  738.      512-byte blocks are used instead, unless the `-k' option is given
  739.      (*note General output formatting::.).
  740.  
  741.      For files that are NFS-mounted from an HP-UX system to a BSD
  742.      system, this option reports sizes that are half the correct
  743.      values.  On HP-UX systems, it reports sizes that are twice the
  744.      correct values for files that are NFS-mounted from BSD systems.
  745.      This is due to a flaw in HP-UX; it also affects the HP-UX `ls'
  746.      program.
  747.  
  748. 
  749. File: fileutils.info,  Node: Sorting the output,  Next: General output formatting,  Prev: What information is listed,  Up: ls invocation
  750.  
  751. Sorting the output
  752. ------------------
  753.  
  754.    These options change the order in which `ls' sorts the information
  755. it outputs.  By default, sorting is done by character code (e.g., ASCII
  756. order).
  757.  
  758. `-c'
  759. `--time=ctime'
  760. `--time=status'
  761.      Sort according to the status change time (the `ctime' in the
  762.      inode).  If the long listing format (`-l') is being used, print the
  763.      status change time instead of the modification time.
  764.  
  765. `-f'
  766.      Primarily, like `-U'--do not sort; list the files in whatever
  767.      order they are stored in the directory.  But also enable `-a' (list
  768.      all files) and disable `-l' and `-s' (if they were specified
  769.      before the `-f').
  770.  
  771. `-r'
  772. `--reverse'
  773.      Reverse whatever the sorting method is--e.g., list files in reverse
  774.      alphabetical order, youngest first, smallest first, or whatever.
  775.  
  776. `-S'
  777. `--sort=size'
  778.      Sort by file size, largest first.
  779.  
  780. `-t'
  781. `--sort=time'
  782.      Sort by modification time (the `mtime' in the inode), newest first.
  783.  
  784. `-u'
  785. `--time=atime'
  786. `--time=access'
  787. `--time=use'
  788.      Sort by access time (the `atime' in the inode).  If the long
  789.      listing format is being used, print the last access time.
  790.  
  791. `-U'
  792. `--sort=none'
  793.      Do not sort; list the files in whatever order they are stored in
  794.      the directory.  (Do not do any of the other unrelated things that
  795.      `-f' does.)  This is especially useful when listing very large
  796.      directories, since not doing any sorting can be noticeably faster.
  797.  
  798. `-X'
  799. `--sort=extension'
  800.      Sort directory contents alphabetically by file extension
  801.      (characters after the last `.'); files with no extension are
  802.      sorted first.
  803.  
  804. 
  805. File: fileutils.info,  Node: General output formatting,  Next: Formatting the filenames,  Prev: Sorting the output,  Up: ls invocation
  806.  
  807. General output formatting
  808. -------------------------
  809.  
  810.    These options affect the appearance of the overall output.
  811.  
  812. `-1'
  813. `--format=single-column'
  814.      List one file per line.  This is the default for `ls' when standard
  815.      output is not a terminal.
  816.  
  817. `-C'
  818. `--format=vertical'
  819.      List files in columns, sorted vertically.  This is the default for
  820.      `ls' if standard output is a terminal.  It is always the default
  821.      for the `dir' and `d' programs.
  822.  
  823. `-F'
  824. `--classify'
  825.      Append a character to each filename indicating the file type.
  826.      Also, for regular files that are executable, append `*'.  The file
  827.      type indicators are `/' for directories, `@' for symbolic links,
  828.      `|' for FIFOs, `=' for sockets, and nothing for regular files.
  829.  
  830. `--full-time'
  831.      List times in full, rather than using the standard abbreviation
  832.      heuristics.  The format is the same as `date''s default; it's not
  833.      possible to change this, but you can extract out the date string
  834.      with `cut' and then pass the result to `date -d'.  *Note `date'
  835.      invocation: (sh-utils)date invocation.
  836.  
  837.      This is most useful because the time output includes the seconds.
  838.      (Unix filesystems store file timestamps only to the nearest
  839.      second, so this option shows all the information there is.)  For
  840.      example, this can help when you have a Makefile that is not
  841.      regenerating files properly.
  842.  
  843. `-k'
  844. `--kilobytes'
  845.      If file sizes are being listed, print them in kilobytes.  This
  846.      overrides the environment variable `POSIXLY_CORRECT'.
  847.  
  848. `-m'
  849. `--format=commas'
  850.      List files horizontally, with as many as will fit on each line,
  851.      separated by `, ' (a comma and a space).
  852.  
  853. `-n'
  854. `--numeric-uid-gid'
  855.      List the numeric UID and GID instead of the names.
  856.  
  857. `-p'
  858.      Append a character to each filename indicating the file type. This
  859.      is like `-F', except that executables are not marked.
  860.  
  861. `-x'
  862. `--format=across'
  863. `--format=horizontal'
  864.      List the files in columns, sorted horizontally.
  865.  
  866. `-T'
  867. `--tabsize=COLS'
  868.      Assume that each tabstop is COLS columns wide.  The default is 8.
  869.      `ls' uses tabs where possible in the output, for efficiency.
  870.  
  871. `-w'
  872. `--width=COLS'
  873.      Assume the screen is COLS columns wide.  The default is taken from
  874.      the terminal settings if possible; otherwise the environment
  875.      variable `COLUMNS' is used if it is set; otherwise the default is
  876.      80.
  877.  
  878. 
  879. File: fileutils.info,  Node: Formatting the filenames,  Prev: General output formatting,  Up: ls invocation
  880.  
  881. Formatting the filenames
  882. ------------------------
  883.  
  884.    These options change how filenames themselves are printed.
  885.  
  886. `-b'
  887. `--escape'
  888.      Quote nongraphic characters in filenames using alphabetic and octal
  889.      backslash sequences like those used in C.
  890.  
  891. `-N'
  892. `--literal'
  893.      Do not quote filenames.
  894.  
  895. `-q'
  896. `--hide-control-chars'
  897.      Print question marks instead of nongraphic characters in filenames.
  898.      This is the default.
  899.  
  900. `-Q'
  901. `--quote-name'
  902.      Enclose filenames in double quotes and quote nongraphic characters
  903.      as in C.
  904.  
  905. 
  906. File: fileutils.info,  Node: dir invocation,  Next: vdir invocation,  Prev: ls invocation,  Up: Directory listing
  907.  
  908. `dir': Briefly list directory contents
  909. ======================================
  910.  
  911.    The `dir' program (also installed as `d') is equivalent to `ls -C';
  912. that is, files are by default always listed in columns, sorted
  913. vertically.
  914.  
  915.    *Note `ls': ls invocation.
  916.  
  917. 
  918. File: fileutils.info,  Node: vdir invocation,  Prev: dir invocation,  Up: Directory listing
  919.  
  920. `vdir': Verbosely list directory contents
  921. =========================================
  922.  
  923.    The `vdir' program (also installed `v')is equivalent to `ls -l';
  924. that is, files are by default listed in long format.
  925.  
  926. 
  927. File: fileutils.info,  Node: Basic operations,  Next: Special file types,  Prev: Directory listing,  Up: Top
  928.  
  929. Basic operations
  930. ****************
  931.  
  932.    This chapter describes the commands for basic file manipulation:
  933. copying, moving (renaming), and deleting (removing).
  934.  
  935. * Menu:
  936.  
  937. * cp invocation::               Copy files.
  938. * dd invocation::               Convert and copy a file.
  939. * install invocation::          Copy files and set attributes.
  940. * mv invocation::               Move (rename) files.
  941. * rm invocation::               Remove files or directories.
  942.  
  943. 
  944. File: fileutils.info,  Node: cp invocation,  Next: dd invocation,  Up: Basic operations
  945.  
  946. `cp': Copy files and directories
  947. ================================
  948.  
  949.    `cp' copies files (or, optionally, directories).  The copy is
  950. completely independent of the original.  You can either copy one file to
  951. another, or copy arbitrarily many files to a destination directory.
  952. Synopsis:
  953.  
  954.      cp [OPTION]... SOURCE DEST
  955.      cp [OPTION]... SOURCE... DIRECTORY
  956.  
  957.    If the last argument names an existing directory, `cp' copies each
  958. SOURCE file into that directory (retaining the same name).  Otherwise,
  959. if only two files are given, it copies the first onto the second.  It
  960. is an error if the last argument is not a directory and more than two
  961. non-option arguments are given.
  962.  
  963.    If the source file contains holes, `cp' copies them and other blocks
  964. of zero bytes as holes.  Otherwise, files are written just as they are
  965. read.  (A "hole" is a sequence of zero bytes that does not occupy any
  966. physical disk blocks; the `read' system call reads these as zeroes.)
  967.  
  968.    By default, `cp' does not copy directories.  It also refuses to copy
  969. a file onto itself.
  970.  
  971.    The program accepts the following options.  Also see *Note Common
  972. options::.
  973.  
  974. `-a'
  975. `--archive'
  976.      Preserve as much as possible of the structure and attributes of the
  977.      original files in the copy.  Equivalent to `-dpR'.
  978.  
  979. `-b'
  980. `--backup'
  981.      Make backups of files that are about to be overwritten or removed.
  982.      *Note Backup options::.
  983.  
  984. `-d'
  985. `--no-dereference'
  986.      Copy symbolic links as symbolic links rather than copying the
  987.      files that they point to, and preserve hard links between source
  988.      files in the copies.
  989.  
  990. `-f'
  991. `--force'
  992.      Remove existing destination files.
  993.  
  994. `-i'
  995. `--interactive'
  996.      Prompt whether to overwrite existing regular destination files.
  997.  
  998. `-l'
  999. `--link'
  1000.      Make hard links instead of copies of non-directories.
  1001.  
  1002. `-p'
  1003. `--preserve'
  1004.      Preserve the original files' owner, group, permissions, and
  1005.      timestamps.
  1006.  
  1007. `-P'
  1008. `--parents'
  1009.      Form the name of each destination file by appending to the target
  1010.      directory a slash and the specified name of the source file.  The
  1011.      last argument given to `cp' must be the name of an existing
  1012.      directory.  For example, the command:
  1013.  
  1014.           cp --parents a/b/c existing_dir
  1015.  
  1016.      copies the file `a/b/c' to `existing_dir/a/b/c', creating any
  1017.      missing intermediate directories.
  1018.  
  1019. `-r'
  1020.      Copy directories recursively, copying any non-directories and
  1021.      non-symbolic links (that is, FIFOs and special files) as if they
  1022.      were regular files.  This means trying to read the data in each
  1023.      source file and writing it to the destination.  Thus, with this
  1024.      option, `cp' may well hang indefinitely reading a FIFO, unless
  1025.      something else happens to be writing it.
  1026.  
  1027. `-R'
  1028. `--recursive'
  1029.      Copy directories recursively, preserving non-directories (see `-r'
  1030.      just above).
  1031.  
  1032. `-s'
  1033. `--symbolic-link'
  1034.      Make symbolic links instead of copies of non-directories.  All
  1035.      source filenames must be absolute (starting with `/') unless the
  1036.      destination files are in the current directory.  This option merely
  1037.      results in an error message on systems that do not support
  1038.      symbolic links.
  1039.  
  1040. `-S SUFFIX'
  1041. `--suffix=SUFFIX'
  1042.      Append SUFFIX to each backup file made with `-b'.  *Note Backup
  1043.      options::.
  1044.  
  1045. `-u'
  1046. `--update'
  1047.      Do not copy a nondirectory that has an existing destination with
  1048.      the same or newer modification time.
  1049.  
  1050. `-v'
  1051. `--verbose'
  1052.      Print the name of each file before copying it.
  1053.  
  1054. `-V METHOD'
  1055. `--version-control=METHOD'
  1056.      Change the type of backups made with `-b'.  The METHOD argument
  1057.      can be `numbered' (or `t'), `existing' (or `nil'), or `never' (or
  1058.      `simple').  *Note Backup options::.
  1059.  
  1060. `-x'
  1061. `--one-file-system'
  1062.      Skip subdirectories that are on different filesystems from the one
  1063.      that the copy started on.
  1064.  
  1065. 
  1066. File: fileutils.info,  Node: dd invocation,  Next: install invocation,  Prev: cp invocation,  Up: Basic operations
  1067.  
  1068. `dd': Convert and copy a file
  1069. =============================
  1070.  
  1071.    `dd' copies a file (from standard input to standard output, by
  1072. default) with a changeable I/O blocksize, while optionally performing
  1073. conversions on it.  Synopsis:
  1074.  
  1075.      dd [OPTION]...
  1076.  
  1077.    The program accepts the following options.  Also see *Note Common
  1078. options::.
  1079.  
  1080.    The numeric-valued options below (BYTES and BLOCKS) can be followed
  1081. by a multiplier: `b'=512, `c'=1, `k'=1024, `w'=2, `xM'=M.
  1082.  
  1083. `if=FILE'
  1084.      Read from FILE instead of standard input.
  1085.  
  1086. `of=FILE'
  1087.      Write to FILE instead of standard output.  Unless `conv=notrunc'
  1088.      is given, `dd' truncates FILE to zero bytes (or the size specified
  1089.      with `seek=').
  1090.  
  1091. `ibs=BYTES'
  1092.      Read BYTES bytes at a time.
  1093.  
  1094. `obs=BYTES'
  1095.      Write BYTES bytes at a time.
  1096.  
  1097. `bs=BYTES'
  1098.      Both read and write BYTES bytes at a time.  This overrides `ibs'
  1099.      and `obs'.
  1100.  
  1101. `cbs=BYTES'
  1102.      Convert BYTES bytes at a time.
  1103.  
  1104. `skip=BLOCKS'
  1105.      Skip BLOCKS `ibs'-byte blocks in the input file before copying.
  1106.  
  1107. `seek=BLOCKS'
  1108.      Skip BLOCKS `obs'-byte blocks in the output file before copying.
  1109.  
  1110. `count=BLOCKS'
  1111.      Copy BLOCKS `obs'-byte blocks from the input file, instead of
  1112.      everything until the end of the file.
  1113.  
  1114. `conv=CONVERSION[,CONVERSION]...'
  1115.      Convert the file as specified by the CONVERSION argument(s).  (No
  1116.      spaces around any comma(s).)
  1117.  
  1118.      Conversions:
  1119.  
  1120.     `ascii'
  1121.           Convert EBCDIC to ASCII.
  1122.  
  1123.     `ebcdic'
  1124.           Convert ASCII to EBCDIC.
  1125.  
  1126.     `ibm'
  1127.           Convert ASCII to alternate EBCDIC.
  1128.  
  1129.     `block'
  1130.           For each line in the input, output `cbs' bytes, replacing the
  1131.           input newline with a space and padding with spaces as
  1132.           necessary.
  1133.  
  1134.     `unblock'
  1135.           Replace trailing spaces in each `cbs'-sized input block with a
  1136.           newline.
  1137.  
  1138.     `lcase'
  1139.           Change uppercase letters to lowercase.
  1140.  
  1141.     `ucase'
  1142.           Change lowercase letters to uppercase.
  1143.  
  1144.     `swab'
  1145.           Swap every pair of input bytes.  GNU `dd', unlike others,
  1146.           works when an odd number of bytes are read--the last byte is
  1147.           simply copied (since there is nothing to swap it with).
  1148.  
  1149.     `noerror'
  1150.           Continue after read errors.
  1151.  
  1152.     `notrunc'
  1153.           Do not truncate the output file.
  1154.  
  1155.     `sync'
  1156.           Pad every input block to size of `ibs' with trailing zero
  1157.           bytes.
  1158.  
  1159. 
  1160. File: fileutils.info,  Node: install invocation,  Next: mv invocation,  Prev: dd invocation,  Up: Basic operations
  1161.  
  1162. `install': Copy files and set attributes
  1163. ========================================
  1164.  
  1165.    `install' copies files while setting their permission modes and, if
  1166. possible, their owner and group.  Synopses:
  1167.  
  1168.      install [OPTION]... SOURCE DEST
  1169.      install [OPTION]... SOURCE... DIRECTORY
  1170.      install -d [OPTION]... DIRECTORY...
  1171.  
  1172.    In the first of these, the SOURCE file is copied to the DEST target
  1173. file.  In the second, each of the SOURCE files are copied to the
  1174. destination DIRECTORY.  In the last, each DIRECTORY (and any missing
  1175. parent directories) is created.
  1176.  
  1177.    `install' is similar to `cp', but allows you to control the
  1178. attributes of destination files.  It is typically used in Makefiles to
  1179. copy programs into their destination directories.  It refuses to copy
  1180. files onto themselves.
  1181.  
  1182.    The program accepts the following options.  Also see *Note Common
  1183. options::.
  1184.  
  1185. `-c'
  1186.      Ignored; for compatibility with old Unix versions of `install'.
  1187.  
  1188. `-d'
  1189. `--directory'
  1190.      Create each given directory and any missing parent directories,
  1191.      setting the owner, group and mode as given on the command line or
  1192.      to the defaults.  It also gives any parent directories it creates
  1193.      those attributes.  (This is different from the SunOS 4.x
  1194.      `install', which gives directories that it creates the default
  1195.      attributes.)
  1196.  
  1197. `-g GROUP'
  1198. `--group=GROUP'
  1199.      Set the group ownership of installed files or directories to
  1200.      GROUP. The default is the process's current group.  GROUP may be
  1201.      either a group name or a numeric group id.
  1202.  
  1203. `-m MODE'
  1204. `--mode=MODE'
  1205.      Set the permissions for the installed file or directory to MODE,
  1206.      which can be either an octal number, or a symbolic mode as in
  1207.      `chmod', with 0 as the point of departure (*note File
  1208.      permissions::.).  The default mode is 0755--read, write, and
  1209.      execute for the owner, and read and execute for group and other.
  1210.  
  1211. `-o OWNER'
  1212. `--owner=OWNER'
  1213.      If `install' has appropriate privileges (is run as root), set the
  1214.      ownership of installed files or directories to OWNER. The default
  1215.      is `root'.  OWNER may be either a user name or a numeric user ID.
  1216.  
  1217. `-s'
  1218. `--strip'
  1219.      Strip the symbol tables from installed binary executables.
  1220.  
  1221. 
  1222. File: fileutils.info,  Node: mv invocation,  Next: rm invocation,  Prev: install invocation,  Up: Basic operations
  1223.  
  1224. `mv': Move (rename) files
  1225. =========================
  1226.  
  1227.    `mv' moves or renames files (or directories).  Synopsis:
  1228.  
  1229.      mv [OPTION]... SOURCE DEST
  1230.      mv [OPTION]... SOURCE... DIRECTORY
  1231.  
  1232.    If the last argument names an existing directory, `mv' moves each
  1233. other given file into a file with the same name in that directory.
  1234. Otherwise, if only two files are given, it renames the first as the
  1235. second.  It is an error if the last argument is not a directory and
  1236. more than two files are given.
  1237.  
  1238.    `mv' can move only regular files across filesystems.
  1239.  
  1240.    If a destination file exists but is normally unwritable, standard
  1241. input is a terminal, and the `-f' or `--force' option is not given,
  1242. `mv' prompts the user for whether to replace the file.  (You might own
  1243. the file, or have write permission on its directory.)  If the response
  1244. does not begin with `y' or `Y', the file is skipped.
  1245.  
  1246.    The program accepts the following options.  Also see *Note Common
  1247. options::.
  1248.  
  1249. `-b'
  1250. `--backup'
  1251.      Make backups of files that are about to be overwritten or removed.
  1252.      *Note Backup options::.
  1253.  
  1254. `-f'
  1255. `--force'
  1256.      Remove existing destination files and never prompt the user.
  1257.  
  1258. `-i'
  1259. `--interactive'
  1260.      Prompt whether to overwrite each existing destination file,
  1261.      regardless of its permissions.  If the response does not begin
  1262.      with `y' or `Y', the file is skipped.
  1263.  
  1264. `-u'
  1265. `--update'
  1266.      Do not move a nondirectory that has an existing destination with
  1267.      the same or newer modification time.
  1268.  
  1269. `-v'
  1270. `--verbose'
  1271.      Print the name of each file before moving it.
  1272.  
  1273. `-S SUFFIX'
  1274. `--suffix=SUFFIX'
  1275.      Append SUFFIX to each backup file made with `-b'.  *Note Backup
  1276.      options::.
  1277.  
  1278. `-V METHOD'
  1279. `--version-control=METHOD'
  1280.      Change the type of backups made with `-b'.  The METHOD argument
  1281.      can be `numbered' (or `t'), `existing' (or `nil'), or `never' (or
  1282.      `simple').  *Note Backup options::.
  1283.  
  1284. 
  1285. File: fileutils.info,  Node: rm invocation,  Prev: mv invocation,  Up: Basic operations
  1286.  
  1287. `rm': Remove files or directories
  1288. =================================
  1289.  
  1290.    `rm' removes each given FILE.  By default, it does not remove
  1291. directories.  Synopsis:
  1292.  
  1293.      rm [OPTION]... [FILE]...
  1294.  
  1295.    If a file is unwritable, standard input is a terminal, and the `-f'
  1296. or `--force' option is not given, or the `-i' or `--interactive' option
  1297. *is* given, `rm' prompts the user for whether to remove the file.  If
  1298. the response does not begin with `y' or `Y', the file is skipped.
  1299.  
  1300.    The program accepts the following options.  Also see *Note Common
  1301. options::.
  1302.  
  1303. `-d'
  1304. `--directory'
  1305.      Remove directories with `unlink' instead of `rmdir', and don't
  1306.      require a directory to be empty before trying to unlink it.  Only
  1307.      works if you have appropriate privileges.  Because unlinking a
  1308.      directory causes any files in the deleted directory to become
  1309.      unreferenced, it is wise to `fsck' the filesystem after doing this.
  1310.  
  1311. `-f'
  1312. `--force'
  1313.      Ignore nonexistent files and never prompt the user.
  1314.  
  1315. `-i'
  1316. `--interactive'
  1317.      Prompt whether to remove each file.  If the response does not begin
  1318.      with `y' or `Y', the file is skipped.
  1319.  
  1320. `-r'
  1321. `-R'
  1322. `--recursive'
  1323.      Remove the contents of directories recursively.
  1324.  
  1325. `-v'
  1326. `--verbose'
  1327.      Print the name of each file before removing it.
  1328.  
  1329.    One common question is how to remove files whose names being with a
  1330. `-'.  GNU `rm', like every program that uses the `getopt' function to
  1331. parse its arguments, lets you use the `--' option to indicate that all
  1332. following arguments are non-options.  To remove a file called `-f' in
  1333. the current directory, you could type either:
  1334.  
  1335.      rm -- -f
  1336.  
  1337. or:
  1338.  
  1339.      rm ./-f
  1340.  
  1341.    The Unix `rm' program's use of a single `-' for this purpose
  1342. predates the development of the getopt standard syntax.
  1343.  
  1344. 
  1345. File: fileutils.info,  Node: Special file types,  Next: Changing file attributes,  Prev: Basic operations,  Up: Top
  1346.  
  1347. Special file types
  1348. ******************
  1349.  
  1350.    This chapter describes commands which create special types of files
  1351. (and `rmdir', which removes directories, one special file type).
  1352.  
  1353.    Although Unix-like operating systems have markedly fewer special file
  1354. types than others, not *everything* can be treated only as the
  1355. undifferentiated byte stream of "normal files".  For example, when a
  1356. file is created or removed, the system must record this information,
  1357. which it does in a "directory"--a special type of file.  Although you
  1358. can read directories as normal files, if you're curious, in order for
  1359. the system to do its job it must impose a structure, a certain order,
  1360. on the bytes of the file.  Thus it is a "special" type of file.
  1361.  
  1362.    Besides directories, other special file types include named pipes
  1363. (FIFOs), symbolic links, sockets, and so-called "special files".
  1364.  
  1365. * Menu:
  1366.  
  1367. * ln invocation::               Make links between files.
  1368. * mkdir invocation::            Make directories.
  1369. * mkfifo invocation::           Make FIFOs (named pipes).
  1370. * mknod invocation::            Make block or character special files.
  1371. * rmdir invocation::            Remove empty directories.
  1372.  
  1373. 
  1374. File: fileutils.info,  Node: ln invocation,  Next: mkdir invocation,  Up: Special file types
  1375.  
  1376. `ln': Make links between files
  1377. ==============================
  1378.  
  1379.    `ln' makes links between files.  By default, it makes hard links;
  1380. with the `-s' option, it makes symbolic (or "soft") links.  Synopses:
  1381.  
  1382.      ln [OPTION]... SOURCE [DEST]
  1383.      ln [OPTION]... SOURCE... DIRECTORY
  1384.  
  1385.    If the last argument names an existing directory, `ln' links each
  1386. SOURCE file into a file with the same name in that directory.  (But see
  1387. the description of the `--no-dereference' option below.) If only one
  1388. file is given, it links that file into the current directory.
  1389. Otherwise, if only two files are given, it links the first onto the
  1390. second.  It is an error if the last argument is not a directory and more
  1391. than two files are given.  By default, it does not remove existing
  1392. files.
  1393.  
  1394.    A "hard link" is another name for an existing file; the link and the
  1395. original are indistinguishable.  (Technically speaking, they share the
  1396. same inode, and the inode contains all the information about a
  1397. file--indeed, it is not incorrect to say that the inode *is* the file.)
  1398. On all existing implementations, you cannot make a hard links to
  1399. directories, and hard links cannot cross filesystem boundaries.  (These
  1400. restrictions are not mandated by POSIX, however.)
  1401.  
  1402.    "Symbolic links" ("symlinks" for short), on the other hand, are a
  1403. special file type (which not all kernels support; in particular, system
  1404. V release 3 (and older) systems lack symlinks) in which the link file
  1405. actually refers to a different file, by name.  When most operations
  1406. (opening, reading, writing, and so on) are passed the symbolic link
  1407. file, the kernel automatically "dereferences" the link and operates on
  1408. the target of the link.  But some operations (e.g., removing) work on
  1409. the link file itself, rather than on its target.  *Note Symbolic Links:
  1410. (library)Symbolic Links.
  1411.  
  1412.    The program accepts the following options.  Also see *Note Common
  1413. options::.
  1414.  
  1415. `-b'
  1416. `--backup'
  1417.      Make backups of files that are about to be overwritten or removed.
  1418.      *Note Backup options::.
  1419.  
  1420. `-d'
  1421. `-F'
  1422. `--directory'
  1423.      Allow the super-user to make hard links to directories.
  1424.  
  1425. `-f'
  1426. `--force'
  1427.      Remove existing destination files.
  1428.  
  1429. `-i'
  1430. `--interactive'
  1431.      Prompt whether to remove existing destination files.
  1432.  
  1433. `-n'
  1434. `--no-dereference'
  1435.      When used with `--force' and an explicit destination that is a
  1436.      symlink to a directory, remove (or move it with `--backup') that
  1437.      symlink before making any link.
  1438.  
  1439.      When the destination is an actual directory (not a symlink to one),
  1440.      there is no ambiguity.  The link is created in that directory.
  1441.      But when the specified destination is a symlink to a directory,
  1442.      there are two ways to treat the user's request.  `ln' can treat
  1443.      the destination just as it would a normal directory and create the
  1444.      link in it.  On the other hand, the destination can be viewed as a
  1445.      non-directory--as the symlink itself.  In that case, `ln' must
  1446.      delete or backup that symlink before creating the new link.  The
  1447.      default is to treat a destination that is a symlink to a directory
  1448.      just like a directory.
  1449.  
  1450. `-s'
  1451. `--symbolic'
  1452.      Make symbolic links instead of hard links.  This option merely
  1453.      produces an error message on systems that do not support symbolic
  1454.      links.
  1455.  
  1456. `-v'
  1457. `--verbose'
  1458.      Print the name of each file before linking it.
  1459.  
  1460. `-S SUFFIX'
  1461. `--suffix=SUFFIX'
  1462.      Append SUFFIX to each backup file made with `-b'.  *Note Backup
  1463.      options::.
  1464.  
  1465. `-V METHOD'
  1466. `--version-control=METHOD'
  1467.      Change the type of backups made with `-b'.  The METHOD argument
  1468.      can be `numbered' (or `t'), `existing' (or `nil'), or `never' (or
  1469.      `simple').  *Note Backup options::.
  1470.  
  1471. 
  1472. File: fileutils.info,  Node: mkdir invocation,  Next: mkfifo invocation,  Prev: ln invocation,  Up: Special file types
  1473.  
  1474. `mkdir': Make directories
  1475. =========================
  1476.  
  1477.    `mkdir' creates directories with the specified names.  Synopsis:
  1478.  
  1479.      mkdir [OPTION]... NAME...
  1480.  
  1481.    It is not an error if a NAME is already a directory; `mkdir' simply
  1482. proceeds.  But if a NAME is an existing file and is anything but a
  1483. directory, `mkdir' complains.
  1484.  
  1485.    The program accepts the following options.  Also see *Note Common
  1486. options::.
  1487.  
  1488. `-m MODE'
  1489. `--mode=MODE'
  1490.      Set the mode of created directories to MODE, which is symbolic as
  1491.      in `chmod' and uses 0777 (read, write and execute allowed for
  1492.      everyone) minus the bits set in the umask for the point of the
  1493.      departure.  *Note File permissions::.
  1494.  
  1495. `-p'
  1496. `--parents'
  1497.      Make any missing parent directories for each argument.  The mode
  1498.      for parent directories is set to the umask modified by `u+wx'.
  1499.      Ignore arguments corresponding to existing directories.
  1500.  
  1501. 
  1502. File: fileutils.info,  Node: mkfifo invocation,  Next: mknod invocation,  Prev: mkdir invocation,  Up: Special file types
  1503.  
  1504. `mkfifo': Make FIFOs (named pipes)
  1505. ==================================
  1506.  
  1507.    `mkfifo' creates FIFOs (also called "named pipes") with the
  1508. specified names.  Synopsis:
  1509.  
  1510.      mkfifo [OPTION] NAME...
  1511.  
  1512.    A "FIFO" is a special file type that permits independent processes
  1513. to communicate.  One process opens the FIFO file for writing, and
  1514. another for reading, after which data can flow as with the usual
  1515. anonymous pipe in shells or elsewhere.
  1516.  
  1517.    The program accepts the following option.  Also see *Note Common
  1518. options::.
  1519.  
  1520. `-m MODE'
  1521. `--mode=MODE'
  1522.      Set the mode of created FIFOs to MODE, which is symbolic as in
  1523.      `chmod' and uses 0666 (read and write allowed for everyone) minus
  1524.      the bits set in the umask for the point of departure.  *Note File
  1525.      permissions::.
  1526.  
  1527. 
  1528. File: fileutils.info,  Node: mknod invocation,  Next: rmdir invocation,  Prev: mkfifo invocation,  Up: Special file types
  1529.  
  1530. `mknod': Make block or character special files
  1531. ==============================================
  1532.  
  1533.    `mknod' creates a FIFO, character special file, or block special
  1534. file with the specified name.  Synopsis:
  1535.  
  1536.      mknod [OPTION]... NAME TYPE [MAJOR MINOR]
  1537.  
  1538.    Unlike the phrase "special file type" above, the term "special file"
  1539. has a technical meaning on Unix: something that can generate or receive
  1540. data.  Usually this corresponds to a physical piece of hardware, e.g.,
  1541. a printer or a disk.  (These files are typically created at
  1542. system-configuration time.)  The `mknod' command is what creates files
  1543. of this type.  Such devices can be read either a character at a time or
  1544. a "block" (many characters) at a time, hence we say there are "block
  1545. special" files and "character special" files.
  1546.  
  1547.    The arguments after NAME specify the type of file to make:
  1548.  
  1549. `p'
  1550.      for a FIFO
  1551.  
  1552. `b'
  1553.      for a block (buffered) special file
  1554.  
  1555. `c'
  1556.      for a character (buffered) special file
  1557.  
  1558. `u'
  1559.      for a character (unbuffered) special file
  1560.  
  1561.    When making a block or character special file, the major and minor
  1562. device numbers must be given after the file type.
  1563.  
  1564.    The program accepts the following option.  Also see *Note Common
  1565. options::.
  1566.  
  1567. `-m MODE'
  1568. `--mode=MODE'
  1569.      Set the mode of created files to MODE, which is symbolic as in
  1570.      `chmod' and uses 0666 minus the bits set in the umask as the point
  1571.      of departure.  *Note File permissions::.
  1572.  
  1573. 
  1574. File: fileutils.info,  Node: rmdir invocation,  Prev: mknod invocation,  Up: Special file types
  1575.  
  1576. `rmdir': Remove empty directories
  1577. =================================
  1578.  
  1579.    `rmdir' removes empty directories.  Synopsis:
  1580.  
  1581.      rmdir [OPTION]... DIRECTORY...
  1582.  
  1583.    If any DIRECTORY argument does not refer to an existing empty
  1584. directory, it is an error.
  1585.  
  1586.    The program accepts the following option.  Also see *Note Common
  1587. options::.
  1588.  
  1589. `-p'
  1590. `--parents'
  1591.      Remove any parent directories that become empty after an argument
  1592.      DIRECTORY is removed.
  1593.  
  1594.    *Note rm invocation::, for how to remove non-empty directories
  1595. (recursively).
  1596.  
  1597. 
  1598. File: fileutils.info,  Node: Changing file attributes,  Next: Disk usage,  Prev: Special file types,  Up: Top
  1599.  
  1600. Changing file attributes
  1601. ************************
  1602.  
  1603.    Files are not merely contents, a name, and a file type (*note
  1604. Special file types::.).  They also have an owner (a userid), a group (a
  1605. group id), permissions (what the owner can do with the file, what
  1606. people in the group can do, and what everyone else can do), various
  1607. timestamps, and other information.  Collectively, we call all this a
  1608. file's "attributes".
  1609.  
  1610.    These commands change file attributes.
  1611.  
  1612. * Menu:
  1613.  
  1614. * chown invocation::            Change file owners and groups.
  1615. * chgrp invocation::            Change file groups.
  1616. * chmod invocation::            Change access permissions.
  1617. * touch invocation::            Change file timestamps.
  1618.  
  1619. 
  1620. File: fileutils.info,  Node: chown invocation,  Next: chgrp invocation,  Up: Changing file attributes
  1621.  
  1622. `chown': Change file owner and group
  1623. ====================================
  1624.  
  1625.    `chown' changes the user and/or group ownership of each given file.
  1626. Synopsis:
  1627.  
  1628.      chown [OPTION]... NEW-OWNER FILE...
  1629.  
  1630.    The first non-option argument, NEW-OWNER, specifies the new owner
  1631. and/or group, as follows (with no embedded white space):
  1632.  
  1633.      [OWNER] [ [:.] [GROUP] ]
  1634.  
  1635.    Specifically:
  1636.  
  1637. OWNER
  1638.      If only an OWNER (a user name or numeric user id) is given, that
  1639.      user is made the owner of each given file, and the files' group is
  1640.      not changed.
  1641.  
  1642. OWNER`.'GROUP
  1643. OWNER`:'GROUP
  1644.      If the OWNER is followed by a colon or dot and a GROUP (a group
  1645.      name or numeric group id), with no spaces between them, the group
  1646.      ownership of the files is changed as well (to GROUP).
  1647.  
  1648. OWNER`.'
  1649. OWNER`:'
  1650.      If a colon or dot but no group name follows OWNER, that user is
  1651.      made the owner of the files and the group of the files is changed
  1652.      to OWNER's login group.
  1653.  
  1654. `.'GROUP
  1655. `:'GROUP
  1656.      If the colon or dot and following GROUP are given, but the owner
  1657.      is omitted, only the group of the files is changed; in this case,
  1658.      `chown' performs the same function as `chgrp'.
  1659.  
  1660.    The program accepts the following options.  Also see *Note Common
  1661. options::.
  1662.  
  1663. `-c'
  1664. `--changes'
  1665.      Verbosely describe the action for each FILE whose ownership
  1666.      actually changes.
  1667.  
  1668. `-f'
  1669. `--silent'
  1670. `--quiet'
  1671.      Do not print error messages about files whose ownership cannot be
  1672.      changed.
  1673.  
  1674. `-v'
  1675. `--verbose'
  1676.      Verbosely describe the action (or non-action) taken for every FILE.
  1677.  
  1678. `-R'
  1679. `--recursive'
  1680.      Recursively change ownership of directories and their contents.
  1681.  
  1682. 
  1683. File: fileutils.info,  Node: chgrp invocation,  Next: chmod invocation,  Prev: chown invocation,  Up: Changing file attributes
  1684.  
  1685. `chgrp': Change group ownership
  1686. ===============================
  1687.  
  1688.    `chgrp' changes the group ownership of each given FILE to GROUP,
  1689. which can be either a group name or a numeric group id.  Synopsis:
  1690.  
  1691.      chgrp [OPTION]... GROUP FILE...
  1692.  
  1693.    The program accepts the following options.  Also see *Note Common
  1694. options::.
  1695.  
  1696. `-c'
  1697. `--changes'
  1698.      Verbosely describe the action for each FILE whose group actually
  1699.      changes.
  1700.  
  1701. `-f'
  1702. `--silent'
  1703. `--quiet'
  1704.      Do not print error messages about files whose group cannot be
  1705.      changed.
  1706.  
  1707. `-v'
  1708. `--verbose'
  1709.      Verbosely describe the action or non-action taken for every FILE.
  1710.  
  1711. `-R'
  1712. `--recursive'
  1713.      Recursively change the group ownership of directories and their
  1714.      contents.
  1715.  
  1716. 
  1717. File: fileutils.info,  Node: chmod invocation,  Next: touch invocation,  Prev: chgrp invocation,  Up: Changing file attributes
  1718.  
  1719. `chmod': Change access permissions
  1720. ==================================
  1721.  
  1722.    `chmod' changes the access permissions of the named files.  Synopsis:
  1723.  
  1724.      chmod [OPTION]... MODE FILE...
  1725.  
  1726.    `chmod' never changes the permissions of symbolic links, since the
  1727. `chmod' system call cannot change their permissions.  This is not a
  1728. problem since the permissions of symbolic links are never used.
  1729. However, for each symbolic link listed on the command line, `chmod'
  1730. changes the permissions of the pointed-to file.  In contrast, `chmod'
  1731. ignores symbolic links encountered during recursive directory
  1732. traversals.
  1733.  
  1734.    The first non-option argument, MODE, specifies the new permissions.
  1735. See the section below for details.
  1736.  
  1737.    The program accepts the following options.  Also see *Note Common
  1738. options::.
  1739.  
  1740. `-c'
  1741. `--changes'
  1742.      Verbosely describe the action for each FILE whose permissions
  1743.      actually changes.
  1744.  
  1745. `-f'
  1746. `--silent'
  1747. `--quiet'
  1748.      Do not print error messages about files whose permissions cannot be
  1749.      changed.
  1750.  
  1751. `-v'
  1752. `--verbose'
  1753.      Verbosely describe the action or non-action taken for every FILE.
  1754.  
  1755. `-R'
  1756. `--recursive'
  1757.      Recursively change permissions of directories and their contents.
  1758.  
  1759. 
  1760. File: fileutils.info,  Node: touch invocation,  Prev: chmod invocation,  Up: Changing file attributes
  1761.  
  1762. `touch': Change file timestamps
  1763. ===============================
  1764.  
  1765.    `touch' changes the access and/or modification times of the
  1766. specified files.  Synopsis:
  1767.  
  1768.      touch [OPTION]... FILE...
  1769.  
  1770.    If the first FILE would be a valid argument to the `-t' option and
  1771. no timestamp is given with any of the `-d', `-r', or `-t' options and
  1772. the `--' argument is not given, that argument is interpreted as the
  1773. time for the other files instead of as a filename.
  1774.  
  1775.    Any FILE that does not exist is created empty.
  1776.  
  1777.    If changing both the access and modification times to the current
  1778. time, `touch' can change the timestamps for files that the user running
  1779. it does not own but has write permission for.  Otherwise, the user must
  1780. own the files.
  1781.  
  1782.    The program accepts the following options.  Also see *Note Common
  1783. options::.
  1784.  
  1785. `-a'
  1786. `--time=atime'
  1787. `--time=access'
  1788. `--time=use'
  1789.      Change the access time only.
  1790.  
  1791. `-c'
  1792. `--no-create'
  1793.      Do not create files that do not exist.
  1794.  
  1795. `-d'
  1796. `--date=time'
  1797.      Use TIME instead of the current time.  It can contain month names,
  1798.      timezones, `am' and `pm', etc.  *Note `date' invocation:
  1799.      (sh-utils)date invocation.
  1800.  
  1801. `-f'
  1802.      Ignored; for compatibility with BSD versions of `touch'.
  1803.  
  1804. `-m'
  1805. `--time=mtime'
  1806. `--time=modify'
  1807.      Change the modification time only.
  1808.  
  1809. `-r REFERENCE-FILE'
  1810. `--file=REFERENCE-FILE'
  1811.      Use the times of REFERENCE-FILE instead of the current time.
  1812.  
  1813. `-t MMDDhhmm[[CC]YY][.ss]'
  1814.      Use the argument (months, days, hours, minutes, optional century
  1815.      and years, optional seconds) instead of the current time.
  1816.  
  1817. 
  1818. File: fileutils.info,  Node: Disk usage,  Next: Index,  Prev: Changing file attributes,  Up: Top
  1819.  
  1820. Disk usage
  1821. **********
  1822.  
  1823.    No disk can hold an infinite amount of data.  These commands report
  1824. on how much disk storage is in use or available.  (This has nothing
  1825. much to do with how much *main memory*, i.e., RAM, a program is using
  1826. when it runs; for that, you want `ps' or `pstat' or `swap' or some such
  1827. command.)
  1828.  
  1829. * Menu:
  1830.  
  1831. * df invocation::               Report filesystem disk space usage.
  1832. * du invocation::               Estimate file space usage.
  1833. * sync invocation::        Synchronize memory and disk.
  1834.  
  1835. 
  1836. File: fileutils.info,  Node: df invocation,  Next: du invocation,  Up: Disk usage
  1837.  
  1838. `df': Report filesystem disk space usage
  1839. ========================================
  1840.  
  1841.    `df' reports the amount of disk space used and available on
  1842. filesystems.  Synopsis:
  1843.  
  1844.      df [OPTION]... [FILE]...
  1845.  
  1846.    With no arguments, `df' reports the space used and available on all
  1847. currently mounted filesystems (of all types).  Otherwise, `df' reports
  1848. on the filesystem containing each argument FILE.
  1849.  
  1850.    Disk space is shown in 1024-byte blocks by default, unless the
  1851. environment variable `POSIXLY_CORRECT' is set, in which case 512-byte
  1852. blocks are used (unless the `-k' option is given).
  1853.  
  1854.    If an argument FILE is a disk device file containing a mounted
  1855. filesystem, `df' shows the space available on that filesystem rather
  1856. than on the filesystem containing the device node (i.e., the root
  1857. filesystem).  GNU `df' does not attempt to determine the disk usage on
  1858. unmounted filesystems, because on most kinds of systems doing so
  1859. requires extremely nonportable intimate knowledge of filesystem
  1860. structures.
  1861.  
  1862.    The program accepts the following options.  Also see *Note Common
  1863. options::.
  1864.  
  1865. `-a'
  1866. `--all'
  1867.      Include in the listing filesystems that have 0 blocks, which are
  1868.      omitted by default.  Such filesystems are typically special-purpose
  1869.      pseudo-filesystems, such as automounter entries.  Filesystems of
  1870.      type "ignore" or "auto", supported by some operating systems, are
  1871.      only included in the listing if this option is specified.
  1872.  
  1873. `-i'
  1874. `--inodes'
  1875.      List inode usage information instead of block usage.  An inode
  1876.      (short for index node) is contains information about a file such
  1877.      as its owner, permissions, timestamps, and location on the disk.
  1878.  
  1879. `-k'
  1880. `--kilobytes'
  1881.      Print sizes in 1024-byte blocks.  This overrides the environment
  1882.      variable `POSIXLY_CORRECT'.
  1883.  
  1884. `--no-sync'
  1885.      Do not invoke the `sync' system call before getting any usage data.
  1886.      This may make `df' run significantly faster on systems with many
  1887.      disks, but on some systems the results may be slightly out of date.
  1888.  
  1889. `-P'
  1890. `--portability'
  1891.      Use the POSIX output format.  This is like the default format
  1892.      except that the information about each filesystem is always
  1893.      printed on exactly one line; a mount device is never put on a line
  1894.      by itself.  This means that if the mount device name is more than
  1895.      20 characters long (e.g., for some network mounts), the columns
  1896.      are misaligned.
  1897.  
  1898. `--sync'
  1899.      Invoke the `sync' system call before getting any usage data.  On
  1900.      some systems, doing this yields more up to date results, but in
  1901.      general this option makes `df' much slower, especially when there
  1902.      are many or very busy filesystems.
  1903.  
  1904. `-t FSTYPE'
  1905. `--type=FSTYPE'
  1906.      Limit the listing to filesystems of type FSTYPE.  Multiple
  1907.      filesystem types can be specified by giving multiple `-t' options.
  1908.      By default, nothing is omitted.
  1909.  
  1910. `-T'
  1911. `--print-type'
  1912.      Print each filesystem's type.  The types printed here are the same
  1913.      ones you can include or exclude with `-t' and `-x'.  The particular
  1914.      types printed are whatever is supported by the system.  Here are
  1915.      some of the common names (this list is certainly not exhaustive):
  1916.  
  1917.     `nfs'
  1918.           An NFS filesystem, i.e., one mounted over a network from
  1919.           another machine.  This is the one type name which seems to be
  1920.           used uniformly by all systems.
  1921.  
  1922.     `4.2, ufs, efs...'
  1923.           A filesystem on a locally-mounted hard disk.  (The system
  1924.           might even support more than one type here; Linux does.)
  1925.  
  1926.     `hsfs, cdfs'
  1927.           A filesystem on a CD-ROM drive.  HP-UX uses `cdfs', most other
  1928.           systems use `hsfs' (`hs' for `High Sierra').
  1929.  
  1930.     `pcfs'
  1931.           An MS-DOS filesystem, usually on a diskette.
  1932.  
  1933. `-x FSTYPE'
  1934. `--exclude-type=FSTYPE'
  1935.      Limit the listing to filesystems not of type FSTYPE.  Multiple
  1936.      filesystem types can be eliminated by giving multiple `-x'
  1937.      options.  By default, no filesystem types are omitted.
  1938.  
  1939. `-v'
  1940.      Ignored; for compatibility with System V versions of `df'.
  1941.  
  1942. 
  1943. File: fileutils.info,  Node: du invocation,  Next: sync invocation,  Prev: df invocation,  Up: Disk usage
  1944.  
  1945. `du': Estimate file space usage
  1946. ===============================
  1947.  
  1948.    `du' reports the amount of disk space used by the specified files
  1949. and for each subdirectory (of directory arguments).  Synopsis:
  1950.  
  1951.      du [OPTION]... [FILE]...
  1952.  
  1953.    With no arguments, `du' reports the disk space for the current
  1954. directory.  The output is in 1024-byte units by default, unless the
  1955. environment variable `POSIXLY_CORRECT' is set, in which case 512-byte
  1956. blocks are used (unless `-k' is specified).
  1957.  
  1958.    The program accepts the following options.  Also see *Note Common
  1959. options::.
  1960.  
  1961. `-a'
  1962. `--all'
  1963.      Show counts for all files, not just directories.
  1964.  
  1965. `-b'
  1966. `--bytes'
  1967.      Print sizes in bytes, instead of kilobytes.
  1968.  
  1969. `-c'
  1970. `--total'
  1971.      Print a grand total of all arguments after all arguments have been
  1972.      processed.  This can be used to find out the total disk usage of a
  1973.      given set of files or directories.
  1974.  
  1975. `-D'
  1976. `--dereference-args'
  1977.      Dereference symbolic links that are command line arguments.  Does
  1978.      not affect other symbolic links.  This is helpful for finding out
  1979.      the disk usage of directories, such as `/usr/tmp', which are often
  1980.      symbolic links.
  1981.  
  1982. `-k'
  1983. `--kilobytes'
  1984.      Print sizes in kilobytes.  This overrides the environment variable
  1985.      `POSIXLY_CORRECT'.
  1986.  
  1987. `-l'
  1988. `--count-links'
  1989.      Count the size of all files, even if they have appeared already
  1990.      (as a hard link).
  1991.  
  1992. `-L'
  1993. `--dereference'
  1994.      Dereference symbolic links (show the disk space used by the file
  1995.      or directory that the link points to instead of the space used by
  1996.      the link).
  1997.  
  1998. `-s'
  1999. `--summarize'
  2000.      Display only a total for each argument.
  2001.  
  2002. `-S'
  2003. `--separate-dirs'
  2004.      Report the size of each directory separately, not including the
  2005.      sizes of subdirectories.
  2006.  
  2007. `-x'
  2008. `--one-file-system'
  2009.      Skip directories that are on different filesystems from the one
  2010.      that the argument being processed is on.
  2011.  
  2012.    On BSD systems, `du' reports sizes that are half the correct values
  2013. for files that are NFS-mounted from HP-UX systems.  On HP-UX systems,
  2014. it reports sizes that are twice the correct values for files that are
  2015. NFS-mounted from BSD systems.  This is due to a flaw in HP-UX; it also
  2016. affects the HP-UX `du' program.
  2017.  
  2018. 
  2019. File: fileutils.info,  Node: sync invocation,  Prev: du invocation,  Up: Disk usage
  2020.  
  2021. `sync': Synchronize data on disk with memory
  2022. ============================================
  2023.  
  2024.    `sync' writes any data buffered in memory out to disk.  This can
  2025. include (but is not limited to) modified superblocks, modified inodes,
  2026. and delayed reads and writes.  This must be implemented by the kernel;
  2027. The `sync' program does nothing but exercise the `sync' system call.
  2028.  
  2029.    The kernel keeps data in memory to avoid doing (relatively slow) disk
  2030. reads and writes.  This improves performance, but if the computer
  2031. crashes, data may be lost or the filesystem corrupted as a result.
  2032. `sync' ensures everything in memory is written to disk.
  2033.  
  2034.    Any arguments are ignored, except for a lone `--help' or `--version'
  2035. (*note Common options::.).
  2036.  
  2037. 
  2038. File: fileutils.info,  Node: Index,  Prev: Disk usage,  Up: Top
  2039.  
  2040. Index
  2041. *****
  2042.  
  2043. * Menu:
  2044.  
  2045. * - and Unix rm:                        rm invocation.
  2046. * -all:                                 df invocation.
  2047. * -all:                                 du invocation.
  2048. * -all:                                 Which files are listed.
  2049. * -almost-all:                          Which files are listed.
  2050. * -archive:                             cp invocation.
  2051. * -backup:                              mv invocation.
  2052. * -backup:                              Backup options.
  2053. * -backup:                              cp invocation.
  2054. * -backup:                              ln invocation.
  2055. * -bytes:                               du invocation.
  2056. * -changes:                             chgrp invocation.
  2057. * -changes:                             chown invocation.
  2058. * -changes:                             chmod invocation.
  2059. * -classify:                            General output formatting.
  2060. * -count-links:                         du invocation.
  2061. * -date:                                touch invocation.
  2062. * -dereference:                         du invocation.
  2063. * -dereference:                         Which files are listed.
  2064. * -dereference-args:                    du invocation.
  2065. * -directory:                           ln invocation.
  2066. * -directory:                           install invocation.
  2067. * -directory:                           rm invocation.
  2068. * -directory:                           Which files are listed.
  2069. * -dired:                               What information is listed.
  2070. * -escape:                              Formatting the filenames.
  2071. * -exclude-type:                        df invocation.
  2072. * -file:                                touch invocation.
  2073. * -force:                               rm invocation.
  2074. * -force:                               ln invocation.
  2075. * -force:                               mv invocation.
  2076. * -force:                               cp invocation.
  2077. * -format:                              What information is listed.
  2078. * -format:                              General output formatting.
  2079. * -format:                              General output formatting.
  2080. * -format:                              General output formatting.
  2081. * -format:                              General output formatting.
  2082. * -full-time:                           General output formatting.
  2083. * -group:                               install invocation.
  2084. * -help:                                Common options.
  2085. * -hide-control-chars:                  Formatting the filenames.
  2086. * -ignore-backups:                      Which files are listed.
  2087. * -ignore=PATTERN:                      Which files are listed.
  2088. * -inode:                               What information is listed.
  2089. * -inodes:                              df invocation.
  2090. * -interactive:                         ln invocation.
  2091. * -interactive:                         rm invocation.
  2092. * -interactive:                         mv invocation.
  2093. * -interactive:                         cp invocation.
  2094. * -kilobytes:                           du invocation.
  2095. * -kilobytes:                           General output formatting.
  2096. * -kilobytes:                           df invocation.
  2097. * -link:                                cp invocation.
  2098. * -literal:                             Formatting the filenames.
  2099. * -mode:                                install invocation.
  2100. * -mode:                                mknod invocation.
  2101. * -mode:                                mkfifo invocation.
  2102. * -mode:                                mkdir invocation.
  2103. * -no-create:                           touch invocation.
  2104. * -no-dereference:                      ln invocation.
  2105. * -no-dereference:                      cp invocation.
  2106. * -no-group:                            What information is listed.
  2107. * -no-sync:                             df invocation.
  2108. * -numeric-uid-gid:                     General output formatting.
  2109. * -one-file-system:                     cp invocation.
  2110. * -one-file-system:                     du invocation.
  2111. * -owner:                               install invocation.
  2112. * -parents:                             mkdir invocation.
  2113. * -parents:                             cp invocation.
  2114. * -parents:                             rmdir invocation.
  2115. * -portability:                         df invocation.
  2116. * -preserve:                            cp invocation.
  2117. * -print-type:                          df invocation.
  2118. * -quiet:                               chmod invocation.
  2119. * -quiet:                               chgrp invocation.
  2120. * -quiet:                               chown invocation.
  2121. * -quote-name:                          Formatting the filenames.
  2122. * -recursive:                           Which files are listed.
  2123. * -recursive:                           chmod invocation.
  2124. * -recursive:                           rm invocation.
  2125. * -recursive:                           chown invocation.
  2126. * -recursive:                           cp invocation.
  2127. * -recursive:                           chgrp invocation.
  2128. * -reverse:                             Sorting the output.
  2129. * -separate-dirs:                       du invocation.
  2130. * -silent:                              chgrp invocation.
  2131. * -silent:                              chmod invocation.
  2132. * -silent:                              chown invocation.
  2133. * -size:                                What information is listed.
  2134. * -sort:                                Sorting the output.
  2135. * -sort:                                Sorting the output.
  2136. * -sort:                                Sorting the output.
  2137. * -sort:                                Sorting the output.
  2138. * -strip:                               install invocation.
  2139. * -suffix:                              cp invocation.
  2140. * -suffix:                              ln invocation.
  2141. * -suffix:                              Backup options.
  2142. * -suffix:                              mv invocation.
  2143. * -summarize:                           du invocation.
  2144. * -symbolic:                            ln invocation.
  2145. * -symbolic-link:                       cp invocation.
  2146. * -sync:                                df invocation.
  2147. * -tabsize:                             General output formatting.
  2148. * -time:                                touch invocation.
  2149. * -time:                                Sorting the output.
  2150. * -time:                                Sorting the output.
  2151. * -time:                                touch invocation.
  2152. * -total:                               du invocation.
  2153. * -type:                                df invocation.
  2154. * -update:                              cp invocation.
  2155. * -update:                              mv invocation.
  2156. * -verbose:                             ln invocation.
  2157. * -verbose:                             chmod invocation.
  2158. * -verbose:                             mv invocation.
  2159. * -verbose:                             cp invocation.
  2160. * -verbose:                             rm invocation.
  2161. * -verbose:                             chown invocation.
  2162. * -verbose:                             chgrp invocation.
  2163. * -version:                             Common options.
  2164. * -version-control:                     cp invocation.
  2165. * -version-control:                     ln invocation.
  2166. * -version-control:                     mv invocation.
  2167. * -version-control:                     Backup options.
  2168. * -width:                               General output formatting.
  2169. * -1:                                   General output formatting.
  2170. * -A:                                   Which files are listed.
  2171. * -a:                                   touch invocation.
  2172. * -a:                                   du invocation.
  2173. * -a:                                   Which files are listed.
  2174. * -a:                                   df invocation.
  2175. * -a:                                   cp invocation.
  2176. * -b:                                   cp invocation.
  2177. * -b:                                   Formatting the filenames.
  2178. * -B:                                   Which files are listed.
  2179. * -b:                                   Backup options.
  2180. * -b:                                   mv invocation.
  2181. * -b:                                   ln invocation.
  2182. * -b:                                   du invocation.
  2183. * -c:                                   du invocation.
  2184. * -C:                                   General output formatting.
  2185. * -c:                                   chgrp invocation.
  2186. * -c:                                   Sorting the output.
  2187. * -c:                                   install invocation.
  2188. * -c:                                   touch invocation.
  2189. * -c:                                   chown invocation.
  2190. * -c:                                   chmod invocation.
  2191. * -d:                                   rm invocation.
  2192. * -d:                                   Which files are listed.
  2193. * -d:                                   ln invocation.
  2194. * -d:                                   touch invocation.
  2195. * -D:                                   What information is listed.
  2196. * -d:                                   cp invocation.
  2197. * -d:                                   install invocation.
  2198. * -D:                                   du invocation.
  2199. * -f:                                   Sorting the output.
  2200. * -f:                                   chown invocation.
  2201. * -f:                                   cp invocation.
  2202. * -f:                                   chgrp invocation.
  2203. * -f:                                   mv invocation.
  2204. * -f:                                   rm invocation.
  2205. * -F:                                   General output formatting.
  2206. * -f:                                   chmod invocation.
  2207. * -f:                                   ln invocation.
  2208. * -F:                                   ln invocation.
  2209. * -g:                                   ls invocation.
  2210. * -g:                                   install invocation.
  2211. * -G:                                   What information is listed.
  2212. * -i:                                   What information is listed.
  2213. * -i:                                   ln invocation.
  2214. * -I:                                   Which files are listed.
  2215. * -i:                                   df invocation.
  2216. * -i:                                   cp invocation.
  2217. * -i:                                   rm invocation.
  2218. * -i:                                   mv invocation.
  2219. * -k:                                   df invocation.
  2220. * -k:                                   General output formatting.
  2221. * -k:                                   du invocation.
  2222. * -L:                                   du invocation.
  2223. * -l:                                   du invocation.
  2224. * -l:                                   cp invocation.
  2225. * -l:                                   What information is listed.
  2226. * -L:                                   Which files are listed.
  2227. * -m:                                   mknod invocation.
  2228. * -m:                                   install invocation.
  2229. * -m:                                   General output formatting.
  2230. * -m:                                   mkdir invocation.
  2231. * -m:                                   mkfifo invocation.
  2232. * -m:                                   touch invocation.
  2233. * -n:                                   General output formatting.
  2234. * -n:                                   ln invocation.
  2235. * -N:                                   Formatting the filenames.
  2236. * -o:                                   install invocation.
  2237. * -p:                                   rmdir invocation.
  2238. * -p:                                   mkdir invocation.
  2239. * -P:                                   cp invocation.
  2240. * -P:                                   df invocation.
  2241. * -p:                                   cp invocation.
  2242. * -q:                                   Formatting the filenames.
  2243. * -Q:                                   Formatting the filenames.
  2244. * -R:                                   chown invocation.
  2245. * -R:                                   chgrp invocation.
  2246. * -r:                                   touch invocation.
  2247. * -r:                                   Sorting the output.
  2248. * -r:                                   rm invocation.
  2249. * -R:                                   Which files are listed.
  2250. * -R:                                   rm invocation.
  2251. * -R:                                   chmod invocation.
  2252. * -R:                                   cp invocation.
  2253. * -s:                                   cp invocation.
  2254. * -S:                                   Sorting the output.
  2255. * -S:                                   mv invocation.
  2256. * -S:                                   du invocation.
  2257. * -S:                                   Backup options.
  2258. * -S:                                   ln invocation.
  2259. * -s:                                   What information is listed.
  2260. * -s:                                   ln invocation.
  2261. * -s:                                   install invocation.
  2262. * -S:                                   cp invocation.
  2263. * -s:                                   du invocation.
  2264. * -T:                                   General output formatting.
  2265. * -t:                                   Sorting the output.
  2266. * -t:                                   df invocation.
  2267. * -T:                                   df invocation.
  2268. * -u:                                   cp invocation.
  2269. * -u:                                   mv invocation.
  2270. * -u:                                   Sorting the output.
  2271. * -U:                                   Sorting the output.
  2272. * -v:                                   ln invocation.
  2273. * -v:                                   rm invocation.
  2274. * -v:                                   mv invocation.
  2275. * -v:                                   chmod invocation.
  2276. * -V:                                   cp invocation.
  2277. * -V:                                   ln invocation.
  2278. * -v:                                   cp invocation.
  2279. * -v:                                   chgrp invocation.
  2280. * -V:                                   mv invocation.
  2281. * -V:                                   Backup options.
  2282. * -v:                                   chown invocation.
  2283. * -w:                                   General output formatting.
  2284. * -x:                                   du invocation.
  2285. * -x:                                   cp invocation.
  2286. * -x:                                   General output formatting.
  2287. * -x:                                   df invocation.
  2288. * -X:                                   Sorting the output.
  2289. * 4.2 filesystem type:                  df invocation.
  2290. * -, removing files beginning with:     rm invocation.
  2291. * access time, changing:                touch invocation.
  2292. * access permissions, changing:         chmod invocation.
  2293. * access time, sorting files by:        Sorting the output.
  2294. * across, listing files:                General output formatting.
  2295. * adding permissions:                   Setting Permissions.
  2296. * alternate ebcdic, converting to:      dd invocation.
  2297. * append-only directories:              Mode Structure.
  2298. * appropriate privileges:               install invocation.
  2299. * ascii, converting to:                 dd invocation.
  2300. * atime, changing:                      touch invocation.
  2301. * atime, sorting files by:              Sorting the output.
  2302. * attributes, file:                     Changing file attributes.
  2303. * automounter filesystems:              df invocation.
  2304. * b for block special file:             mknod invocation.
  2305. * backslash sequences for filenames:    Formatting the filenames.
  2306. * backup files, ignoring:               Which files are listed.
  2307. * backup files, type made:              Backup options.
  2308. * backup options:                       Backup options.
  2309. * backup suffix:                        Backup options.
  2310. * backups, making:                      cp invocation.
  2311. * backups, making:                      mv invocation.
  2312. * backups, making:                      Backup options.
  2313. * backups, making:                      ln invocation.
  2314. * block (space-padding):                dd invocation.
  2315. * block size:                           dd invocation.
  2316. * block size of conversion:             dd invocation.
  2317. * block size of input:                  dd invocation.
  2318. * block size of output:                 dd invocation.
  2319. * block special files:                  mknod invocation.
  2320. * block special files, creating:        mknod invocation.
  2321. * bs:                                   dd invocation.
  2322. * buffered character file:              mknod invocation.
  2323. * bugs, reporting:                      Introduction.
  2324. * byte-swapping:                        dd invocation.
  2325. * c for character special file:         mknod invocation.
  2326. * cbs:                                  dd invocation.
  2327. * CD-ROM filesystem type:               df invocation.
  2328. * cdfs filesystem type:                 df invocation.
  2329. * changed files, verbosely describing:  chgrp invocation.
  2330. * changed owners, verbosely describing: chown invocation.
  2331. * changing access permissions:          chmod invocation.
  2332. * changing file attributes:             Changing file attributes.
  2333. * changing file ownership:              chown invocation.
  2334. * changing file timestamps:             touch invocation.
  2335. * changing group ownership:             chown invocation.
  2336. * changing group ownership:             chgrp invocation.
  2337. * changing special permissions:         Changing Special Permissions.
  2338. * character special files:              mknod invocation.
  2339. * character special files, creating:    mknod invocation.
  2340. * chgrp:                                chgrp invocation.
  2341. * chmod:                                chmod invocation.
  2342. * chown:                                chown invocation.
  2343. * COLUMNS:                              General output formatting.
  2344. * commas, outputting between files:     General output formatting.
  2345. * common options:                       Common options.
  2346. * conditional executability:            Conditional Executability.
  2347. * conv:                                 dd invocation.
  2348. * converstion block size:               dd invocation.
  2349. * converting while copying a file:      dd invocation.
  2350. * copying directories recursively:      cp invocation.
  2351. * copying existing permissions:         Copying Permissions.
  2352. * copying files and directories:        cp invocation.
  2353. * copying files and setting attributes: install invocation.
  2354. * count:                                dd invocation.
  2355. * cp:                                   cp invocation.
  2356. * crashes and corruption:               sync invocation.
  2357. * creating directories:                 mkdir invocation.
  2358. * creating FIFOs (named pipes):         mkfifo invocation.
  2359. * creating links (hard or soft):        ln invocation.
  2360. * ctime, sorting by:                    Sorting the output.
  2361. * dd:                                   dd invocation.
  2362. * dereferencing symbolic links:         ln invocation.
  2363. * device file, disk:                    df invocation.
  2364. * df:                                   df invocation.
  2365. * dir:                                  dir invocation.
  2366. * directories, copying:                 cp invocation.
  2367. * directories, copying recursively:     cp invocation.
  2368. * directories, creating:                mkdir invocation.
  2369. * directories, creating with given attributes: install invocation.
  2370. * directories, removing (recursively):  rm invocation.
  2371. * directories, removing empty:          rmdir invocation.
  2372. * directories, removing with unlink:    rm invocation.
  2373. * directory listing:                    ls invocation.
  2374. * directory listing, brief:             dir invocation.
  2375. * directory listing, recursive:         Which files are listed.
  2376. * directory listing, verbose:           vdir invocation.
  2377. * dired Emacs mode support:             What information is listed.
  2378. * disk device file:                     df invocation.
  2379. * disk usage:                           Disk usage.
  2380. * disk usage by filesystem:             df invocation.
  2381. * disk usage for files:                 du invocation.
  2382. * diskette filesystem:                  df invocation.
  2383. * DOS filesystem:                       df invocation.
  2384. * du:                                   du invocation.
  2385. * ebcdic, converting to:                dd invocation.
  2386. * efs filesystem type:                  df invocation.
  2387. * empty files, creating:                touch invocation.
  2388. * error messages, omitting:             chmod invocation.
  2389. * error messages, omitting:             chgrp invocation.
  2390. * error messages, omitting:             chown invocation.
  2391. * executables and file type, marking:   General output formatting.
  2392. * execute permission:                   Mode Structure.
  2393. * execute permission, symbolic:         Setting Permissions.
  2394. * existing backup method:               Backup options.
  2395. * extension, sorting files by:          Sorting the output.
  2396. * FIFOs, creating:                      mkfifo invocation.
  2397. * file attributes, changing:            Changing file attributes.
  2398. * file information, preserving:         cp invocation.
  2399. * file ownership, changing:             chown invocation.
  2400. * file permissions:                     File permissions.
  2401. * file permissions, numeric:            Numeric Modes.
  2402. * file space usage:                     du invocation.
  2403. * file timestamps, changing:            touch invocation.
  2404. * file type and executables, marking:   General output formatting.
  2405. * file type, marking:                   General output formatting.
  2406. * file types:                           Special file types.
  2407. * file types, special:                  Special file types.
  2408. * file utilities:                       Top.
  2409. * files beginning with -, removing:     rm invocation.
  2410. * files, copying:                       cp invocation.
  2411. * filesystem disk usage:                df invocation.
  2412. * filesystem space, retrieving current data more slowly: df invocation.
  2413. * filesystem space, retrieving old data more quickly: df invocation.
  2414. * filesystem types, limiting output to certain: df invocation.
  2415. * filesystem types, printing:           df invocation.
  2416. * filesystems and hard links:           ln invocation.
  2417. * filesystems, omitting copying to different: cp invocation.
  2418. * fsck:                                 rm invocation.
  2419. * giving away permissions:              Umask and Protection.
  2420. * grand total of disk space:            du invocation.
  2421. * group owner, default:                 Mode Structure.
  2422. * group ownership of installed files, setting: install invocation.
  2423. * group ownership, changing:            chgrp invocation.
  2424. * group ownerships, changing:           chown invocation.
  2425. * group, permissions for:               Setting Permissions.
  2426. * hard links to directories:            ln invocation.
  2427. * hard links, creating:                 ln invocation.
  2428. * hard links, preserving:               cp invocation.
  2429. * help, online:                         Common options.
  2430. * High Sierra filesystem:               df invocation.
  2431. * history:                              Introduction.
  2432. * holes, copying:                       cp invocation.
  2433. * horizontal, listing files:            General output formatting.
  2434. * hsfs filesystem type:                 df invocation.
  2435. * ibs:                                  dd invocation.
  2436. * if:                                   dd invocation.
  2437. * ignore filesystems:                   df invocation.
  2438. * inode number, printing:               What information is listed.
  2439. * inode usage:                          df invocation.
  2440. * inodes, written buffered:             sync invocation.
  2441. * input block size:                     dd invocation.
  2442. * install:                              install invocation.
  2443. * introduction:                         Introduction.
  2444. * lcase, converting to:                 dd invocation.
  2445. * leading directories, creating missing: install invocation.
  2446. * links, creating:                      ln invocation.
  2447. * Linux filesystem types:               df invocation.
  2448. * ln:                                   ln invocation.
  2449. * local filesystem types:               df invocation.
  2450. * long ls format:                       What information is listed.
  2451. * ls:                                   ls invocation.
  2452. * Makefiles, installing programs in:    install invocation.
  2453. * manipulating files:                   Basic operations.
  2454. * mkdir:                                mkdir invocation.
  2455. * mkfifo:                               mkfifo invocation.
  2456. * mknod:                                mknod invocation.
  2457. * modes and umask:                      Umask and Protection.
  2458. * modes of created directories, setting: mkdir invocation.
  2459. * modes of created FIFOs, setting:      mkfifo invocation.
  2460. * modification time, sorting files by:  Sorting the output.
  2461. * modify time, changing:                touch invocation.
  2462. * MS-DOS filesystem:                    df invocation.
  2463. * mtime, changing:                      touch invocation.
  2464. * multiple changes to permissions:      Multiple Changes.
  2465. * multipliers after numbers:            dd invocation.
  2466. * mv:                                   mv invocation.
  2467. * named pipes, creating:                mkfifo invocation.
  2468. * newer files, copying only:            cp invocation.
  2469. * newer files, moving only:             mv invocation.
  2470. * NFS filesystem type:                  df invocation.
  2471. * NFS mounts from BSD to HP-UX:         What information is listed.
  2472. * NFS mounts from BSD to HP-UX:         du invocation.
  2473. * noerror:                              dd invocation.
  2474. * non-directories, copying as special files: cp invocation.
  2475. * none, sorting option for ls:          Sorting the output.
  2476. * notrunc:                              dd invocation.
  2477. * numbered backup method:               Backup options.
  2478. * numeric modes:                        Numeric Modes.
  2479. * numeric uid and gid:                  General output formatting.
  2480. * obs:                                  dd invocation.
  2481. * octal numbers for file modes:         Numeric Modes.
  2482. * of:                                   dd invocation.
  2483. * one filesystem, restricting du to:    du invocation.
  2484. * one-line output format:               df invocation.
  2485. * other permissions:                    Setting Permissions.
  2486. * output block size:                    dd invocation.
  2487. * output format, portable:              df invocation.
  2488. * owner of file, permissions for:       Setting Permissions.
  2489. * owner, default:                       Mode Structure.
  2490. * ownership of installed files, setting: install invocation.
  2491. * p for FIFO file:                      mknod invocation.
  2492. * parent directories and cp:            cp invocation.
  2493. * parent directories, creating:         mkdir invocation.
  2494. * parent directories, creating missing: install invocation.
  2495. * parent directories, removing:         rmdir invocation.
  2496. * PC filesystem:                        df invocation.
  2497. * pcfs:                                 df invocation.
  2498. * permissions of files:                 File permissions.
  2499. * permissions of installed files, setting: install invocation.
  2500. * permissions, changing access:         chmod invocation.
  2501. * permissions, copying existing:        Copying Permissions.
  2502. * permissions, for changing file timestamps: touch invocation.
  2503. * portable output format:               df invocation.
  2504. * POSIX output format:                  df invocation.
  2505. * POSIX.2:                              Introduction.
  2506. * POSIXLY_CORRECT:                      df invocation.
  2507. * POSIXLY_CORRECT, overridden by df -k: df invocation.
  2508. * POSIXLY_CORRECT, overridden by du -k: du invocation.
  2509. * POSIXLY_CORRECT, overridden by ls -k: General output formatting.
  2510. * POSIXLY_CORRECT, overrides ls -s:     What information is listed.
  2511. * prompting, and ln:                    ln invocation.
  2512. * prompting, and mv:                    mv invocation.
  2513. * prompting, and rm:                    rm invocation.
  2514. * prompts, forcing:                     mv invocation.
  2515. * prompts, omitting:                    mv invocation.
  2516. * read system call, and holes:          cp invocation.
  2517. * read errors, ignoring:                dd invocation.
  2518. * read permission:                      Mode Structure.
  2519. * read permission, symbolic:            Setting Permissions.
  2520. * recursive directory listing:          Which files are listed.
  2521. * recursively changing access permissions: chmod invocation.
  2522. * recursively changing file ownership:  chown invocation.
  2523. * recursively changing group ownership: chgrp invocation.
  2524. * recursively copying directories:      cp invocation.
  2525. * removing empty directories:           rmdir invocation.
  2526. * removing files or directories:        rm invocation.
  2527. * removing permissions:                 Setting Permissions.
  2528. * reverse sorting:                      Sorting the output.
  2529. * rm:                                   rm invocation.
  2530. * rmdir:                                rmdir invocation.
  2531. * root as default owner:                install invocation.
  2532. * seek:                                 dd invocation.
  2533. * setgid:                               Mode Structure.
  2534. * setting permissions:                  Setting Permissions.
  2535. * setuid:                               Mode Structure.
  2536. * simple backup method:                 Backup options.
  2537. * SIMPLE_BACKUP_SUFFIX:                 Backup options.
  2538. * single-column output of files:        General output formatting.
  2539. * size of files, reporting:             What information is listed.
  2540. * size of files, sorting files by:      Sorting the output.
  2541. * skip:                                 dd invocation.
  2542. * sorting ls output:                    Sorting the output.
  2543. * special file types:                   Special file types.
  2544. * special file types:                   Special file types.
  2545. * special files:                        mknod invocation.
  2546. * status time, sorting by:              Sorting the output.
  2547. * sticky:                               Mode Structure.
  2548. * stripping symbol table information:   install invocation.
  2549. * subtracting permissions:              Setting Permissions.
  2550. * superblock, writing:                  sync invocation.
  2551. * swab (byte-swapping):                 dd invocation.
  2552. * swap space, saving text image in:     Mode Structure.
  2553. * symbol table information, stripping:  install invocation.
  2554. * symbolic (soft) links, creating:      ln invocation.
  2555. * symbolic links, copying:              cp invocation.
  2556. * symbolic links, copying with:         cp invocation.
  2557. * symbolic links, dereferencing:        Which files are listed.
  2558. * symbolic links, permissions of:       chmod invocation.
  2559. * symbolic modes:                       Symbolic Modes.
  2560. * sync:                                 sync invocation.
  2561. * sync (padding with nulls):            dd invocation.
  2562. * synchronize disk and memory:          sync invocation.
  2563. * text image, saving in swap space:     Mode Structure.
  2564. * time:                                 touch invocation.
  2565. * timestamps, changing file:            touch invocation.
  2566. * touch:                                touch invocation.
  2567. * truncating output file, avoiding:     dd invocation.
  2568. * u for unbuffered character special file: mknod invocation.
  2569. * ucase, converting to:                 dd invocation.
  2570. * ufs filesystem type:                  df invocation.
  2571. * umask and modes:                      Umask and Protection.
  2572. * unblock:                              dd invocation.
  2573. * unbuffered character special file:    mknod invocation.
  2574. * unlink:                               rm invocation.
  2575. * use time, changing:                   touch invocation.
  2576. * use time, sorting files by:           Sorting the output.
  2577. * utilities for file handling:          Top.
  2578. * vdir:                                 vdir invocation.
  2579. * verbose ls format:                    What information is listed.
  2580. * version number, finding:              Common options.
  2581. * version-control Emacs variable:       Backup options.
  2582. * VERSION_CONTROL:                      Backup options.
  2583. * vertical sorted files in columns:     General output formatting.
  2584. * write permission:                     Mode Structure.
  2585. * write permission, symbolic:           Setting Permissions.
  2586.  
  2587.  
  2588. 
  2589. Tag Table:
  2590. Node: Top2329
  2591. Node: Introduction2991
  2592. Node: Common options3997
  2593. Node: Backup options4590
  2594. Node: File permissions6176
  2595. Node: Mode Structure6762
  2596. Node: Symbolic Modes8895
  2597. Node: Setting Permissions9898
  2598. Node: Copying Permissions12440
  2599. Node: Changing Special Permissions13246
  2600. Node: Conditional Executability15087
  2601. Node: Multiple Changes15709
  2602. Node: Umask and Protection17362
  2603. Node: Numeric Modes18456
  2604. Node: Directory listing20291
  2605. Node: ls invocation20710
  2606. Node: Which files are listed22154
  2607. Node: What information is listed23345
  2608. Node: Sorting the output26198
  2609. Node: General output formatting27962
  2610. Node: Formatting the filenames30499
  2611. Node: dir invocation31143
  2612. Node: vdir invocation31517
  2613. Node: Basic operations31819
  2614. Node: cp invocation32376
  2615. Node: dd invocation36278
  2616. Node: install invocation38760
  2617. Node: mv invocation41092
  2618. Node: rm invocation43105
  2619. Node: Special file types44958
  2620. Node: ln invocation46242
  2621. Node: mkdir invocation50016
  2622. Node: mkfifo invocation51033
  2623. Node: mknod invocation51927
  2624. Node: rmdir invocation53483
  2625. Node: Changing file attributes54109
  2626. Node: chown invocation54918
  2627. Node: chgrp invocation56672
  2628. Node: chmod invocation57525
  2629. Node: touch invocation58842
  2630. Node: Disk usage60508
  2631. Node: df invocation61110
  2632. Node: du invocation65228
  2633. Node: sync invocation67544
  2634. Node: Index68365
  2635. 
  2636. End Tag Table
  2637.