
Linux Fundamentals Part 2
This guide contains the answer and steps necessary to get to them for the Linux Fundamentals Part 2 room.
Table of contents
- Introduction to Flags and Switches
- Filesystem Interaction Continued
- Permissions 101
- Common Directories
Introduction to Flags and Switches
We will begin by loggin into the machine via ssh.
ssh tryhackme@10.10.161.119
-
What directional arrow key would we use to navigate down the manual page?
Click for answer
down -
What flag would we use to display the output in a "human-readable" way?
Typing ls --help or man ls will give us the answer.
Click for answer
-h
Filesystem Interaction Continued
- How would you create the file named "newnote"?
For this we can use the touch command.
Click for answer
touch newnote
- On the deployable machine, what is the file type of "unknown1" in "tryhackme's" home directory?
For this we can use the file command.

Click for answer
mv myfile myfolder
- What are the contents of this file?
Use cat to read the contents of a file.

Click for answer
THM{FILESYSTEM}
Permissions 101
- On the deployable machine, who is the owner of "important"?
To find the owner of a file, we can use the command ls -la or ls -lh for less noise.

Click for answer
user2
-
What would the command be to switch to the user "user2"?
Click for answer
su user2 -
Output the contents of "important", what is the flag?
Same as before, use cat.
Click for answer
THM{SU_USER2}
Common Directories
These three questions can be answered using the information provided in the text.
-
What is the directory path that would we expect logs to be stored in?
Click for answer
/var/log -
What root directory is similar to how RAM on a computer works?
Click for answer
/tmp -
Name the home directory of the root user
Click for answer
/root