Skip to main content

/home Alone

Discover the secret of Christmas past by learning the basics of the Linux CLI.

Task 1: Introduction

The Story

With Wareville deserted, McSkidy has spent the last few hours doing the least glamorous job in cybersecurity: an inventory. If she's going to defend this town alone, she needs to know exactly what's plugged in, what's running, and what can be weaponized. One machine at a time, she's been walking the Wareville Data Centre, cataloguing everything into her SOC inventory.

Most of it was exactly what she'd expect. But then she spots something tucked in the back corner: an old test machine, dusty, quiet, clearly not touched in a long time. She still has the login for it, from... whenever this was. She can't quite remember.

Learning Objectives

  • Move around a Linux file system
  • Read the contents of a file from the terminal
  • Check basic system information
  • Investigate a running service

Connecting to the Machine

Before moving forward, review the questions in the connection card shown below:

If you want to connect directly to the Target VM, you can use the below credentials to connect through SSH over a VPN connection.

Credentials

Only needed if you are using your own machine.

Username
 
mcskidy
 
Password
 
gh05t3d@out
 
IP address
 
MACHINE_IP
 
Connection via
 
SSH
ssh mcskidy@MACHINE_IP
 

Task 2: Old Ghosts

Whoami?

She tried for a couple of minutes to remember her old credentials.

Info: You can start the Target Machine using the button below. A split-screen view will open and automatically log you in. As an alternative to the split-screen, once the machine is running, you can connect through SSH over VPN using the provided credentials.

"Good, I'm in. Glad my old credentials still work," she thinks. "Now, first things first, same as with any machine I do not recognize: figure out where I am and what's around me."

Theory: pwd stands for "print working directory" and it tells you exactly where you currently are in the file system. It doesn't take any real beginner-friendly flags; it's about as simple as commands get, and you'll use it constantly to stay oriented.

Print Working Directory
           mcskidy@ECTO1-WEB:~$ pwd
/home/mcskidy
        

"Right, my home directory. Makes sense. Let's see what's actually in it."

Theory: ls lists the contents of a directory. On its own it just shows names, but ls -l gives you a more detailed view (permissions, size, last modified date), and ls -a shows hidden files too (anything starting with a dot). You'll see both used a lot as you get more comfortable.

List
           mcskidy@ECTO1-WEB:~$ ls
notes.txt
        

"A single file. It could be nothing, could be something," she hesitated.

She still had that nagging feeling about the machine's name.

Wait, I Know You

She kept digging to find out more about this forgotten machine.

Theory: whoami tells you which user you're currently logged in as, handy on any machine you didn't set up yourself. hostname does the same job for the machine itself, printing the name it's been given on the network. By default on most Linux systems, a standard shell prompt will look like this: [username@hostname directory]$ but there are variations and you can also customize it.

User And Host
           mcskidy@ECTO1-WEB:~$ whoami
mcskidy
mcskidy@ECTO1-WEB:~$ hostname
ECTO1-WEB
        

"ECTO1-WEB...I know that name," she says it slowly.

She frowns. The routine inventory check just got a lot more interesting.

"Let's see how long this thing has been running."

Theory: uptime tells you how long the system has been running since it last booted, plus how many users are logged in and how busy it is. Add -p ("pretty") for a plain-English version if the default format looks a bit cryptic.

Uptime
           mcskidy@ECTO1-WEB:~$ uptime -p
up 397 days, 16 hours, 51 minutes
        

She pauses, staring at the dimly lit screen.

"It can't be. This thing has been sitting here completely unattended for over a year, and I had no idea. I have to read that note."

The Old Note

"Let's see what secrets you hide."

Theory: cat ("concatenate") prints the entire contents of a file straight to your terminal. It's the simplest way to read a short file. For longer ones, commands like less let you scroll, but in this case, cat does the job perfectly.

Concatenate
           mcskidy@ECTO1-WEB:~$ cat notes.txt
2025-11-02 23:07
starting development
TODO: think of a name

