Read file contents without changing them.
Mission 09
Viewing text
Open text, search logs, and inspect output without editing files.
Text and logs
0/25 lessons
0/7 missions
New learnerrank
0XP
0%complete
learner@clairos:/home/learner $
Unix ops lab: type a command, press Enter
Lesson support
What to notice while you play.
Use tail for logs and cat for small files.
Most troubleshooting starts by reading evidence.
- Opening huge logs with cat in a real terminal.
- Searching before checking which file you are reading.
Reference
Commands in this lesson.
cat <file>
Print text file contents.
head|tail [-n N] <file>
Read the beginning or end of a file.
grep [-i] <text> <file>
Find literal text inside a file.
stat <path>
Show fake file details.