16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Portability<br />

Related Information<br />

stty<br />

P<strong>OS</strong>IX.2 User Portability Extension, X/Open Portability Guide, <strong>UNIX</strong> systems.<br />

The +m, –t, and tabspec arguments are all extensions to the P<strong>OS</strong>IX standard.<br />

The –t argument is an extension to the X/Open standard.<br />

tail — Display the last part of a file<br />

Format<br />

Description<br />

Options<br />

File Tag Specific Options<br />

tail[–B] [–f] [–bcklmn [±]number] [file]<br />

tail[–B] [–f] [±number [bcklmn]] [file]<br />

tail without options displays the last ten lines of file. This is useful for seeing the<br />

most recent entries in log files and any file where new information is added on the<br />

end.<br />

The tail command is used with text files. To make a binary file input to the tail<br />

command, use the –c option. If a binary file is input without the –c option being<br />

specified, the entire file is sent to the screen.<br />

±number<br />

Is either of the following:<br />

+number<br />

Skips to line number and then displays the rest of the file. For<br />

example, +100 prints from line 100 to the end of the file.<br />

–number<br />

Prints number lines from the end of the file. For example, -20 prints<br />

the last 20 lines in the file.<br />

You can precede or follow both +number and –number with one of the<br />

following letters to indicate the unit to be used:<br />

v b–blocks<br />

v c–bytes<br />

v k–kilobytes<br />

v l or n–lines<br />

v m–megabytes<br />

The default unit is lines.<br />

–f Monitors a file as it grows. Every two seconds, tail wakes up and prints any<br />

new data at the end of the file. This option is ignored if tail read from the<br />

standard input, and standard input is a pipe.<br />

–B Disable autoconversion of tagged files.<br />

tabs<br />

Chapter 2. Shell command descriptions 615

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!