2025-11-09 21:47
things are not great, branching is horrible
might need to use regex
thought of calling it ELIZA but could be misleading
TECHNO does not sound right either
TODO: find a proper name

2025-11-15 01:17
it does something, not sure what
answers are all over the place
named it ECTO1 in the end, it sounds nice
TODO: polish the interface

2025-11-16 16:40
milk
potatoes
eggs
candy
TODO: use a real grocery list app

2025-11-30 11:56
leaving everything running before the holidays
hope nothing breaks
TODO: add guardrails
        

"This is..." she trails off, scrolling back up.

"This is MY project. I started it and completely forgot about it after last year's incident."

A Quick System Check

"Let's see what it's actually doing. First things first, I'll do a quick health check," she thought.

Theory: lsb_release -a prints details about the specific Linux distribution installed, useful for quickly checking what you're working with. The -a flag just means "show all available info".

Linux Distribution Release
           mcskidy@ECTO1-WEB:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.4 LTS
Release:        24.04
Codename:       noble
        

Theory: free shows memory (RAM) usage, and df shows disk usage. Both default to raw byte counts, which are hard to read at a glance. Add -h ("human-readable") to either one and you'll get friendly units like MB and GB instead.

RAM And Disk
           mcskidy@ECTO1-WEB:~$ free -h
               total        used        free      shared  buff/cache   available
Mem:           435Mi       282Mi       7.6Mi       1.2Mi       180Mi       153Mi
Swap:             0B          0B          0B

mcskidy@ECTO1-WEB:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 20G 17G 2.5G 88% / tmpfs 218M 0 218M 0% /dev/shm tmpfs 88M 852K 87M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 44M 12K 44M 1% /run/user/1001

"Not the best machine. Disk seems to be running out," she notes in her inventory.

"Ahh...I must have forgotten to automate log rotation," she added.

Theory: systemctl status <service> shows you whether a specific background service is running, and since when. If the output drops you into a scrollable view instead of returning straight to your prompt, press q to get back out. Running the command with no parameters will display the overall runtime status of the system.

System Services
           mcskidy@ECTO1-WEB:~$ systemctl status
● ECTO1-WEB
    State: degraded
    Units: 421 loaded (incl. loaded aliases)
     Jobs: 0 queued
   Failed: 1 units
    Since: Sun 2025-11-02 20:07:44 UTC; 376 days ago
  systemd: 255.4-1ubuntu8.16
   CGroup: /
           ├─init.scope
           │ └─1 /sbin/init
           ├─system.slice
           │ ├─acpid.service
           │ │ └─574 /usr/sbin/acpid
           │ ├─apache2.service
           │ │ ├─693 /usr/sbin/apache2 -k start
[...]

mcskidy@ECTO1-WEB:~$ systemctl status apache2
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: active (running) since Sun 2025-11-02 20:07:58 UTC; 376 days ago
       Docs: https://httpd.apache.org/docs/2.4/
   Main PID: 693 (apache2)
      Tasks: 56 (limit: 494)
     Memory: 8.0M (peak: 8.7M)
        CPU: 201ms
     CGroup: /system.slice/apache2.service
             ├─693 /usr/sbin/apache2 -k start
             ├─695 /usr/sbin/apache2 -k start
             ├─696 /usr/sbin/apache2 -k start
             └─697 /usr/sbin/apache2 -k start
        

"A web server? Still running? Man, I was sloppy," she almost laughed.

Finding the Ghost

She switched to the web server folder to dig a bit more.

Theory: cd ("change directory") moves you into a different folder. Apache's default web content lives under /var/www/ and that's the natural place to start looking for whatever this server is actually running.

Change Directory
           mcskidy@ECTO1-WEB:~$ cd /var/www/
mcskidy@ECTO1-WEB:/var/www$ ls ecto1 html
mcskidy@ECTO1-WEB:/var/www$ cd ecto1
mcskidy@ECTO1-WEB:/var/www/ecto1$ ls call-ecto1.sh index.html quotes.txt

