In this walk through, we will be going through the Linux Fundamentals Part 3 from Tryhackme. This room covers the terminal text editors, general utilities, Linux processes, and more. On that note, let’s get started.

Task 1 – Introduction

Task 2 – Deploy Your Linux Machine


Task 3 – Terminal Text Editors
Question 1 – Create a file using Nano
Done



Question 2 – Edit “task3” located in “tryhackme”‘s home directory using Nano. What is the flag?


THM{TEXT_EDITORS}

Task 4 – General/Useful Utilities
Question 1 –Ensure you are connected to the deployed instance (10.10.1.43)
Done
Question 2 – Now, use Python 3’s “HTTPServer” module to start a web server in the home directory of the “tryhackme” user on the deployed instance.
Done

Question 3 – Download the file http://10.10.1.43:8000/.flag.txt onto the TryHackMe AttackBox



THM{WGET_WEBSERVER}
Question 4 – Create and download files to further apply your learning — see how you can read the documentation on Python3’s “HTTPServer” module.
Use Ctrl + C to stop the Python3 HTTPServer module once you are finished.
Done

Task 5 – Processes 101
Question 1 – Read me!
Done
Question 2 – If we were to launch a process where the previous ID was “300”, what would the ID of this new process be?
301
Question 3 – If we wanted to cleanly kill a process, what signal would we send it?
SIGTERM
Question 4 – Locate the process that is running on the deployed instance (10.10.195.122). What flag is given?


THM{PROCESSES
Question 5 – What command would we use to stop the service “myservice”?
systemctl myservice stop
Question 6 – What command would we use to start the same service on the boot-up of the system?
systemctl myservice enable
Question 7 – What command would we use to bring a previously backgrounded process back to the foreground?
fg

Task 6 – Maintaining Your System: Automation
Question 1 – Ensure you are connected to the deployed instance and look at the running crontabs.
Done
Question 2 – When will the crontab on the deployed instance (10.10.195.122) run?
@reboot

Task 7 – Maintaining Your System: Package Management
Question 1 – Since TryHackMe instances do not have an internet connection…this task only requires you to read through the material.
Done

Task 8 – Maintaining Your System: Logs
Question 1 – Look for the apache2 logs on the deployable Linux machine
Done

Question 2 – What is the IP address of the user who visited the site?

10.9.232.111
Question 3 – What file did they access?

catsanddogs.jpg

Task 9 – Conclusions & Summaries

Also Read: Tryhackme – Linux Fundamentals Part 1
So that was “Linux Fundamentals Part 3” for you. We looked into terminal text editors, general utilities, Linux processes, maintaining automation, packet management and much more. Solved a bunch of questions to practice the commands on the terminal. This is the third and final part of the three parts series on Tryhackme and this was the last one. On that note, allow me to leave, will meet you in the next one, but remember to “Keep Hacking”.