ByteShell is a UNIX-like command-line shell written in C. It's a simple shell used to execute built-in Linux commands.
Requirements :
- Language: C
- Compiler:
gcc(or any POSIX-compliant C compiler) - Environment: UNIX-like system (Linux, macOS, WSL, etc.)
# Use the provided compilation command:
gcc *.c
# This compiles all C source files and produces an executable (by default `a.out`).
# After a successful compilation, run:
./a.outIf everything is set up correctly, you will see the ByteShell prompt:
>
Builtins implemented:
echo: Print its arguments to standard output.cd: Change the current working directory.pwd: Print the current working directory.exit: Exit the shell.
Examples:
> echo hello world
hello world
> cd /
> pwd
/Users/Praveen/documents/projects-new/byte-shell
> exit
Contributions are welcome! To propose changes:
- Fork the repository and create a feature branch
- Make your changes
- Open a Pull Request with a clear description and examples