top of page

TryHackMe : Learn the Linux Fundamentals

PART 1


Embark on the journey of learning the fundamentals of Linux. Learn to run some of the first essential commands on an interactive terminal.

Created by tryhackme and cmnatic




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

1991


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

echo TryHackMe


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

tryhackme


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

4


5. Which directory contains a file?

folder4


6. What is the contents of this file?

Hello World


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

/home/tryhackme/folder4


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

THM{ACCESS}


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

&


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

echo password123 > passwords


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

echo tryhackme >> passwords


 

PART 2


1. What directional arrow key would we use to navigate down the manual page?

Down


2. What flag would we use to display the output in a "human-readable" way?

-h


3. How would you create the file named "newnote"?

touch newnote


4. On the deployable machine, what is the file type of "unknown1" in "tryhackme's" home directory?

ASCII text


5. How would we move the file "myfile" to the directory "myfolder"

mv myfile myfolder


6. What are the contents of this file?

THM{FILESYSTEM}


7. On the deployable machine, who is the owner of "important"?

user2


8. What would the command be to switch to the user "user2"?

su user2


9. Output the contents of "important", what is the flag?

THM{SU_USER2}


10. What is the directory path that would we expect logs to be stored in?

/var/log


11. What root directory is similar to how RAM on a computer works?

/tmp


12. Name the home directory of the root user

/root


 

PART 3


1. Edit "task3" located in "tryhackme"'s home directory using Nano. What is the flag?

THM{TEXT_EDITORS}


2. What are the contents?

THM{WGET_WEBSERVER}


3. If we were to launch a process where the previous ID was "300", what would the ID of this new process be?

301


4. If we wanted to cleanly kill a process, what signal would we send it?

SIGTERM


5. Locate the process that is running on the deployed instance (MACHINE_IP). What flag is given?

THM{PROCESSES}


6. What command would we use to stop the service "myservice"?

systemctl stop myservice


7. What command would we use to start the same service on the boot-up of the system?

systemctl enable myservice


8. What command would we use to bring a previously backgrounded process back to the foreground?

Fg


9. When will the crontab on the deployed instance (MACHINE_IP) run?

@reboot


10. What is the IP address of the user who visited the site?

10.9.232.111


11. What file did they access?

catsanddogs.jpg

Comments


Drop us a Line, Let us Know What You Think

Thanks for submitting!

© AbridgedUp 2021 

bottom of page