Shell Commands

FRANK OS includes PShell, an interactive command interpreter running in the Terminal app. It is fully compatible with Murmulator OS 2 (MOS2) and can launch MOS2-compatible console applications directly from the SD card. The /mos2/ directory on the SD card includes 50+ additional command-line utilities.

PShell Built-in Commands

OptionDescription
ls / dirList directory contents. Use Ctrl+C to interrupt.
cdChange current directory
cat / typeDisplay file contents (-p to paginate). Ctrl+C to interrupt.
cpCopy a file
mvMove/rename a file or directory
rm / delRemove a file or empty directory
rmdirRemove directory (recursive)
mkdirCreate a directory
hexHexdump of a file or RAM address (-p to paginate)
ccCompile and run a C source file
viEdit files with vi
tarManage tar archives
clear / clsClear the terminal screen
versionDisplay shell version
newsWhat's new in this release

MOS2 Commands

The following commands are inherited from Murmulator OS 2 and are available in the FRANK OS shell:

OptionDescription
mcMurmulator Commander — dual-panel file manager. Ctrl+O to show console, Ctrl+Enter for fast path typing.
mcviewMurmulator Commander file viewer
mceditMurmulator Commander text editor
lessPaginated output for piped commands (e.g. ls | less). Ctrl+C to exit.
tailShow last N lines of a file (tail -n 20 file). Default: 10 lines.
elfinfoDisplay .elf file information
psramShow PSRAM information and status
swapShow swap memory information
sramReference speed benchmark of SRAM
cpuShow current CPU frequency and dividers. cpu 378 to change frequency (MHz).
memShow current memory state
setShow or set environment variables
modeSet video mode (0-8). Modes vary by output: VGA supports 53x30 to 640x480x4-bit, HDMI supports 53x30 to 320x240x4-bit.
fontShow or set font size for graphics modes (font 6 8)
usbMount SD card as USB drive (usb on / usb off)
wavPlay .wav files (tested on 8 kHz 1-channel 16-bit). Ctrl+C to stop.
basicTiny BASIC interpreter (by Stefan Lenz)
psList running processes (FreeRTOS tasks)
killSend SIGKILL to a process by task number from ps
dhrystoneDhrystone performance benchmark
whetstoneWhetstone (MIPS) double-precision benchmark
linpackLINPACK single-precision Kflops benchmark
blimpSimple sound test
gmodeSimple graphics mode test

Shell Features

  • Output redirection: command > file
  • Pipe: command | less
  • Tab completion for file and directory names
  • Ctrl+C to interrupt running commands
  • Ctrl+Shift to toggle Russian/Latin keyboard layout
  • Ctrl+Alt+Del to reset the system
  • Ctrl+Tab++/- to increase/decrease CPU frequency
  • Alt+number to enter character by decimal code (CP-866)

System Variables

OptionDescription
BASEBase directory with command implementations
SWAPSwap memory settings
COMSPECPath to command interpreter
PATHList of directories to search for applications
GMODEInitial graphics mode
TEMPPath for temporary files
CDDefault path for cd command

Terminal Features

  • VT100 emulation with 16-color text, cursor movement, and SGR escape sequences
  • 70x20 character grid (80x30 in fullscreen with Alt+Enter)
  • Multiple concurrent terminal instances, each with its own shell session
  • Runs both built-in shell commands and MOS2-compatible console apps from SD card