THM Linux Fundamentals Part 2 - grunt92/IT-Sec-WriteUps GitHub Wiki
Introduction
Let's proceed!
No answer needed
Accessing Your Linux Machine Using SSH (Deploy)
I've logged into the Linux Fundamentals Part 2 machine using SSH!
No answer needed
You have to connect to the deployed machine in order to answer the following tasks. To do so: Press the "Start Machine"-button. After the machine is deployed you have to wait a minute to be able to see the IP-address. When you are able to see the IP-address you can connect to the ssh-port of the server by running the command ssh tryhackme@IP
(with the actual IP address instead of the word IP) and entering tryhackme as the password.
Introduction to Flags and Switches
Explore the manual page of the ls command
No answer needed
To get the manual page use the command man ls
What directional arrow key would we use to navigate down the manual page?
down
What flag would we use to display the output in a "human-readable" way?
-h
Filesystem Interaction Continued
How would you create the file named "newnote"?
touch newnote
On the deployable machine, what is the file type of "unknown1" in "tryhackme's" home directory?
Run file unknown1
to get the answer to the question
ASCII text
How would we move the file "myfile" to the directory "myfolder"
mv myfile myfolder
What are the contents of this file?
Use cat myfile
to get the content of "myfile" to get the flag.
THM{FILESYSTEM}
Continue to apply your knowledge and practice the commands from this task.
No answer needed
Permissions 101
On the deployable machine, who is the owner of "important"?
Run the ls -l
command to list all files in the directories together with their owner.
user2
What would the command be to switch to the user "user2"?
su user2
Now switch to this user "user2" using the password "user2"
No answer needed
Note: Run the su user2
-command
Output the contents of "important", what is the flag?
Run cat important
to get the flag
THM{SU_USER2}
Note: You don't actually have to change to user2 to be able to see the contents of the "important"-file
Common Directories
Read me!
No answer needed
What is the directory path that would we expect logs to be stored in?
/var/log
What root directory is similar to how RAM on a computer works?
/tmp
Name the home directory of the root user
/root
Now apply your learning and navigate through these directories on the deployed Linux machine.
No answer needed
Conclusions and Summaries
Proceed to the next task to continue your learning
No answer needed
Linux Fundamentals Part 3
Terminate the machine from task 2!
No answer needed
Join Linux Fundamentals Part 3!
No answer needed