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

tmux - Terminal Muliplexer

tmux is a terminal multiplexer: it enables a number of terminals to be created, accessed, and controlled from a single screen. tmux may be detached from a screen and continue running in the background, then later reattached.

RHEL: firewall-cmd

firewall-cmd - firewall d c om m an d line client

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/