Theory: Bash scripts are files containing a series of commands like the ones you have used so far. They are denoted by the .sh extension, are coloured in green on certain terminals, and have the execute permission set.

"call-ecto1.sh...that's not a web page, that's a script," she exclaims out loud.

"Let's see what it's actually doing."

Theory: The pipe character | is used to combine two or more commands and, in this way, the output of the first command acts as the input to the second command, and then the output from that command goes to the next command, and so on. In this case, you will pipe the output of cat as input for less so that you can scroll up or down using the arrow keys. To exit, press q.

Pipes
           mcskidy@ECTO1-WEB:/var/www/ecto1$ cat call-ecto1.sh | less
#!/bin/bash
# call-ecto1.sh - dual CLI/CGI script.

QUOTES_FILE="/var/www/ecto1/quotes.txt"

urldecode() {
    local data="${1//+/ }"
    printf '%b' "${data//%/\\x}"
}
[...]

        

"Ohhh...I remember you," she says, half-amused as she keeps scrolling through it.

"No real AI in here, just pattern-matching on keywords. Classic past-me, even putting secrets in scripts."

Answer the questions below

  1. What is the secret revealed in the script file?

Task 3: Epilogue

As McSkidy finished filling out the machine details, she could not help but feel a sense of sadness.
"I hope no other ghosts come and haunt me," she told herself.

She quickly shrugs it off.

"No time for this, there are things to do and defenses to set up. Let's get to work."

What's Next?

Enjoyed exploring McSkidy's old machine? Keep your Linux skills sharp with these rooms:

Thirsty for More?

Enjoyed today's Advent of Cyber room? Keep your cyber learning journey going with a matching mobile exercise in the TryHackMe app! Check it out here.

Back to all walkthroughs
Room Icon

/home Alone

Discover the secret of Christmas past by learning the basics of the Linux CLI.

easy

30 min

862

User profile photo.
User profile photo.

To access material, start machines and answer questions login.

Advent of Cyber 2026 - Day 4 - /home Alone •Dec 4, 2026
Source: YouTube

The Story

Task banner for day 4

With Wareville deserted, McSkidy has spent the last few hours doing the least glamorous job in cybersecurity: an inventory. If she's going to defend this town alone, she needs to know exactly what's plugged in, what's running, and what can be weaponized. One machine at a time, she's been walking the Wareville Data Centre, cataloguing everything into her inventory.

Most of it was exactly what she'd expect. But then she spots something tucked in the back corner: an old test machine, dusty, quiet, clearly not touched in a long time. She still has the login for it, from... whenever this was. She can't quite remember.

Learning Objectives

  • Move around a
  • Read the contents of a file from the terminal
  • Check basic system information
  • Investigate a running service

Connecting to the Machine

Before moving forward, review the questions in the connection card shown below:

For this room, you will need the target VM and the provided credentials.

If you want to connect directly to the Target , you can use the below credentials to connect through over a connection.

Credentials

Only needed if you are using your own machine.

Username
 
mcskidy
 
Password
 
gh05t3d@out
 
IP address
 
MACHINE_IP
 
Connection via
 
SSH
ssh mcskidy@MACHINE_IP
 

Set up your virtual environment

To successfully complete this room, you'll need to set up your virtual environment. This involves starting the Lab Machine, ensuring you're equipped with the necessary tools and access to tackle the challenges ahead.
Lab machine
Status:Off

Whoami?

She tried for a couple of minutes to remember her old credentials.

Info: You can start the Target Machine using the button below. A split-screen view will open and automatically log you in. As an alternative to the split-screen, once the machine is running, you can connect through SSH over VPN using the provided credentials.

Target Machine card placeholder

"Good, I'm in. Glad my old credentials still work," she thinks. "Now, first things first, same as with any machine I do not recognize: figure out where I am and what's around me."

McSkidy looking around the server room doing the inventory.

Theory: pwd stands for "print working directory" and it tells you exactly where you currently are in the file system. It doesn't take any real beginner-friendly flags; it's about as simple as commands get, and you'll use it constantly to stay oriented.

