
LBI-39040 COMMANDS AND SYNTAX
56
DESCRIPTION:
head copies the first n lines of each filename to the standard output. If no filename is given, head copies lines from the
standard input. The default value of n is 10 lines.
When more than one file is specified, the start of each file will appear as follows:
==> filename <==
Thus, a common way to display a set of short files, identifying each one, is as follows:
pSH+> head -1 filename1 filename2 ...
EXAMPLE:
pSH+> head -3 junk1 junk2 junk3
==> junk1 <==
Line 1 of junk1...
Line 2 of junk1...
Line 3 of junk1...
==> junk2 <==
Line 1 of junk2...
Line 2 of junk2...
Line 3 of junk2...
==> junk3 <==
Line 1 of junk3...
Line 2 of junk3...
Line 3 of junk3...
6.2.9. ls
ls -- lists the contents of a directory
USAGE:
ls [-aACdfFgilqrRs1] filename
DESCRIPTION:
For each filename that is a directory, ls lists the contents of the directory; for each filename that is a file, ls repeats its
name and any other information requested. By default, the output is sorted alphabetically. When no argument is given, the
current directory is listed. When several arguments are given, the arguments are first sorted appropriately, but file arguments
are processed before directories and their contents.
OPTIONS:
• a Lists all entries. In the absence of this option, entries having names beginning with a “.” are not listed.
• A Same as -a, except that “.” and “..” are not listed.
• C Forces multi-column output, with entries sorted down the columns; for ls, this is the default when output is to
a terminal.
• d If the argument is a directory, lists only its name (not its contents); often used with -l to obtain the status of a
directory.
Comentários a estes Manuais