Co robi TAIL użycie. Konsola If more than one file is specified, the output includes a header at.

Czy przydatne?

Polecenie tail

Wykonanie, użycie: Print the last 10 lines of each named file (or standard input if - is specified) on standard output. If more than one file is specified, the output includes a header at the beginning of each file:

= =>filename<= =

For options that take the number of bytes or lines as an argument, you prepend a plus sign (+) to num to begin printing with the numth item. These options can also specify a block size:

b

512 bytes

k

1 kilobyte

m

1 megabyte

Opcje wykonania tail w konsoli

-c num, --bytes num

Print the last num bytes.

-f, --follow[=name|descriptor]

Don't quit at the end of file; "follow" file as it grows and end when the user presses Ctrl-C. Following by file descriptor is the default, so -f, --follow, and --follow=descriptor are equivalent. Use --follow=name to track the actual name of a file even if the file is renamed, as with a rotated logfile.

-F

Identical to --follow=name --retry.

--help

Print a help message and exit.

-n num, --lines=num

Print the last num lines.

--max-unchanged-stats=num

Used with --follow=name to reopen a file whose size hasn't changed after num iterations (default 5), to see if it has been unlinked or renamed (as with rotated logfiles).

--pid=pid

Used with -f to end when process ID pid dies.

-q, --quiet, --silent

Suppress filename headers.

--retry

With -f, keep trying to open a file even if it isn't accessible when tail starts or if it becomes inaccessible later.

-s sec, --sleep-interval=sec

With -f, sleep approximately sec seconds between iterations. Default is 1 second.

-v, --verbose

With multiple files, always output the filename headers.

--version

Print version information and then exit.

Przykłady tail działanie w Słownik polecenie T

Przykład TAIL użycie :
Jak użyć Print the filename of the terminal connected to standard input co znaczy.
Przykład TAIL użycie :
Jak użyć Trace route taken by packets to reach network host. traceroute attempts tracing by launching UDP probe packets with a small TTL (time-to-live), then listening for an ICMP time exceeded reply from a krzyżówka.
Przykład TAIL użycie :
Jak użyć Telnet protocol server. telnetd is invoked by the Internet server for requests to connect to the Telnet port (port 23 by default). telnetd allocates a pseudo-terminal device for a client, thereby co to jest.
Przykład TAIL użycie :
Jak użyć System administration command. Signal init to change the system's runlevel. telinit is actually just a link to init , the ancestor of all processes słownik.
Przykład TAIL użycie :
Jak użyć expression and, if its value is true, return a zero exit status; otherwise, return a nonzero exit status. In shell scripts, you can use the alternate form [expression ] . This command is generally czym jest.