This is the linux foundation from try hack me
Linux foundation 1
For first question it was just the date when linux was invented so
1991
For 2nd questions onwards it was just simple questions that you can answer if you have basic linux knowledge so
2. echo TryHackMe
3. tryhackme
For next we need to start machine and do the certain task that was given
4. 4
5. folder4
6. Hello World!
7. /home/tryhackme/folder4
For next question we just need to find the flag that was inside the folder4
8. THM{ACCESS}
Linux Foundation 2
For the starting questions of Linux foundation 2 it was just basic knowledge of linux.
- &
- echo password123 > passwords
- echo tryhackme >> passwords
For the next questions of linux foundation 2 we needed to use SSH to connect the pawn box to the system.
- down
- -h
For next Questions it was also quite simple as we just need to find some flag and file type
3. touch newnote
5. mv myfile myfolder/
6. THM{FILESYSTEM}
For next Questions it was basic info about the info of user of a file and how to login as the user
7. user2
8. su user2
9. THM{SU_USER2}
Linux Foundation 3
For Linux Foundation 3 you need a bit more knowledge in linux as you need to know some basic file location and types. So for the answer
- /var/log
- /tmp
- /root
For the question you need to login using SSH and using nano you need to read the flag
4. THM{TEXT_EDITORS}
For this question we need to use the http server to get the flag from the webserver
5. THM{WGET_WEBSERVER}
For the next questions you need to know the a bit about the system.
6. 301
7. SIGTERM
8. THM{PROCESSES}
9. systemctl stop myservice
10. systemctl enable myservice
11. fg
For the next question we need to open crontab and for that we have command “crontab -e”. After opening crontab we need to see when the processes that was supposed to run automatically are shown or we can add.
12. @reboot
For the next and last question we need to go to go to /var/log/apache2
13. 10.9.232.111
14. catsanddgs.jpg