Skip to main content

Powershell: head and tail command

Use head or tail to skim the first or last 5 lines.

Show the first 5 lines

Get-Content filename -head 5

Show the last 5 lines

Get-Content filename -tail 5

Keep monitoring the last 5 lines

Get-Content filename -tail 5 -wait

Popular posts from this blog

Wireguard VPN: Notes

Notes while trying Wireguard VPN on some of my testbeds.

Arch Linux: Notes from the Field

Official website of Arch Linux, a lightweight and flexible Linux® distribution that tries to Keep It Simple: https://www.archlinux.org/