A fully functional Unix-like shell implementation in C.
- Execute system commands
- Built-in commands (cd, exit, help, history)
- I/O redirection (>, <, >>)
- Piping (|)
- Background processes (&)
- Signal handling (Ctrl+C, Ctrl+Z)
- Command history
custom_shell/
├── src/ # Source files
├── include/ # Header files
├── obj/ # Object files
├── bin/ # Binary executable
├── tests/ # Test files
├── docs/ # Documentation
└── Makefile # Build configuration
makemake run
# or
./bin/myshellmake cleanOnce running, you can use standard shell commands:
ls,pwd,echo, etc.cd [directory]- Change directoryexit- Exit the shellhelp- Show help informationhistory- Show command history
myshell> ls -la
myshell> cat file.txt | grep "search"
myshell> echo "Hello" > output.txt
myshell> gcc program.c -o program &