Welcome to Ameya's Basic Shell (apksh), a simple command-line shell written in C. This shell provides a basic command interface that supports various built-in commands for navigating and managing the file system.
- Built-in Commands: Supports the following commands:
cd <directory>
: Change the current directory.ls [directory]
: List the contents of the specified directory (current directory if not specified).mkdir <directory>
: Create a new directory.pwd
: Print the current working directory.echo <text>
: Print the specified text to the console.help
: Display information about built-in commands.exit
orbye
: Exit the shell.man <command>
: Display usage and description for the specified command.
To run the shell locally:
- Clone the repo
git clone <repository-url>
cd Shell
- Compile the source code
gcc -o apksh shell.c
- Run the shell
./apksh
If you are using a windows pc, you will have to first install WSL on your system and download an Ubuntu distro (or any other distro). Clone the repo in the WSL and run it in the linux environment