-
Notifications
You must be signed in to change notification settings - Fork 0
Shell Commands
ModuOS uses the following path namespaces:
-
/...– real filesystem paths on the currently selected mount (boot drive by default) -
$/mnt/vDriveN/...– explicit mount views (e.g.$/mnt/vDrive0/,$/mnt/vDrive1/) -
$/dev/...– DevFS device nodes (e.g.$/dev/input/kbd0,$/dev/graphics/video0)
Examples:
# dir /
# dir $/mnt/vDrive0/
# dir $/dev
ModuOS includes a built-in shell (Zenith4) with various commands and utilities.
List directory contents
Syntax: dir [path] or ls [path]
Example:
# dir
# dir /ModuOS/System64
# dir $/dev
Notes:
-
/...paths are resolved against the currently selected filesystem slot (boot drive by default). -
$/...paths are routed through the virtual namespace router (DevFS, mount views, etc.).
Change current directory
Syntax: cd <directory>
Example:
# cd /ModuOS
# cd /ModuOS/System64
# cd $/dev
Display file contents
Syntax: cat <file>
Example:
# cat /ModuOS/System64/pcname.txt
# cat $/dev/input/kbd0
Print text to console
Syntax: echo <text>
Example:
# echo Hello, ModuOS!
Clear the screen
Syntax: cls or clear
ModuOS exposes mounted drives under the virtual namespace:
$/mnt/vDrive0/$/mnt/vDrive1/- ...
If the mount command is present, it mounts/rescans drives (implementation-defined), but user navigation is typically done via $/mnt/vDriveN/.
Examples:
# dir $/mnt/
# dir $/mnt/vDrive0/
# cd $/mnt/vDrive0/
Unmount support is implementation-defined. In current builds, prefer the $/mnt/vDriveN/ view for browsing mounts.
List all available drives
Syntax: drives
Run memory tests
Syntax: memtest
Display system information
Syntax: zsfetch
Output:
- OS name and version
- CPU information
- Total/used/free memory
- Uptime
- Storage devices
Launch game menu
Syntax: game
Available Games:
- Raycaster FPS
- Eat Fruit (Snake)
- Stack Blocks
- Vertical Ping Pong
- Mine Sweeper
Execute an ELF program
Syntax: exec <path> or run <path>
Example:
# exec /Apps/sh.sqr
# exec /Apps/snakegfx.sqr &
# jobs
List running processes
Syntax: ps
Terminate a process
Syntax: kill <pid>
Display help information
Syntax: help
Display file contents (standalone version)
Usage: cat <file>
Print text (standalone version)
Usage: echo <text>
Simple shell (alternative shell)
Usage: sh
Memory testing utility
Usage: memtest
System information utility
Usage: zsfetch
- Applications - Detailed app documentation
- Games - Game controls and features