Print Working Directory
           mcskidy@ECTO1-WEB:~$ pwd
/home/mcskidy
        

"Right, my home directory. Makes sense. Let's see what's actually in it."

Theory: ls lists the contents of a directory. On its own it just shows names, but ls -l gives you a more detailed view (permissions, size, last modified date), and ls -a shows hidden files too (anything starting with a dot). You'll see both used a lot as you get more comfortable.

List
           mcskidy@ECTO1-WEB:~$ ls
notes.txt
        

"A single file. It could be nothing, could be something," she hesitated.

She still had that nagging feeling about the machine's name.

Wait, I Know You

She kept digging to find out more about this forgotten machine.

Theory: whoami tells you which user you're currently logged in as, handy on any machine you didn't set up yourself. hostname does the same job for the machine itself, printing the name it's been given on the network. By default on most Linux systems, a standard shell prompt will look like this: [username@hostname directory]$ but there are variations and you can also customize it.

User And Host
           mcskidy@ECTO1-WEB:~$ whoami
mcskidy
mcskidy@ECTO1-WEB:~$ hostname
ECTO1-WEB
        

"ECTO1-WEB...I know that name," she says it slowly.

She frowns. The routine inventory check just got a lot more interesting.

"Let's see how long this thing has been running."

Theory: uptime tells you how long the system has been running since it last booted, plus how many users are logged in and how busy it is. Add -p ("pretty") for a plain-English version if the default format looks a bit cryptic.

Uptime
           mcskidy@ECTO1-WEB:~$ uptime -p
up 397 days, 16 hours, 51 minutes
        

She pauses, staring at the dimly lit screen.

"It can't be. This thing has been sitting here completely unattended for over a year, and I had no idea. I have to read that note."

The Old Note

"Let's see what secrets you hide."

Theory: cat ("concatenate") prints the entire contents of a file straight to your terminal. It's the simplest way to read a short file. For longer ones, commands like less let you scroll, but in this case, cat does the job perfectly.

Concatenate
           mcskidy@ECTO1-WEB:~$ cat notes.txt
2025-11-02 23:07
starting development
TODO: think of a name

2025-11-09 21:47
things are not great, branching is horrible
might need to use regex
thought of calling it ELIZA but could be misleading
TECHNO does not sound right either
TODO: find a proper name

2025-11-15 01:17
it does something, not sure what
answers are all over the place
named it ECTO1 in the end, it sounds nice
TODO: polish the interface

2025-11-16 16:40
milk
potatoes
eggs
candy
TODO: use a real grocery list app

2025-11-30 11:56
leaving everything running before the holidays
hope nothing breaks
TODO: add guardrails
        

"This is..." she trails off, scrolling back up.

"This is MY project. I started it and completely forgot about it after last year's incident."

A Quick System Check

"Let's see what it's actually doing. First things first, I'll do a quick health check," she thought.

Theory: lsb_release -a prints details about the specific Linux distribution installed, useful for quickly checking what you're working with. The -a flag just means "show all available info".

Distribution Release
           mcskidy@ECTO1-WEB:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.4 LTS
Release:        24.04
Codename:       noble
        

Theory: free shows memory (RAM) usage, and df shows disk usage. Both default to raw byte counts, which are hard to read at a glance. Add -h ("human-readable") to either one and you'll get friendly units like MB and GB instead.

RAM And Disk
           mcskidy@ECTO1-WEB:~$ free -h
               total        used        free      shared  buff/cache   available
Mem:           435Mi       282Mi       7.6Mi       1.2Mi       180Mi       153Mi
Swap:             0B          0B          0B

mcskidy@ECTO1-WEB
:~
$ df -h
Filesystem Size Used Avail Use% Mounted on /dev/root 20G 17G 2.5G 88% / tmpfs 218M 0 218M 0% /dev/shm tmpfs 88M 852K 87M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 44M 12K 44M 1% /run/user/1001

"Not the best machine. Disk seems to be running out," she notes in her inventory.

