What is the path to the htb-students mail?

Linux Fundamentals - System Information

1.What is the path to the htb-students mail?

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

I have looked for about an hour and can’t find the answers for both of them.

@Keato said:

Linux Fundamentals - System Information

1.What is the path to the htb-students mail?

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

I have looked for about an hour and can’t find the answers for both of them.

Start with cat /etc/passwd

Thsi gives you the shell for the htb-student account and tells you the path where the mailbox lives.

You can validate the path with ls to confirm there is a htb-student folder there.

Hi @Keato ,

1.What is the path to the htb-students mail?

$ env | grep MAIL
MAIL=/var/spool/mail/$USER

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

$ env | grep SHELL
SHELL=/bin/bash

5 Likes

Spoiler Removed

@CyberNand Thanks for your answer! I was flooding my keyboard with tears until I tried those commands.

@CyberNand Thanks!!

@hackerhokage said:

please help me i’m stuck with the same i tried /var/spool/mail but there are only dot files.

Did you try this?

guys can you help me on this?, i started with this basic course, and trying to get to answer the question “What is the path to the htb-students mail?”

getting the answer is completely not explained in the course, and is way over my noobskill level yet.

is this whole site way clumsy with over the top questions like this one? because then it is a waste of time. I fly throught the learning texts, and the first questions i understand, and then this NASA brainsurgeryskilled apes in space level question!.. hmmzz

going to try with a fresh mind tomorrow again. :smiley:

curious what you all think of this…

cheerz!

@Protaxian said:

guys can you help me on this?, i started with this basic course, and trying to get to answer the question “What is the path to the htb-students mail?”

getting the answer is completely not explained in the course, and is way over my noobskill level yet.

is this whole site way clumsy with over the top questions like this one? because then it is a waste of time. I fly throught the learning texts, and the first questions i understand, and then this NASA brainsurgeryskilled apes in space level question!.. hmmzz

going to try with a fresh mind tomorrow again. :smiley:

curious what you all think of this…

cheerz!

Did you look at this?

i was a bit stupid muppet… haha. i forget i wasnt SSH’ed anymore. So it’s sleep time for me now…

Still thanks for the link though. tomorrow i try again with some fresh brains!

use env command

1 Like

If you, like me, were pulling your hair out on this one and ultimately concluded to google search this answer - know that you’ll find it a post below this one.

HOWEVER if you are also dissatisfied with being spoon-fed the answer and wondering just how in the qbert you’d find the answer on your own - I would encourage you to take a look at the Linux commands presented on the same page as this question and actually try them all out. Use them and see what happens. It isn’t enough to just read their description and move on.

Do that, see if you can derive the answer, and then come back and check this forum if you can’t.