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
Question 2 – Edit “task3” located in “tryhackme”‘s home directory using Nano. What is the flag?
Task 4 – General/Useful Utilities
Question 1 –Ensure you are connected to the deployed instance (10.10.1.43)
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.
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.
Task 5 – Processes 101
Question 1 – Read me!
Question 2 – If we were to launch a process where the previous ID was “300”, what would the ID of this new process be?
Question 3 – If we wanted to cleanly kill a process, what signal would we send it?
Question 4 – Locate the process that is running on the deployed instance (10.10.195.122). What flag is given?
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?
Task 6 – Maintaining Your System: Automation
Question 1 – Ensure you are connected to the deployed instance and look at the running crontabs.
Question 2 – When will the crontab on the deployed instance (10.10.195.122) run?
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.
Task 8 – Maintaining Your System: Logs
Question 1 – Look for the apache2 logs on the deployable Linux machine
Question 2 – What is the IP address of the user who visited the site?
Question 3 – What file did they access?
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”.