(usage): Add one or two lines of descriptive text.
authorJim Meyering <jim@meyering.net>
Mon, 22 May 1995 04:30:18 +0000 (04:30 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 22 May 1995 04:30:18 +0000 (04:30 +0000)
16 files changed:
src/chgrp.c
src/chown.c
src/dd.c
src/df.c
src/du.c
src/install.c
src/ln.c
src/ls.c
src/mkdir.c
src/mkfifo.c
src/mknod.c
src/mv.c
src/rm.c
src/rmdir.c
src/sync.c
src/touch.c

index 8c77bd3..9b0dd86 100644 (file)
@@ -312,6 +312,7 @@ usage (status)
     {
       printf ("Usage: %s [OPTION]... GROUP FILE...\n", program_name);
       printf ("\
+Change the group membership of each FILE to GROUP.\n\
 \n\
   -c, --changes           like verbose but report only when a change is made\n\
   -f, --silent, --quiet   suppress most error messages\n\
index 3fc9304..055b618 100644 (file)
@@ -302,6 +302,7 @@ Usage: %s [OPTION]... OWNER[.[GROUP]] FILE...\n\
 ",
              program_name, program_name);
       printf ("\
+Change the owner and/or group of each FILE to OWNER and/or GROUP.\n\
 \n\
   -c, --changes           be verbose whenever change occurs\n\
   -f, --silent, --quiet   suppress most error messages\n\
index 6674bef..aa6513a 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
@@ -1092,6 +1092,7 @@ usage (status)
     {
       printf ("Usage: %s [OPTION]...\n", program_name);
       printf ("\
+Copy a file, converting and formatting according to the options.\n\
 \n\
   bs=BYTES        force ibs=BYTES and obs=BYTES\n\
   cbs=BYTES       convert BYTES bytes at a time\n\
index 2d6f4d2..00c5075 100644 (file)
--- a/src/df.c
+++ b/src/df.c
@@ -518,6 +518,8 @@ usage (status)
     {
       printf ("Usage: %s [OPTION]... [FILE]...\n", program_name);
       printf ("\
+Show information about the filesystem on which each FILE resides,\n\
+or all filesystems by default.\n\
 \n\
   -a, --all                 include filesystems having 0 blocks\n\
   -i, --inodes              list inode information instead of block usage\n\
@@ -530,9 +532,7 @@ usage (status)
   -P, --portability         use the POSIX output format\n\
   -T, --print-type          print filesystem type\n\
       --help                display this help and exit\n\
-      --version             output version information and exit\n\
-\n\
-If no FILEs are given, list all currently mounted filesystems.\n");
+      --version             output version information and exit\n");
     }
   exit (status);
 }
index c5022a6..2f4398b 100644 (file)
--- a/src/du.c
+++ b/src/du.c
@@ -267,8 +267,9 @@ usage (status, reason)
             program_name);
   else
     {
-      printf ("Usage: %s [OPTION]... [PATH]...\n", program_name);
+      printf ("Usage: %s [OPTION]... [FILE]...\n", program_name);
       printf ("\
+Summarize disk usage of each FILE, recursively for directories.\n\
 \n\
   -a, --all                write counts for all files, not just directories\n\
   -b, --bytes              print size in bytes\n\
index f231502..c7d926f 100644 (file)
@@ -538,15 +538,18 @@ usage (status)
       printf ("\
 Usage: %s [OPTION]... SOURCE DEST           (1st format)\n\
   or:  %s [OPTION]... SOURCE... DIRECTORY   (2nd format)\n\
-  or:  %s [OPTION]... DIRECTORY...          (3nd format)\n\
+  or:  %s -d [OPTION]... DIRECTORY...       (3nd format)\n\
 ",
              program_name, program_name, program_name);
       printf ("\
+In first two formats, copy SOURCE to DEST or multiple SOURCE(s) to\n\
+DIRECTORY, while setting permission modes and owner/group.  In third\n\
+format, make all components of the given DIRECTORY(ies).\n\
 \n\
   -c                  (ignored)\n\
   -d, --directory     create [leading] directories, mandatory for 3rd format\n\
   -g, --group=GROUP   set group ownership, instead of process' current group\n\
-  -m, --mode=MODE     set permission mode (as in chmod), instead of 0755\n\
+  -m, --mode=MODE     set permission mode (as in chmod), instead of rw-r--r--\n\
   -o, --owner=OWNER   set ownership (super-user only)\n\
   -s, --strip         strip symbol tables, only for 1st and 2nd formats\n\
       --help          display this help and exit\n\
index 404e9a3..948cb14 100644 (file)
--- a/src/ln.c
+++ b/src/ln.c
@@ -409,6 +409,8 @@ Usage: %s [OPTION]... SOURCE [DEST]\n\
 ",
              program_name, program_name);
       printf ("\
+Link SOURCE to DEST (. by default), or multiple SOURCE(s) to DIRECTORY.\n\
+Makes hard links by default, symbolic links with -s.\n\
 \n\
   -b, --backup                 make backups for removed files\n\
   -d, -F, --directory          hard link directories (super-user only)\n\
@@ -416,7 +418,7 @@ Usage: %s [OPTION]... SOURCE [DEST]\n\
   -n, --no-dereference         with --force, remove destination that is a\n\
                                  symlink to a directory\n\
   -i, --interactive            prompt whether to remove destinations\n\
-  -s, --symbolic               make symbolic links, instead of hard links\n\
+  -s, --symbolic               make symbolic links instead of hard links\n\
   -v, --verbose                print name of each file before linking\n\
   -S, --suffix=SUFFIX          override the usual backup suffix\n\
   -V, --version-control=WORD   override the usual version control\n\
index ed289c3..90d92c5 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -2556,8 +2556,10 @@ usage (status)
             program_name);
   else
     {
-      printf ("Usage: %s [OPTION]... [PATH]...\n", program_name);
+      printf ("Usage: %s [OPTION]... [FILE]...\n", program_name);
       printf ("\
+List information about the FILEs (the current directory by default).\n\
+Sort entries alphabetically if none of -cftuSUX nor --sort.\n\
 \n\
   -A, --almost-all           do not list implied . and ..\n\
   -a, --all                  do not hide entries starting with .\n\
@@ -2609,9 +2611,7 @@ usage (status)
   -7, --7bit                 allow only 7-bit ASCII characters to be printed\n\
   -8, --8bit                 allow 8-bit ISO 8859 characters to be printed\n\
       --help                 display this help and exit\n\
-      --version              output version information and exit\n\
-\n\
-Sort entries alphabetically if none of -cftuSUX nor --sort.\n");
+      --version              output version information and exit");
     }
   exit (status);
 }
index 23932ae..fe0c72f 100644 (file)
@@ -148,9 +148,10 @@ usage (status)
     {
       printf ("Usage: %s [OPTION] DIRECTORY...\n", program_name);
       printf ("\
+Create the DIRECTORY(ies), if they do not already exist.\n\
 \n\
   -p, --parents     no error if existing, make parent directories as needed\n\
-  -m, --mode=MODE   set permission mode (as in chmod), not 0777 - umask\n\
+  -m, --mode=MODE   set permission mode (as in chmod), not rwxrwxrwx - umask\n\
       --help        display this help and exit\n\
       --version     output version information and exit\n");
     }
index 5150668..095abf4 100644 (file)
@@ -131,8 +131,9 @@ usage (status)
             program_name);
   else
     {
-      printf ("Usage: %s [OPTION] PATH...\n", program_name);
+      printf ("Usage: %s [OPTION] NAME...\n", program_name);
       printf ("\
+Create named pipes (FIFOs) with the given NAMEs.\n\
 \n\
   -m, --mode=MODE   set permission mode (as in chmod), not 0666 - umask\n\
       --help        display this help and exit\n\
index 13adf82..29ec39b 100644 (file)
@@ -240,8 +240,9 @@ usage (status)
             program_name);
   else
     {
-      printf ("Usage: %s [OPTION]... PATH TYPE [MAJOR MINOR]\n", program_name);
+      printf ("Usage: %s [OPTION]... NAME TYPE [MAJOR MINOR]\n", program_name);
       printf ("\
+Create the special file NAME of the given TYPE.\n\
 \n\
   -m, --mode=MODE   set permission mode (as in chmod), not 0666 - umask\n\
       --help        display this help and exit\n\
index db43245..4e7fcb8 100644 (file)
--- a/src/mv.c
+++ b/src/mv.c
@@ -473,6 +473,7 @@ Usage: %s [OPTION]... SOURCE DEST\n\
 ",
              program_name, program_name);
       printf ("\
+Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.\n\
 \n\
   -b, --backup                 make backup before removal\n\
   -f, --force                  remove existing destinations, never prompt\n\
index 5f6e6d0..0ed221c 100644 (file)
--- a/src/rm.c
+++ b/src/rm.c
@@ -528,8 +528,9 @@ usage (status)
             program_name);
   else
     {
-      printf ("Usage: %s [OPTION]... PATH...\n", program_name);
+      printf ("Usage: %s [OPTION]... FILE...\n", program_name);
       printf ("\
+Remove (unlink) the FILE(s).\n\
 \n\
   -d, --directory       unlink directory, even if non-empty (super-user only)\n\
   -f, --force           ignore nonexistent files, never prompt\n\
index e17383f..1738155 100644 (file)
@@ -148,6 +148,7 @@ usage (status)
     {
       printf ("Usage: %s [OPTION]... DIRECTORY...\n", program_name);
       printf ("\
+Remove the DIRECTORY(ies), if they are empty.\n\
 \n\
   -p, --parents   remove explicit parent directories if being emptied\n\
       --help      display this help and exit\n\
index acdbcb0..1c1a0b8 100644 (file)
@@ -40,6 +40,7 @@ usage (status)
     {
       printf ("Usage: %s [OPTION]\n", program_name);
       printf ("\
+Force changed blocks to disk, update the super block.\n\
 \n\
   --help      display this help and exit\n\
   --version   output version information and exit\n\
index 06d69a9..f636632 100644 (file)
@@ -378,6 +378,7 @@ usage (status)
     {
       printf ("Usage: %s [OPTION]... FILE...\n", program_name);
       printf ("\
+Update the access and modification times of each FILE to the current time.\n\
 \n\
   -a                     change only the access time\n\
   -c                     do not create any files\n\