Today is the time for the first serious tasks in my Linux course.

 

At first, I had to perform two actions - start the virtual machine and then click on the link "Target: Click here to spawn the target system!" - and I could already access the terminal in the basic HTB virtual machine and log in via SSH using the provided and visible IP address in the task - it's important to remember to enter the username and password correctly here - I typed the password into a notepad on the virtual machine - and then I only used copy/paste.

 So it's time to solve these few puzzles for today.

1. "Find out the machine hardware name and submit it as the answer."

Command:  uname -m

Result: x86_64

2. What is the path to htb-student's home directory? 

Command: pwd

Result: /home/htb-student

3. What is the path to the htb-student's mail? 

 Since our home directory is htb-student, the directory for my mail is located at /var/mail/.... and here htb-student.

4. Which shell is specified for the htb-student user? 

Command: echo $SHELL

Result: /bin/bash

5. Which kernel version is installed on the system? (Format: 1.22.3) 

 Command: uname -r

 Result: 4.15.0

6. What is the name of the network interface that MTU is set to 1500? 

Command: ifconfig

And in my case, the MTU 1500 was associated with the network interface named:

ens192

All of this may seem simple and obvious, but to be honest, it took me over an hour. And the best part is that after about 10 minutes, the SSH session froze, and I couldn't reconnect. Luckily, I managed to handle those tasks. I hope every reader will solve them on their own, but in case anyone needs help, they can refer to my answers. However, I'm wondering if it's a good practice to provide the entire solution. Maybe I'll focus on giving just the commands, and everyone can see the results of their execution on their own.

 




 

 

Comments

Popular posts from this blog

Task Scheduling and System Services: A Theoretical Overview

Three tasks related to user management.

Working with Web Services.