Tryhackme - Linux Fundamentals Part 2

Tryhackme – Linux Fundamentals Part 2

In this walk through, we will be going through the Linux Fundamentals Part 2 from Tryhackme. This room will continue our Linux learning journey with part two. We will be learning how to log in to a Linux machine using SSH, how to advance our commands, file system interaction. On that note, let’s get started.

Linux Fundamentals Part 2

Task 1 – Introduction

Task 1 - Introduction

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

Deploying machine

Deploying Your Linux machine

SSH login

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

Task 3 – Introduction to Flags and Switches

Question 1 – Explore the manual page of the ls command

Done

User commands

Task 3 - Introduction to Flags and Switches

Task 4 – Filesystem Interaction Continued

Question 1 – How would you create the file named “newnote”?

touch newnote

touch newnote

Question 2 – On the deployable machine, what is the file type of “unknown1” in “tryhackme’s” home directory?

file unknown1

ASCII text

Question 3 – How would we move the file “myfile” to the directory “myfolder”

mv myfile myfolder

mv myfile myfolder

Question 4 – What are the contents of this file?

cat myfile

THM{FILESYSTEM}

Question 5 – Continue to apply your knowledge and practice the commands from this task.

Done
Task 4 - Filesystem Interaction Continued

Task 5 – Permissions 101

Question 1 – On the deployable machine, who is the owner of “important”?

owner of important

user2

Question 2 – What would the command be to switch to the user “user2”?

su user2

su user2

Question 3 – Now switch to this user “user2” using the password “user2”

Done

Question 4 – Output the contents of “important”, what is the flag?

cat important

THM{SU_USER2}

Task 5 - Permissions 101

Task 6 – Common Directories

Question 1 – Read me!

Done

Question 2 – What is the directory path that would we expect logs to be stored in?

logs directory

/var/log

Question 3 – What root directory is similar to how RAM on a computer works?

tmp directory

/tmp

Question 4 – Name the home directory of the root user

Root user home directory
/root
Task 6 - Common Directories

Task 7 – Conclusions and Summaries

Task 7 - Conclusions and Summaries

Task 8 – Linux Fundamentals Part 3

Task 8 - Linux Fundamentals Part 3

Also Read: Tryhackme – Linux Agency

So that was “Linux Fundamentals Part 2” for you. In the previous part, we have covered the basics of Linux and this we looked into the Linux system navigation and file structure and commands associated with it. Further, solved a bunch of questions to practice the commands on the terminal. This is a part of a three parts series on Tryhackme and i will be covering all of them. Till then, allow me to leave, will meet you in the next one, but remember to “Keep Hacking”.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top