TryHackMe-Documentation
  • Linux Fundamentals Part 2
  • Windows Fundamentals 3
Powered by GitBook
On this page
  • 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 - Conclusion and Summaries
  • Task 8 - Linux Fundamentals Part 3

Linux Fundamentals Part 2

Learning to login to a linux machine with ssh and navigate through the file sysem

NextWindows Fundamentals 3

Last updated 1 year ago

Task 1 - Introduction

No answer required, join the room to get started !

Task 2 - Accessing Your Linux Machine Using SSH (Deploy)

  1. Click on 'Start Machine' to deploy the machine

  2. Scroll upwards and click on

  3. Connect to ssh with the following command

// ssh tryhackme@<MACHINE_IP_ADDRESS>

Note that we need to use the IP address of the machine we just deployed , in our case it is : 10.10.2.59

When prompted for a password type - tryhackme. After the connection is established we will see the user name change to tryhackme@linux2

Answer : No answer required, give submit once you're connected through ssh

Task 3 - Introduction to Flags and Switches

Q. Explore the manual page of the ls command

No answer

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

down

Q. What flag would we use to display the output in a "human-readable" way?

-h

Task 4 - Filesystem Interaction Continued

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

touch newnote

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

ASCII text

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

mv myfile myfolder

Q. What are the contents of this file?

THM{FILESYSTEM}

Task 5 - Permissions 101

Q. On the deployable machine, who is the owner of "important"?

user2

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

su user2

Q. Now switch to this user "user2" using the password "user2"

No answer

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

THM{SU_USER2}

Task 6 - Common Directories

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

/var/log

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

/tmp

Q. Name the home directory of the root user

/root

Q. Now apply your learning and navigate through these directories on the deployed Linux machine.

No answer

Task 7 - Conclusion and Summaries

Q. Proceed to the next task to continue your learning

Task 8 - Linux Fundamentals Part 3

Q. Terminate the machine from task 2! Q. Join Linux Fundamentals Part 3!