The Dutch Hacker
Linux Fundamentals Part 2 tryhackme

Linux Fundamentals Part 2 on Tryhackme

This is the write up for the room Linux Fundamentals part 2 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.

Tasks Linux Fundamentals Part 2

Task 1

Read all that is in this task and press complete

Task 2

Start the machine attached to this room and make the ssh connection

ssh tryhackme@<MACHINE_IP>

use the password provided in the task

Linux Fundamentals Part 2

Task 3

3.1 What directional arrow key would we use to navigate down the manual page?

Type in the following command to get the man pages for LS

man ls
Answer: Downs

3.2 What flag would we use to display the output in a “human-readable” way?

man ls
Answer: -h

Task 4

Read all that is in the task

4.1 How would you create the file named “newnote”?

Answer: touch newnote

4.2 On the deployable machine, what is the file type of “unknown1” in “tryhackme’s” home directory?

Type in the command

file unknown1
Linux Fundamentals Part 2
Answer: ASCII text

4.3 How would we move the file “myfile” to the directory “myfolder”

Answer: mv myfile myfolder

4.4 What are the contents of this file?

Type in the command

cat myfile

Type in the output as the answer

Task 5

Rights on files are very important make sure you read all that is in this task

5.1 On the deployable machine, who is the owner of “important”?

Type in the command to see all the information about all the files in the current directory

ls -al
Linux Fundamentals Part 2

5.2 What would the command be to switch to the user “user2”?

Answer: su user2

5.3 Output the contents of “important”, what is the flag?

Switch to user2 by typing in the following command and user the login name as password

su user2

to output the answer type in the following command

cat important
su user2

Task 6

Reas all that is in the task. The explanation is very well

6.1 What is the directory path that would we expect logs to be stored in?

Answer: /var/log

6.2 What root directory is similar to how RAM on a computer works?

Answer: /tmp

6.3 Name the home directory of the root user

Answer: /root

Task 7

Reas all that is in this task and press complete

Task 8

read all that is in this task and press complete

Most Popular Post

Sign Up

Signup today for free and be the first to get notified on new updates.
* indicates required

Follow Me

Most Popular Post

Contact Us