Changed sulogin's respawn in inittab to 'once'
[linux_from_scratch.git] / BOOK / appendixa / fileutils-desc.xml
blob1d94d922404e324e423a23e4159fff5f982cb1ef
1 <sect2><title>Contents of Fileutils</title>
3 <para>Last checked against version &fileutils-contversion;.</para>
5 <sect3><title>Program Files</title>
6 <para>chgrp, chmod, chown, cp, dd, df, dir, dircolors, du, install, ln, 
7 ls, mkdir, mkfifo, mknod, mv, rm, rmdir, shred, sync, touch 
8 and vdir</para></sect3>
10 <sect3><title>Descriptions</title>
12 <sect4><title>chgrp</title>
13 <para>chgrp changes the group ownership of each given file to the named group, 
14 which can be either a group name or a numeric group ID.</para></sect4>
16 <sect4><title>chmod</title>
17 <para>chmod changes the permissions of each given file according to mode, which 
18 can be either a symbolic representation of changes to make, or an octal 
19 number representing the bit pattern for the new permissions.</para></sect4>
21 <sect4><title>chown</title>
22 <para>chown changes the user and/or group ownership of each 
23 given file.</para></sect4>
25 <sect4><title>cp</title>
26 <para>cp copies files from one place to another.</para></sect4>
28 <sect4><title>dd</title>
29 <para>dd copies a file (from the standard input to the standard output, by 
30 default) with a user-selectable blocksize, while optionally performing 
31 conversions on it.</para></sect4>
33 <sect4><title>df</title>
34 <para>df displays the amount of disk space available on the filesystem
35 containing each file name argument. If no file name is given, the space 
36 available on all currently mounted filesystems is shown.</para></sect4>
38 <sect4><title>dir, ls and vdir</title>
39 <para>dir and vdir are versions of ls with different default output formats. 
40 These programs list each given file or directory name. Directory contents 
41 are sorted alphabetically.  For ls, files are by default listed in columns, 
42 sorted  vertically, if the standard output is a terminal; otherwise they 
43 are listed one per  line. For dir, files are by default listed in columns,
44 sorted vertically. For vdir, files are by default listed in 
45 long format.</para></sect4>
47 <sect4><title>dircolors</title>
48 <para>dircolors  outputs commands to set the LS_COLOR environment variable.
49 The LS_COLOR variable is use to change the default color scheme used by
50 ls and related utilities.</para></sect4>
52 <sect4><title>du</title>
53 <para>du displays the amount of disk space used by each argument and for each 
54 subdirectory of directory arguments.</para></sect4>
56 <sect4><title>install</title>
57 <para>install copies files and sets their permission modes and, if possible, 
58 their owner and group.</para></sect4>
60 <sect4><title>ln</title>
61 <para>ln makes hard or soft (symbolic) links between files.</para></sect4>
63 <sect4><title>mkdir</title>
64 <para>mkdir creates directories with a given name.</para></sect4>
66 <sect4><title>mkfifo</title>
67 <para>mkfifo creates a FIFO with each given name.</para></sect4>
69 <sect4><title>mknod</title>
70 <para>mknod creates a FIFO, character special file, or block special file 
71 with the given file name.</para></sect4>
73 <sect4><title>mv</title>
74 <para>mv moves files from one directory to another or renames files, depending
75 on the arguments given to mv.</para></sect4>
77 <sect4><title>rm</title>
78 <para>rm removes files or directories.</para></sect4>
80 <sect4><title>rmdir</title>
81 <para>rmdir removes directories, if they are empty.</para></sect4>
83 <sect4><title>shred</title>
84 <para>shred deletes a file securely, overwriting it first so that its 
85 contents can't be recovered.</para></sect4>
87 <sect4><title>sync</title>
88 <para>sync forces changed blocks to disk and updates the 
89 super block.</para></sect4>
91 <sect4><title>touch</title>
92 <para>touch changes the access and modification times of each given file to the 
93 current time. Files that do not exist are created empty.</para></sect4>
95 </sect3>
97 </sect2>