Linux Fundamental Part 2Tryhackme Walkthrough/Writeup

Shivam Taneja
3 min readSep 3, 2022

Tasks Linux Fundamentals Part 2

· Task 1: Introduction

· Task 2: Accessing Your Linux Machine Using SSH (Deploy)

· Task 3: Introduction to Flags and Switches

· Task 4: Filesystem Interaction Continued

· Task 5: Permissions 101

· Task 6: Common Directories

· Task 7: Conclusions and Summaries

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

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?

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

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

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

Task 6

Read 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

SUMMARY

Advancing your use of commands by providing flags, switches and where you can go to learn about these for each command (man pages)

Some more commands that you’ll frequently be using to interact with the file system and its contents.

A brief introduction to file permissions & switching users.

#Join Linux Fundamentals Part 1

#Join Linux Fundamentals Part 3

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Shivam Taneja
Shivam Taneja

Written by Shivam Taneja

IT Security Consultant, Researcher, Penetration Tester & Hacker.

No responses yet

Write a response