Skip to content

Linux Fundamentals Part 1 Banner

Linux Fundamentals Part 2 Logo

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

We will begin by loggin into the machine via ssh.

ssh tryhackme@10.10.161.119
  1. What directional arrow key would we use to navigate down the manual page?

Click for answerdown

  1. 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

  1. How would you create the file named "newnote"?

For this we can use the touch command.

Click for answertouch newnote

  1. On the deployable machine, what is the file type of "unknown1" in "tryhackme's" home directory?

For this we can use the file command.

![File Type(https://github.com/Kevinovitz/TryHackMe_Writeups/raw/main/linuxfundamentalspart2/Linux_Fundamentals_2_File_Type.png)

Click for answerASCII text

  1. How would we move the file "myfile" to the directory "myfolder" 

We can use mv --help to find the correct command.

Move File

Click for answermv myfile myfolder

  1. What are the contents of this file?

Use cat to read the contents of a file.

Myfile

Click for answerTHM{FILESYSTEM}

Permissions 101

  1. 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.

Owner

Click for answeruser2

  1. What would the command be to switch to the user "user2"?

Click for answersu user2

  1. Output the contents of "important", what is the flag?

Same as before, use cat.

Click for answerTHM{SU_USER2}

Common Directories

These three questions can be answered using the information provided in the text.

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

Click for answer/var/log

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

Click for answer/tmp

  1. Name the home directory of the root user 

Click for answer/root