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)

Are there any more questions? Ask them in the Discussion section.

The Hexlet support team or other students will answer you.

About Hexlet learning process

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

Use Hexlet to the fullest extent!

  • Ask questions about the lesson
  • Test your knowledge in quizzes
  • Practice in your browser
  • Track your progress

Sign up or sign in

By sending this form, you agree to our Personal Policy and Service Conditions
Toto Image

Ask questions if you want to discuss a theory or an exercise. Hexlet Support Team and experienced community members can help find answers and solve a problem.