Linux Fundamentals Part 1 : TryHackMe
Task 2 A Bit of Background on Linux
Research: What year was the first release of a Linux operating system?
Ans: 1991
Task 4 Running Your First few Commands
echo : Output any text that we provide
whoami : Find out what user we’re currently logged in as!
If we wanted to output the text “TryHackMe”, what would our command be?
Ans: echo TryHackMe
What is the username of who you’re logged in as on your deployed Linux machine?
Ans: tryhackme
Task 5 Interacting With the Filesystem!
On the Linux machine that you deploy, how many folders are there?
Ans: 4
Which directory contains a file?
Ans: folder4
What is the contents of this file?
Ans: Hello world
Use the cd command to navigate to this file and find out the new current working directory. What is the path?
Ans: /home/tryhackme/folder4
Task 6 Searching for Files
Use grep on “access.log” to find the flag that has a prefix of “THM”. What is the flag?
Ans: THM{ACCESS}
Task 7 An Introduction to Shell Operators
If we wanted to run a command in the background, what operator would we want to use?
Ans: &
If I wanted to replace the contents of a file named “passwords” with the word “password123”, what would my command be?
Ans: echo password123 > passwords
Now if I wanted to add “tryhackme” to this file named “passwords” but also keep “passwords123”, what would my command be
Ans: echo tryhackme >> passwords
Now use the deployed Linux machine to put these into practice
Ans: No answer needed.