A simple interactive shell written in Go, inspired by Linux terminals.
It supports executing system commands, changing directories (cd), viewing command history, and has a minimal custom prompt.
- Execute system commands
- Change directories using
cd - Command history (
historycommand) - Exit shell using
exit - Minimal, easy-to-read prompt:
username@hostname: current_dir$
-
Go 1.21 or higher
Install from golang.org -
Operating System
Recommended: Linux (Ubuntu)
If on Windows, WSL (Windows Subsystem for Linux) with Ubuntu is required
WSL installation guide -
Dependencies
Uses only Go’s standard library — no external packages required
- Clone the repository:
git clone https://github.com/SinghVanshraj/Tiny-Go-Shell.git
cd Tiny-Go-Shell