Is there a command similar to tail command in linux to view log files in windows. Linux Command: $ tail -f /var/log/syslog -f /var/log/myLog.log.
Asked
Active
Viewed 1.8k times
1
-
1Possible duplicate of [http://stackoverflow.com/questions/4426442/unix-tail-equivalent-command-in-windows-powershell](http://stackoverflow.com/questions/4426442/unix-tail-equivalent-command-in-windows-powershell) – Sanket Parmar Jun 17 '14 at 05:36
3 Answers
1
This works in Powershell. Replace [filename] with file,
Get-Content [filename] -Wait

Sam-Graham
- 1,254
- 12
- 20
-
For the above command i can't follow the update in log file that use to be done using -f in tail command. – user3724677 Jun 17 '14 at 05:38
-
Used the following command:Get-Content -Path C:\wamp\www\tt\app\tmp\logs\error.log -Wait -Tail 10 Error: A parameter cannot be found that matches parameter name 'Tail' – user3724677 Jun 18 '14 at 04:51
0
You can download UnxUtils from here which include tail command and other unix commands

Rahul R Dhobi
- 5,668
- 1
- 29
- 38