[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Contents</title>
|
---|
| 3 |
|
---|
[b822811] | 4 | <para>The Fileutils package contains the chgrp, chmod, chown, cp, dd, df, dir,
|
---|
[6370fa6] | 5 | dircolors, du, install, ln, ls, mkdir, mkfifo, mknod, mv, rm, rmdir,
|
---|
[b822811] | 6 | sync, touch and vdir programs.</para>
|
---|
[6370fa6] | 7 |
|
---|
| 8 | </sect2>
|
---|
| 9 |
|
---|
| 10 | <sect2><title>Description</title>
|
---|
| 11 |
|
---|
| 12 | <sect3><title>chgrp</title>
|
---|
| 13 |
|
---|
[b822811] | 14 | <para>chgrp changes the group ownership of each given file to the named group,
|
---|
| 15 | which can be either a group name or a numeric group ID.</para>
|
---|
[6370fa6] | 16 |
|
---|
| 17 | </sect3>
|
---|
| 18 |
|
---|
| 19 | <sect3><title>chmod</title>
|
---|
| 20 |
|
---|
[b822811] | 21 | <para>chmod changes the permissions of each given file according to mode, which
|
---|
[6370fa6] | 22 | can be either a symbolic representation of changes to make, or an octal
|
---|
[b822811] | 23 | number representing the bit pattern for the new permissions.</para>
|
---|
[6370fa6] | 24 |
|
---|
| 25 | </sect3>
|
---|
| 26 |
|
---|
| 27 | <sect3><title>chown</title>
|
---|
| 28 |
|
---|
[b822811] | 29 | <para>chown changes the user and/or group ownership of each given file.</para>
|
---|
[6370fa6] | 30 |
|
---|
| 31 | </sect3>
|
---|
| 32 |
|
---|
| 33 | <sect3><title>cp</title>
|
---|
| 34 |
|
---|
[b822811] | 35 | <para>cp copies files from one place to another.</para>
|
---|
[6370fa6] | 36 |
|
---|
| 37 | </sect3>
|
---|
| 38 |
|
---|
| 39 | <sect3><title>dd</title>
|
---|
| 40 |
|
---|
[b822811] | 41 | <para>dd copies a file (from the standard input to the standard output, by
|
---|
| 42 | default) with a user-selectable blocksize, while optionally performing
|
---|
| 43 | conversions on it.</para>
|
---|
[6370fa6] | 44 |
|
---|
| 45 | </sect3>
|
---|
| 46 |
|
---|
| 47 | <sect3><title>df</title>
|
---|
| 48 |
|
---|
[b822811] | 49 | <para>df displays the amount of disk space available on the filesystem
|
---|
[6370fa6] | 50 | containing each file name argument. If no file name is given, the space
|
---|
[b822811] | 51 | available on all currently mounted filesystems is shown.</para>
|
---|
[6370fa6] | 52 |
|
---|
| 53 | </sect3>
|
---|
| 54 |
|
---|
| 55 | <sect3><title>ls, dir and vdir</title>
|
---|
| 56 |
|
---|
[b822811] | 57 | <para>dir and vdir are versions of ls with different default output formats.
|
---|
[6370fa6] | 58 | These programs list each given file or directory name. Directory contents
|
---|
| 59 | are sorted alphabetically. For ls, files are by default listed in columns,
|
---|
| 60 | sorted vertically, if the standard output is a terminal; otherwise they
|
---|
| 61 | are listed one per line. For dir, files are by default listed in columns,
|
---|
[b822811] | 62 | sorted vertically. For vdir, files are by default listed in long format.</para>
|
---|
[6370fa6] | 63 |
|
---|
| 64 | </sect3>
|
---|
| 65 |
|
---|
| 66 | <sect3><title>dircolors</title>
|
---|
| 67 |
|
---|
[b822811] | 68 | <para>dircolors outputs commands to set the LS_COLOR environment variable.
|
---|
[6370fa6] | 69 | The LS_COLOR variable is use to change the default color scheme used by
|
---|
[b822811] | 70 | ls and related utilities.</para>
|
---|
[6370fa6] | 71 |
|
---|
| 72 | </sect3>
|
---|
| 73 |
|
---|
| 74 | <sect3><title>du</title>
|
---|
| 75 |
|
---|
[b822811] | 76 | <para>du displays the amount of disk space used by each argument and for each
|
---|
| 77 | subdirectory of directory arguments.</para>
|
---|
[6370fa6] | 78 |
|
---|
| 79 | </sect3>
|
---|
| 80 |
|
---|
| 81 | <sect3><title>install</title>
|
---|
| 82 |
|
---|
[b822811] | 83 | <para>install copies files and sets their permission modes and, if possible,
|
---|
| 84 | their owner and group.</para>
|
---|
[6370fa6] | 85 |
|
---|
| 86 | </sect3>
|
---|
| 87 |
|
---|
| 88 | <sect3><title>ln</title>
|
---|
| 89 |
|
---|
[b822811] | 90 | <para>ln makes hard or soft (symbolic) links between files.</para>
|
---|
[6370fa6] | 91 |
|
---|
| 92 | </sect3>
|
---|
| 93 |
|
---|
| 94 | <sect3><title>mkdir</title>
|
---|
| 95 |
|
---|
[b822811] | 96 | <para>mkdir creates directories with a given name.</para>
|
---|
[6370fa6] | 97 |
|
---|
| 98 | </sect3>
|
---|
| 99 |
|
---|
| 100 | <sect3><title>mkfifo</title>
|
---|
| 101 |
|
---|
[b822811] | 102 | <para>mkfifo creates a FIFO with each given name.</para>
|
---|
[6370fa6] | 103 |
|
---|
| 104 | </sect3>
|
---|
| 105 |
|
---|
| 106 | <sect3><title>mknod</title>
|
---|
| 107 |
|
---|
[b822811] | 108 | <para>mknod creates a FIFO, character special file, or block special file
|
---|
| 109 | with the given file name.</para>
|
---|
[6370fa6] | 110 |
|
---|
| 111 | </sect3>
|
---|
| 112 |
|
---|
| 113 | <sect3><title>mv</title>
|
---|
| 114 |
|
---|
[b822811] | 115 | <para>mv moves files from one directory to another or renames files, depending
|
---|
| 116 | on the arguments given to mv.</para>
|
---|
[6370fa6] | 117 |
|
---|
| 118 | </sect3>
|
---|
| 119 |
|
---|
| 120 | <sect3><title>rm</title>
|
---|
| 121 |
|
---|
[b822811] | 122 | <para>rm removes files or directories.</para>
|
---|
[6370fa6] | 123 |
|
---|
| 124 | </sect3>
|
---|
| 125 |
|
---|
| 126 | <sect3><title>rmdir</title>
|
---|
| 127 |
|
---|
[b822811] | 128 | <para>rmdir removes directories, if they are empty.</para>
|
---|
[6370fa6] | 129 |
|
---|
| 130 | </sect3>
|
---|
| 131 |
|
---|
[0f4f81c] | 132 | <sect3><title>shred</title>
|
---|
| 133 |
|
---|
[b822811] | 134 | <para>shred deletes a file securely, overwriting it first so that its
|
---|
| 135 | contents can't be recovered.</para>
|
---|
[0f4f81c] | 136 |
|
---|
| 137 | </sect3>
|
---|
| 138 |
|
---|
[6370fa6] | 139 | <sect3><title>sync</title>
|
---|
| 140 |
|
---|
[b822811] | 141 | <para>sync forces changed blocks to disk and updates the super block.</para>
|
---|
[6370fa6] | 142 |
|
---|
| 143 | </sect3>
|
---|
| 144 |
|
---|
| 145 | <sect3><title>touch</title>
|
---|
| 146 |
|
---|
[b822811] | 147 | <para>touch changes the access and modification times of each given file to the
|
---|
| 148 | current time. Files that do not exist are created empty.</para>
|
---|
[6370fa6] | 149 |
|
---|
| 150 | </sect3>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|