Linux Fundamentals Part 1 | TryHackMe | Walkthrough | INFOCODX

 

Linux Fundamentals


User-Friendly Writeup and Walkthrough of the Linux Fundamentals Part 1 Room on TryHackMe, Tailored for Beginners, Including Answer Key

The Contents of the Room:

  • Task 1: Introduction
  • Task 2: A Bit of Background on Linux
  • Task 3: Interacting With Your First Linux Machine (In-Browser)
  • Task 4: Running Your First few Commands
  • Task 5: Interacting With the Filesystem!
  • Task 6: Searching for Files
  • Task 7: An Introduction to Shell Operators
  • Task 8: Conclusions & Summaries
  • Task 9: Linux Fundamentals Part 2


Task 1: Introduction

----------------------------------------------------

#Let’s get started!

Answer: No answer needed


Task 2: A Bit of Background on Linux

----------------------------------------------------

#What year was the first release of a Linux operating system?

Answer: 1991


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

----------------------------------------------------

#I’ve deployed my first Linux machine!

Start the Machine and deploy your own Linux Machine.

Answer: No answer needed 


Task 4: Running Your First few Commands

----------------------------------------------------

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

We use the command echo to output text in the terminal.

Answer: echo TryHackMe


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

Simply just use the command whoami.

Answer: TryHackMe


Task 5: Interacting With the Filesystem!

----------------------------------------------------

#On the Linux machine that you deploy, how many folders are there?

Use the command ls to output all the folders.

Answer: 4

#Which directory contains a file?

Use the cd and the ls command to check every folder to see which one contains a file.

Answer: folder4

#What is the contents of this file?

Use the cat command to output the content of the file.

Answer: Hello World

 

Use the cd command to navigate to the file and the command pwd to output the current working directory. 


Answer: /home/tryhackme/folder4


Task 6: Searching for Files

----------------------------------------------------

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


Answer: THM{ACCESS}

#And I still haven’t found what I’m looking for!

Answer: No answer needed


Task 7: An Introduction to Shell Operator

----------------------------------------------------

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


Answer: &

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

Answer: echo password 123 > passwords

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

Answer: echo tryhackme >> passwords

#Now use the deployed Linux machine to put these into practice

Answer: No answer needed 


Task 8: Conclusions & Summaries

----------------------------------------------------

#I’ll have a play around!

Answer: No answer needed


Task 9: Linux Fundamentals Part 2

----------------------------------------------------

#Terminate the machine deployed in this room from task 3.

Answer: No answer needed

#Join Linux Fundamentals Part 2!

Answer: No answer needed 

Comments