tail(1) 맨 페이지 - 윈디하나의 솔라나라
|
svcadm(8)
을 검색하려면 섹션에서
8
을 선택하고, 맨 페이지 이름에
svcadm
을 입력하고 검색을 누른다.tail(1) User Commands tail(1) NAME tail - deliver the last part of a file SYNOPSIS /usr/bin/tail [±s number [lbcr]] [file] /usr/bin/tail [-lbcr] [file] /usr/bin/tail [± number [lbcf]] [file] /usr/bin/tail [-lbcf] [file] /usr/xpg4/bin/tail [-f | -r] [-c number | -n number] [file] /usr/xpg4/bin/tail [± number [l | b | c] [f]] [file] /usr/xpg4/bin/tail [± number [l] [f | r]] [file] DESCRIPTION The tail utility copies the named file to the standard output beginning at a designated place. If no file is named, the standard input is used. Copying begins at a point in the file indicated by the -c number, -n number, or ± number options (if + number is specified, begins at dis‐ tance number from the beginning; if - number is specified, from the end of the input; if number is NULL, the value 10 is assumed). number is counted in units of lines or byte according to the -c or -n options, or lines, blocks, or bytes, according to the appended option l, b, or c. When no units are specified, counting is by lines. OPTIONS The following options are supported for both /usr/bin/tail and /usr/xpg4/bin/tail. The -r and -f options are mutually exclusive. If both are specified on the command line, the -f option is ignored. -b Units of blocks. -c Units of bytes. -f Follow. If the input-file is not a pipe, the program does not terminate after the line of the input-file has been copied, but enters an endless loop, wherein it sleeps for a second and then attempts to read and copy further records from the input-file. Thus it can be used to monitor the growth of a file that is being written by some other process. -l Units of lines. -r Reverse. Copies lines from the specified starting point in the file in reverse order. The default for r is to print the entire file in reverse order. /usr/xpg4/bin/tail The following options are supported for /usr/xpg4/bin/tail only: -c number The number option-argument must be a decimal integer whose sign affects the location in the file, measured in bytes, to begin the copying: + Copying starts relative to the beginning of the file. − Copying starts relative to the end of the file. none Copying starts relative to the end of the file. The origin for counting is 1; that is, -c +1 represents the first byte of the file, -c −1 the last. -n number Equivalent to -c number, except the starting location in the file is measured in lines instead of bytes. The origin for counting is 1. That is, -n +1 represents the first line of the file, -n −1 the last. OPERANDS The following operand is supported: file A path name of an input file. If no file operands are speci‐ fied, the standard input is used. EXAMPLES Example 1 Using the tail Command The following command prints the last ten lines of the file fred, fol‐ lowed by any lines that are appended to fred between the time tail is initiated and killed. example% tail -f fred The next command prints the last 15 bytes of the file fred, followed by any lines that are appended to fred between the time tail is initiated and killed: example% tail -15cf fred ENVIRONMENT VARIABLES See environ(7) for descriptions of the following environment variables that affect the execution of tail: LANG, LC_ALL, LC_CTYPE, LC_MESSAGES, and NLSPATH. EXIT STATUS The following exit values are returned: 0 Successful completion. >0 An error occurred. ATTRIBUTES See attributes(7) for descriptions of the following attributes: /usr/bin/tail tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐ TRIBUTE VALUE _ Availabilitysystem/core-os _ CSIEnabled /usr/xpg4/bin/tail tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐ TRIBUTE VALUE _ Availabilitysystem/xopen/xcu4 _ CSIEnabled _ Interface StabilityCommitted _ StandardSee standards(7). SEE ALSO cat(1), head(1), more(1), pg(1), attributes(7), environ(7), stan‐ dards(7), dd(8) NOTES Piped tails relative to the end of the file are stored in a buffer, and thus are limited in length. Various kinds of anomalous behavior can happen with character special files. Oracle Solaris 11.4 4 Feb 2015 tail(1)맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3 |
Copyright © 2004-2025 Jo HoSeok. All rights reserved. |