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