A simple Linux kernel built in C
Table of Contents
The Rapid Unix SHell (RUSH) is a simple and efficient Unix shell designed to serve as a command line interpreter. When a user inputs a command, rush creates a child process to execute it, then waits for the process to complete before prompting for more input. This loop continues until the user types the built-in command exit. Rush handles commands by searching specified directories, managed through the built-in path command. It supports additional built-in commands like cd and path, output redirection using the > symbol, and parallel command execution using the & operator. Errors are uniformly reported with a specific error message, and the shell ensures robust handling of various whitespace variations in user input.
- C
To start using the Rapid Unix SHell (rush), follow these steps:
- Download the Code: Clone or download the repository containing the rush source code.
- Compile the Code: Navigate to the directory containing the code and run the following command in your terminal:
make- Run the Shell: After compilation, you can start the shell by executing:
./rush
- Start Using Rush: Once the shell is running, you will see the rush> prompt. You can now enter commands, which rush will execute in its simple, efficient manner.
To exit the shell, simply type:
exit