$
Linux Practice
Practice
Tutorials
English
한국어
日本語
中文
terminal
Welcome to Linux Practice Terminal!
Type "help" to see available commands.
user
@linux:
~
$
Viewing File Contents
Reset Lesson
Learn to view and analyze file contents with cat, head, tail, and wc.
Step 1
View the full contents of the log file.
Type: cat documents/log.txt
cat documents/log.txt
Step 2
Show only the first 3 lines of the log file.
Step 3
Show only the last 2 lines of the log file.
Step 4
Count the lines, words, and characters in the todo file.
Step 5
Count only the number of lines in the todo file.