Skip to content

Shell Commands

NtinosTheGamer2324 edited this page Dec 11, 2025 · 2 revisions

Shell Commands

ModuOS includes a built-in shell (Zenith4) with various commands and utilities.

Built-in Shell Commands

dir / ls

List directory contents

Syntax: dir [path] or ls [path]

Example:

Z:\> dir
Z:\> dir /ModuOS/System64

cd

Change current directory

Syntax: cd <directory>

Example:

Z:\> cd /ModuOS
Z:\ModuOS> cd System64

cat

Display file contents

Syntax: cat <file>

Example:

Z:\> cat /ModuOS/System64/pcname.txt

echo

Print text to console

Syntax: echo <text>

Example:

Z:\> echo Hello, ModuOS!

cls / clear

Clear the screen

Syntax: cls or clear

mount

Mount a drive to a letter

Syntax: mount <drive> <letter>

Example:

Z:\> mount 0 A

umount

Unmount a drive letter

Syntax: umount <letter>

Example:

Z:\> umount A

drives

List all available drives

Syntax: drives

memtest

Run memory tests

Syntax: memtest

zsfetch

Display system information

Syntax: zsfetch

Output:

  • OS name and version
  • CPU information
  • Total/used/free memory
  • Uptime
  • Storage devices

game

Launch game menu

Syntax: game

Available Games:

  1. Raycaster FPS
  2. Eat Fruit (Snake)
  3. Stack Blocks
  4. Vertical Ping Pong
  5. Mine Sweeper

exec / run

Execute an ELF program

Syntax: exec <path> or run <path>

Example:

Z:\> exec /Apps/sh.sqr

ps

List running processes

Syntax: ps

kill

Terminate a process

Syntax: kill <pid>

help

Display help information

Syntax: help

Userland Programs

cat.sqr

Display file contents (standalone version)

Usage: cat <file>

echo.sqr

Print text (standalone version)

Usage: echo <text>

sh.sqr

Simple shell (alternative shell)

Usage: sh

memtest.sqr

Memory testing utility

Usage: memtest

zsfetch.sqr

System information utility

Usage: zsfetch

Next Steps

Clone this wiki locally