[파워쉘]linux tail처럼 사용
# Script/Powershell2021. 4. 9. 11:26[파워쉘]linux tail처럼 사용

리눅스에서는 로그확인용으로 tail명령어를 사용할 경우가 많은데 윈도우에서는 파워쉘을 이용해서 구현할수 있습니다. # gc [파일명] -wait 위 명령어로 할 경우 첫 라인부터 전부 출력후에 대기상태로 빠지기때문에 추천하지 않습니다. # gc [파일명] -wait -tail 1 tail옵션을 주어서 1줄씩만 나오게 하는걸로 추천드립니다.

윈도우용 watch 및 tail 사용하기
# Operation System/Windows2018. 8. 1. 14:48윈도우용 watch 및 tail 사용하기

리눅스에서 유용하게 쓰이는 watch 및 tail 명령어등을 윈도우에서 사용할수 있게하는 프로그램들입니다. #>watch.exe watch Copyright (c) Garrett Galloway 2014. Usage: watch [/n ] [/m ] [/h] /n Wait time in seconds between . Default: 2. /m Max number of executions. Default: Unlimited. /? Display this help text. Example: watch /n 4 "dir c:\windows" 출처 : https://sourceforge.net/projects/tailforwin32/ https://www.garrettgalloway.com/index.php?..

image