THM Linux Fundamentals Part 1 - grunt92/IT-Sec-WriteUps GitHub Wiki

Introduction

Let's get started!

No answer needed

A Bit of Background on Linux

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

1991

Interacting With Your First Linux Machine (In-Browser)

I've deployed my first Linux machine!

No answer needed Note: Do start the machine to complete the following tasks

Running Your First few Commands

If we wanted to output the text "TryHackMe", what would our command be?

echo TryHackMe

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

Type in whoamito get the answer:

tryhackme

Interacting With the Filesystem!

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

Run the ls command to get a list of all files and directories located in the current directory:

4

Note: To list every ALL files and directories (even the "hidden" ones) use ls -a

Which directory contains a file?

Run ls * to get a list of all files, directories and files in said directories located in the current directory.

folder4

What is the contents of this file?

Run cat folder4/note.txtto see the content of the file.

Hello World Note: The actual content of the file is "Hello World!" but THM only accepted the answer without the exclamation point.

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

Use cd folder4 to enter the "folder4"-directory, than use pwdto see the complete path of the current directory.

/home/tryhackme/folder4

Searching for Files

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

Run the cd .. command to return to the "tryhackme"-folder. After this run grep "THM" access.log to get the flag.

THM{ACCESS}

And I still haven't found what I'm looking for!

** No answer needed**

An Introduction to Shell Operators

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

&

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

echo password123 > passwords

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

echo tryhackme >> passwords

Now use the deployed machine to put these into practice

No answer needed

Conclusions & Summaries

I'll have a play around!

No answer needed

Linux Fundamentals Part 2

Terminate the machine deployed in this room from task 3.

No answer needed

Join Linux Fundamentals Part 2!

No answer needed