
This post is part of my ongoing TryHackMe journey. I’m documenting each room to reinforce what I’ve learned, along with additional research and explanations that helped me better understand the concepts.
Date Completed: 8/9/2025
Difficulty: Easy
Overview
This room went over some essential Linux commands.
Key Concepts Covered
Linux commands on how to interact with and search the filesystem
Notes
Linux is an umbrella term for multiple OS's that are UNIX based
Command | Description | Example |
|---|---|---|
echo | Outputs text | echo "Hello world" |
whoami | Outputs username you're logged in as | whoami |
ls | Short for Listing. Lists files in the current or specified directory | ls ls DirectoryName1 |
cd | Short for Change Directory. Navigates to the prior directory or the specified directory | cd cd DirectoryName1 |
cat | Short for Concatenate. Outputs file's content | cat FileName1.txt |
pwd | Short for Print Working Directory. Outputs full file path of current directory | pwd |
find -name | Searches for specified file and outputs directory path | find -name FileName1.txt |
grep | Searches for specific values within a specified file | grep "Example Text" FileName1.txt |
& | Executes command and let it run in the background so you can continue to use terminal for other commands | |
&& | Combines multiple commands but only executes next command if prior command is successful | |
> | Known as output redirector. The output of a command is sent to the specified file. If there are any values in the file, they'll be overwritten. | echo "Hello world" > FileName1.txt |
>> | Also known as output redirector. Similar to > but instead of overwriting, this operator appends to the file | echo "Hello world" >> FileName1.txt |
mkdir | Creates new directory | mkdir DirectoryNumero2 |
touch | Creates new file | touch SuperFile9.txt |

