Systems · 2023
Unix Shell in C
Minimal Unix-style shell in C with built-in cd, pwd, echo, and persistent history.
- Outcome
- A small interactive shell with a custom prompt, built-in navigation commands, and command history that persists across sessions.
- Stack
- C
- Status
- Coursework
- Language
- C
- Built-ins
- cd, pwd, echo, history
- History
- Persisted to ~/history.txt
Overview
A coursework shell written in C. It shows a custom prompt, tokenizes each line of input, and implements built-in commands: cd (including ~, ~/path, and “-” for the previous directory), pwd, echo with quoted-string handling, and history, which keeps recent commands in a file in the home directory so they survive between sessions.