TryHackMe: Linux Fundamentals — Part 2 — a Walkthrough
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
Task 2: Accessing Your Linux Machine Using SSH (Deploy)
Question 2: No answer needed
Click “Start Machine”
This will load your Active Machine
Click “Start AttackBox”
This will load your Attack Box, click Terminal:
In the command line enter: ssh tryhackme@[IP address of Active Machine]
Enter password: tryhackme
This will load the shell:
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”
Question 4: What directional arrow key would we use to navigate down the manual page?
Per THM: down
Question 5: What flag would we use to display the output in a “human-readable” way?
Per THM: -h
Task 4: Filesystem Interaction Continued
Question 6: How would you create the file named “newnote”?
Per THM: touch newnote
Question 7: On the deployable machine, what is the file type of “unknown1” in “tryhackme’s” home directory?
Per THM: ASCII text
Question 8: How would we move the file “myfile” to the directory “myfolder”
Per THM: mv myfile myfolder
Question 9: What are the contents of this file?
Per THM: cat myfile; the flag will be revealed
Question 10: Continue to apply your knowledge and practice the commands from this task.
Task 5: Permissions 101
Question 11: On the deployable machine, who is the owner of “important”?
Per THM: user2
Question 12: What would the command be to switch to the user “user2”?
Per THM: su user2
Question 13: Now switch to this user “user2” using the password “user2”
No answer needed
Question 14: Output the contents of “important”, what is the flag?
Per THM: cat important; the flag will be revealed
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.