Tryhackme - Linux Fundamentals Part 1

Tryhackme – Linux Fundamentals Part 1

In this walk through, we will be going through the Linux Fundamentals Part 1 from Tryhackme. This room will covers the basics of the command line and the essential commands, along with the working of the users and groups in Linux. On that note, let’s get started.

Linux Fundamentals Part 1

Task 1 – Introduction

Task 1 - Introduction

Task 2 – A Bit of Background on Linux

Question 1 – What year was the first release of a Linux operating system?

1991

Task 2 - A Bit of Background on Linux

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

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

Task 4 – Running Your First few Commands

Question 1 – If we wanted to output the text “TryHackMe“, what would our command be?

echo

echo TryHackMe

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

whoami
tryhackme

Task 4 - Running Your First few Commands

Task 5 – Interacting With the Filesystem!

Question 1 – On the Linux machine that you deploy, how many folders are there?

ls -l
4

Question 2 – Which directory contains a file?

ls
folder4

Question 3 – What is the contents of this file?

cat

Hello World

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

pwd

/home/tryhackme/folder4

Task 5 - Interacting With the Filesystem!

Task 6 – Searching for Files

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

find access.log
THM{ACCESS}

Task 6 - Searching for Files

Task 7 – An Introduction to Shell Operators

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

&

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

echo password123 > password

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

echo tryhackme >> passwords

Question 4 – Now use the deployed Linux machine to put these into practice

Done

Practicing on Linux machine

Task 7 - An Introduction to Shell Operators

Task 8 – Conclusions & Summaries

Task 8 - Conclusions & Summaries

Task 9 – Linux Fundamentals Part 2

Task 9 - Linux Fundamentals Part 2

Also Read: Tryhackme – Lian_Yu

So that was “Linux Fundamentals Part 1” for you. We looked into the basics of the Linux command line and some common commands that is being used. 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