Home FRANK OS Shell Commands 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#
Option Description ls / dir List directory contents. Use Ctrl+C to interrupt. cd Change current directory cat / type Display file contents (-p to paginate). Ctrl+C to interrupt. cp Copy a file mv Move/rename a file or directory rm / del Remove a file or empty directory rmdir Remove directory (recursive) mkdir Create a directory hex Hexdump of a file or RAM address (-p to paginate) cc Compile and run a C source file vi Edit files with vi tar Manage tar archives clear / cls Clear the terminal screen version Display shell version news What's new in this release
MOS2 Commands#
The following commands are inherited from Murmulator OS 2 and are available in the FRANK OS shell:
Option Description mc Murmulator Commander — dual-panel file manager. Ctrl+O to show console, Ctrl+Enter for fast path typing. mcview Murmulator Commander file viewer mcedit Murmulator Commander text editor less Paginated output for piped commands (e.g. ls | less). Ctrl+C to exit. tail Show last N lines of a file (tail -n 20 file). Default: 10 lines. elfinfo Display .elf file information psram Show PSRAM information and status swap Show swap memory information sram Reference speed benchmark of SRAM cpu Show current CPU frequency and dividers. cpu 378 to change frequency (MHz). mem Show current memory state set Show or set environment variables mode Set video mode (0-8). Modes vary by output: VGA supports 53x30 to 640x480x4-bit, HDMI supports 53x30 to 320x240x4-bit. font Show or set font size for graphics modes (font 6 8) usb Mount SD card as USB drive (usb on / usb off) wav Play .wav files (tested on 8 kHz 1-channel 16-bit). Ctrl+C to stop. basic Tiny BASIC interpreter (by Stefan Lenz) ps List running processes (FreeRTOS tasks) kill Send SIGKILL to a process by task number from ps dhrystone Dhrystone performance benchmark whetstone Whetstone (MIPS) double-precision benchmark linpack LINPACK single-precision Kflops benchmark blimp Simple sound test gmode Simple graphics mode test
Shell Features#
Output redirection: command > filePipe: command | lessTab completion for file and directory namesCtrl+C to interrupt running commandsCtrl+Shift to toggle Russian/Latin keyboard layoutCtrl+Alt+Del to reset the systemCtrl+Tab++/- to increase/decrease CPU frequencyAlt+number to enter character by decimal code (CP-866)
System Variables#
Option Description BASE Base directory with command implementations SWAP Swap memory settings COMSPEC Path to command interpreter PATH List of directories to search for applications GMODE Initial graphics mode TEMP Path for temporary files CD Default 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