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

Free online resources to practice

Photo Credit:  johnhain  - pixabay.com There are many free online resources for us to practice almost any or specific skills as long as we have an Internet connection.

Check free space with disk free and disk usage

df -h -h: display result in KB, MB, GB Check free disk with disk free (df)

Coursera: Notes

Learn Without Limits - Build skills with courses, certificates, and degrees online from world-class universities and companies.