This is the write up for the room Linux Fundamentals part 1 on Tryhackme and it is part of the complete beginners path
Make a connection with VPN or use the attack box on Tryhackme site to connect to the Tryhackme lab environment.
TASK Linux Fundamentals Part 1
Task 1
Read all that is in the task and press complete
Task 2
2.1 Research: What year was the first release of a Linux operating system?
Doing a google search I came across the wiki page Linux kernel version history – Wikipedia
Answer: 1991
Task 3
Start the machine attached to this task as described and make sure you are on split screen

and press completed
Task 4
4.1 If we wanted to output the text “TryHackMe”, what would our command be?
Answer: echo TryHackMe
4.2 What is the username of who you’re logged in as on your deployed Linux machine?
Type in the following command and see the output
whoami
Answer: tryhackme
Task 5
5.1 On the Linux machine that you deploy, how many folders are there?
Type in the following command:
ls

Answer: 4
5.2 Which directory contains a file?
User the command cd to go into the directory and cd .. to go up one folder. Clear all the folders until you find the answer

Answer: folder4
5.3 What is the contents of this file?
Type in the following command:
cat note.txt
Answer: Hello World!
5.4 Use the cd command to navigate to this file and find out the new current working directory. What is the path?
type in te command:
pwd

Answer: /home/tryhackme/folder4
Task 6
6.1 Use grep on “access.log” to find the flag that has a prefix of “THM”. What is the flag?
Make sure you are in the home directory and seeing the acces.log file
to make sure type in the commands
cd ~
ls

Type in the following command to get the answer
grep THM access.log
Task 7
7.1 If we wanted to run a command in the background, what operator would we want to use?
Answer: &
7.2 If I wanted to replace the contents of a file named “passwords” with the word “password123”, what would my command be?
Answer: echo password123 > passwords
7.3 Now if I wanted to add “tryhackme” to this file named “passwords” but also keep “passwords123”, what would my command be
Answer: echo tryhacme >> passwords
Task 8
Read all that is in the task and press complete
Task 9
Read all that is in the task and press complete