Register to get access to free programming courses with interactive exercises

Viewing files Basics of Bash

Video may be blocked due to browser extensions. In the article you will find a solution to this problem.

Lesson notes

  • cat to view a file
  • head to view first 10 lines
  • tail to view last 10 lines
  • tail -f to view last 10 lines and update in real time
  • grep to filter out lines (e.g. cat towns.txt | grep Norbrige)

Sign up

Programming courses for beginners and experienced developers. Start training for free

  • 130 courses, 2000+ hours of theory
  • 1000 practical tasks in a browser
  • 360 000 students
By sending this form, you agree to our Personal Policy and Service Conditions

Our graduates work in companies:

Bookmate
Health Samurai
Dualboot
ABBYY