1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 00:02:09 +02:00
tldr/pages.ko/common/tail.md
K.B.Dharun Krishna 898f711019
pages/*: update GNU coreutils links, sync translation pages (#15543)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-01-18 18:45:33 +05:30

941 B

tail

파일의 마지막 부분을 표시. 같이 보기: head. 더 많은 정보: https://www.gnu.org/software/coreutils/manual/html_node/tail-invocation.html.

  • 파일에서 마지막 'count' 줄 표시:

tail --lines {{줄_수}} {{경로/대상/파일}}

  • 특정 줄 번호부터 파일 출력:

tail --lines +{{줄_수}} {{경로/대상/파일}}

  • 주어진 파일의 끝에서 특정 바이트 수 출력:

tail --bytes {{바이트_수}} {{경로/대상/파일}}

  • 주어진 파일의 마지막 줄을 출력하고 Ctrl + C를 누를 때까지 계속 읽기:

tail --follow {{경로/대상/파일}}

  • 파일이 접근할 수 없는 경우에도 Ctrl + C를 누를 때까지 계속 읽기:

tail --retry --follow {{경로/대상/파일}}

  • '파일'의 마지막 'num' 줄을 표시하고 'n' 초마다 새로 고침:

tail --lines {{줄_수}} --sleep-interval {{초}} --follow {{경로/대상/파일}}