TryHackMe: Linux Fundamentals — Part 1 a Walkthrough

Jasmine Parks
4 min readMar 22, 2022

This is a step-by-step walkthrough of TryHackMe’s Linux Fundamentals — Part 1 room, with screenshots.

Task 1: Introduction

Question 1: No answer needed

TryHackMe Screenshot

Task 2: A Bit of Background on Linux

Question 2: Research: What year was the first release of a Linux operating system?
Per THM: 1991

TryHackMe Screenshot

Task 3: Interacting With Your First Linux Machine (In-Browser)

Question 3: No answer needed

Click on “Start Machine”

TryHackMe Screenshot

This will load both the Active Machine Information and the Linux terminal needed for this exercise.

TryHackMe Screenshot
TryHackMe Screenshot
TryHackMe Screenshot

Task 4: Running Your First Few Commands

Question 4: If we wanted to output the text “TryHackMe”, what would our command be?

TryHackMe Screenshot

Question 5: What is the username of who you’re logged in as on your deployed Linux machine?

TryHackMe Screenshot
TryHackMe Screenshot

Task 5: Interacting with the File System

Question 6: On the Linux machine that you deploy, how many folders are there?

TryHackMe Screenshot
TryHackMe Screenshot

Question 7: Which directory contains a file?

TryHackMe Screenshot
TryHackMe Screenshot

Question 8: What is the contents of this file?

TryHackMe Screenshot
TryHackMe Screenshot

Question 9: Use the cd command to navigate to this file and find out the new current working directory. What is the path?

TryHackMe Screenshot
TryHackMe Screenshot

Task 6: Searching For Files

Question 10: Use grep on “access.log” to find the flag that has a prefix of “THM”. What is the flag?

TryHackMe Screenshot
TryHackMe Screenshot

Question 11: And I still haven’t found what I’m looking for!
No answer needed

TryHackMe Screenshot

Task 7: An Introduction to Shell Operators

Question 12: If we wanted to run a command in the background, what operator would we want to use?

TryHackMe Screenshot
TryHackMe Screenshot

Question 13: If I wanted to replace the contents of a file named “passwords” with the word “password123”, what would my command be?

TryHackMe Screenshot

Question 14: Now if I wanted to add “tryhackme” to this file named “passwords” but also keep “passwords123”, what would my command be

TryHackMe Screenshot

Question 15: Now use the deployed Linux machine to put these into practice

TryHackMe Screenshot

Task 8: Conclusions and Summaries

Question 16: I’ll have a play around!

Task 9: Linux Fundamentals Part 2

Thank you for reading. If you think I bring you value, please clap and subscribe for more content.

--

--