TryHackMe: Linux Fundamentals — Part 2 — a Walkthrough

Jasmine Parks
5 min readMar 22, 2022

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

Task 1: Introduction

Question 1: No answer needed

TryHackMe Screenshot

Task 2: Accessing Your Linux Machine Using SSH (Deploy)

Question 2: No answer needed

Click “Start Machine”

TryHackMe Screenshot

This will load your Active Machine

TryHackMe Screenshot

Click “Start AttackBox”

TryHackMe Screenshot

This will load your Attack Box, click Terminal:

TryHackMe Screenshot

In the command line enter: ssh tryhackme@[IP address of Active Machine]

TryHackMe Screenshot

Enter password: tryhackme

This will load the shell:

TryHackMe Screenshot
TryHackMe Screenshot

Task 3: Introduction to Flags and Switches

Queston 3: Explore the manual page of the ls command

Enter “man ls” into the command line, this will load the man page for the command “ls”

TryHackMe Screenshot
TryHackMe Screenshot
TryHackMe Screenshot

Question 4: What directional arrow key would we use to navigate down the manual page?
Per THM: down

TryHackMe Screenshot

Question 5: What flag would we use to display the output in a “human-readable” way?
Per THM: -h

TryHackMe Screenshot

Task 4: Filesystem Interaction Continued

Question 6: How would you create the file named “newnote”?
Per THM: touch newnote

TryHackMe Screenshot

Question 7: On the deployable machine, what is the file type of “unknown1” in “tryhackme’s” home directory?
Per THM: ASCII text

TryHackMe Screenshot
TryHackMe Screenshot

Question 8: How would we move the file “myfile” to the directory “myfolder”
Per THM: mv myfile myfolder

TryHackMe Screenshot

Question 9: What are the contents of this file?
Per THM: cat myfile; the flag will be revealed

TryHackMe Screenshot
TryHackMe Screenshot

Question 10: Continue to apply your knowledge and practice the commands from this task.

TryHackMe Screenshot

Task 5: Permissions 101

Question 11: On the deployable machine, who is the owner of “important”?
Per THM: user2

TryHackMe Screenshot
TryHackMe Screenshot

Question 12: What would the command be to switch to the user “user2”?
Per THM: su user2

TryHackMe Screenshot

Question 13: Now switch to this user “user2” using the password “user2”
No answer needed

TryHackMe Screenshot
TryHackMe Screenshot

Question 14: Output the contents of “important”, what is the flag?
Per THM: cat important; the flag will be revealed

TryHackMe Screenshot
TryHackMe Screenshot

Task 6: Common Directories

Question 15: Read me!

Question 16: What is the directory path that would we expect logs to be stored in?
Per THM: /var/log

Question 17: What root directory is similar to how RAM on a computer works?
Per THM: /tmp

Question 18: Name the home directory of the root user
Per THM: /root

Question 19: Now apply your learning and navigate through these directories on the deployed Linux machine.

Task 8: Linux Fundamentals Part 3

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

--

--