Linux Fundamentals Part 2
Learning to login to a linux machine with ssh and navigate through the file sysem
Last updated
Learning to login to a linux machine with ssh and navigate through the file sysem
Last updated
No answer required, join the room to get started !
Click on 'Start Machine' to deploy the machine
Scroll upwards and click on
Connect to ssh with the following command
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
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
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}
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}
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
Q. Proceed to the next task to continue your learning
Q. Terminate the machine from task 2! Q. Join Linux Fundamentals Part 3!