Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/guest-portfolio.dev/llms.txt
Use this file to discover all available pages before exploring further.
The Virtual Filesystem
guest-portfolio.dev ships a fully in-memory filesystem tree defined inutils/fileSystem.js. Every file has Unix-style metadata — permissions, size, and a modification date — so navigation feels identical to a real shell session.
resolveNode helper in fileSystem.js. It walks the tree segment by segment, supports .. and ~, and returns either a resolved { node, path } object or an { error } object that the terminal renders in red.
ls — List Directory Contents
Syntax
Description
Lists every child node inside a directory. Each entry is rendered as a single row with four fields:| Field | Width | Notes |
|---|---|---|
| Permissions | 10 chars (w-24) | e.g. drwxr-xr-x, -rw-r--r-- |
| Size | right-aligned (w-16) | Bytes as stored in the filesystem tree |
| Date | fixed-width (w-32) | e.g. Oct 24 10:15 |
| Name | coloured | Directories → amber bold with trailing /; executables → green bold; regular files → default white |
Examples
List the home directory:-la flag:
Error Cases
Path does not exist:When
ls resolves to a file node rather than a directory, it prints just the filename rather than a listing.
cd — Change Directory
Syntax
Description
Changes the terminal’s current working directory (cwd). The new path is reflected in the prompt immediately:
Supported Path Forms
| Form | Example | Behaviour |
|---|---|---|
| Relative path | cd projects/ | Resolved relative to cwd |
| Parent traversal | cd .. | Moves one level up; stops at ~ |
| Current dir | cd . | No-op — stays in the same directory |
| Home shortcut | cd ~ | Jumps directly to ~ |
| Absolute from home | cd ~/blog | Resolves from ~ regardless of cwd |
| No argument | cd | Equivalent to cd ~ |
Examples
Navigate into a subdirectory:guest@portfolio.dev:~/projects$. No output is printed on success.
Go up one level:
Error Cases
Directory does not exist:cat — Read File Contents
Syntax
Description
Reads a file from the virtual filesystem and renders its contents. The terminal distinguishes three special files and falls back to the storedcontent string for everything else.
Special File Handling
| File | Output |
|---|---|
about.md | Renders the full AboutOutput neofetch-style bio panel (see whoami) |
references.log | Renders three timestamped [INFO]/[WARN] log entries inline |
| Any other file | Prints the node’s content string, whitespace-preserved |
Examples
Read the references log:whoami.