Yes. you can use tail
on windows, which is a small price to pay to get access to a lot of GNU-tools on windows as well as tail
. Because its bundle with git for windows
, its pretty heavily tested and stable.
First install git-bash
from https://gitforwindows.org/
Next, put git-bash
on windows path using and reboot your workstation:
setx path "%path%;C:\Program Files\Git\bin\"
Now, you should be able to use tail -n 20 -F logging_file.log
to tail any file and show the last 20 lines.
If you are on Linux/Unix and you want to continuously see logs you can use the following command:
ssh username@10.15.3.3 'bash -c "tail -n 20 -F /c/Users/username/Desktop/logging_file.log"'