Chaitanya Arora Logo Image
Chaitanya Arora

Custom Unix Terminal

Developed a custom Unix terminal capable of handling internal and external commands, utilizing fork() and execl() system calls.

Project Image

Project Overview

Developed a custom Unix terminal that can handle three internal commands - cd, echo, and pwd. The shell also supports five external commands - ls, cat, date, rm, and mkdir, each implemented using individual programs.

Internal commands are processed directly by the shell, while external commands are executed in a new process created using fork(), and the commands are run using the execl() system call. The parent process waits for the child process to terminate using wait() system calls.

Commands Explanation

Internal Commands
cd
echo
pwd
External Commands
ls
cat
date
rm
mkdir