Shell Interface
Command-line interface and user interaction
Overview
The shell provides an interactive command-line interface for users to interact with AOS.
Main Features
- Command parsing - Parse user input into commands and arguments
- Built-in commands - help, echo, ls, cat, mkdir, etc.
- File operations - List and access files on disk
- System info - Display memory, boot parameters, etc.
Shell Loop
- Display prompt
- Read user input from keyboard
- Parse command and arguments
- Execute built-in or external command
- Display output
- Repeat
Key Takeaways
- ✓ Interactive user interface
- ✓ Command parsing and execution
- ✓ File system exploration
- ✓ System information display
- ✓ User-friendly error messages