"Ahh...I must have forgotten to automate log rotation," she added.

Theory: systemctl status <service> shows you whether a specific background service is running, and since when. If the output drops you into a scrollable view instead of returning straight to your prompt, press q to get back out. Running the command with no parameters will display the overall runtime status of the system.

System Services
           mcskidy@ECTO1-WEB:~$ systemctl status
● ECTO1-WEB
    State: degraded
    Units: 421 loaded (incl. loaded aliases)
     Jobs: 0 queued
   Failed: 1 units
    Since: Sun 2025-11-02 20:07:44 UTC; 376 days ago
  systemd: 255.4-1ubuntu8.16
   CGroup: /
           ├─init.scope
           │ └─1 /sbin/init
           ├─system.slice
           │ ├─acpid.service
           │ │ └─574 /usr/sbin/acpid
           │ ├─apache2.service
           │ │ ├─693 /usr/sbin/apache2 -k start
[...]

mcskidy@ECTO1-WEB:~$ systemctl status apache2
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
     Active: active (running) since Sun 2025-11-02 20:07:58 UTC; 376 days ago
       Docs: https://httpd.apache.org/docs/2.4/
   Main PID: 693 (apache2)
      Tasks: 56 (limit: 494)
     Memory: 8.0M (peak: 8.7M)
        CPU: 201ms
     CGroup: /system.slice/apache2.service
             ├─693 /usr/sbin/apache2 -k start
             ├─695 /usr/sbin/apache2 -k start
             ├─696 /usr/sbin/apache2 -k start
             └─697 /usr/sbin/apache2 -k start
        

"A web server? Still running? Man, I was sloppy," she almost laughed.

Finding the Ghost

She switched to the web server folder to dig a bit more.

Theory: cd ("change directory") moves you into a different folder. Apache's default web content lives under /var/www/ and that's the natural place to start looking for whatever this server is actually running.

Change Directory
           mcskidy@ECTO1-WEB:~$ cd /var/www/
mcskidy@ECTO1-WEB:/var/www$ ls ecto1 html
mcskidy@ECTO1-WEB
:/var/www
$ cd ecto1

mcskidy@ECTO1-WEB
:/var/www/ecto1
$ ls
call-ecto1.sh index.html quotes.txt

Theory: Bash scripts are files containing a series of commands like the ones you have used so far. They are denoted by the .sh extension, are coloured in green on certain terminals, and have the execute permission set.

"call-ecto1.sh...that's not a web page, that's a script," she exclaims out loud.

"Let's see what it's actually doing."

Theory: The pipe character | is used to combine two or more commands and, in this way, the output of the first command acts as the input to the second command, and then the output from that command goes to the next command, and so on. In this case, you will pipe the output of cat as input for less so that you can scroll up or down using the arrow keys. To exit, press q.

Pipes
           mcskidy@ECTO1-WEB:/var/www/ecto1$ cat call-ecto1.sh | less
#!/bin/bash
# call-ecto1.sh - dual CLI/CGI script.

QUOTES_FILE="/var/www/ecto1/quotes.txt"

urldecode() {
    local data="${1//+/ }"
    printf '%b' "${data//%/\\x}"
}
[...]

        

"Ohhh...I remember you," she says, half-amused as she keeps scrolling through it.

"No real in here, just pattern-matching on keywords. Classic past-me, even putting secrets in scripts."

Answer the questions below

What is the secret revealed in the script file?

As McSkidy finished filling out the machine details, she could not help but feel a sense of sadness.
"I hope no other ghosts come and haunt me," she told herself.

McSkidy is sitting at her laptop, ready for the next challenge.

She quickly shrugs it off.

"No time for this, there are things to do and defenses to set up. Let's get to work."

What's Next?

Enjoyed exploring McSkidy's old machine? Keep your skills sharp with these rooms:

Thirsty for More?

Enjoyed today's Advent of Cyber room? Keep your cyber learning journey going with a matching mobile exercise in the TryHackMe app! Check it out here.