

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: What Is a Filesystem?
incomplete
2: Filepaths
incomplete
3: Parent Directories
incomplete
4: Absolute vs. Relative Paths
incomplete
5: Files
incomplete
6: Tab Completion
incomplete
7: head and tail
incomplete
8: More and Less
incomplete
9: Touch
incomplete
10: Directories
incomplete
11: Move
incomplete
12: Remove
incomplete
13: Copy
incomplete
14: Home
incomplete
15: Grep
incomplete
16: grep Multiple Files
incomplete
17: Find
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
You're probably familiar with the concept of files from using a GUI like Windows Explorer or Finder.
At their core, files are just blobs of data. The raw bytes in a file can represent anything: text, images, videos, etc.
The cat command is used to view the contents of a file. It's short for "concatenate," which is a fancy way of saying "put things together." It can feel like a confusing name if you're using the cat command to view a single file, but it makes more sense when you're using it to view multiple files at once.
# Print the contents of a file to the terminal
cat file1.txt
# Concatenate the contents of multiple files and print them to the terminal
cat file1.txt file2.txt
Submit the shell checks.