Basic Unix Shell

A basic Unix shell in C which implements several commands of shell. Used fork() and exec() system-calls to implement the different commands of the shell, with the added choice of running the command via threads or processes.

Quick Start

git clone https://github.com/hyouteki/Unix-Shell
cd Unix-Shell
make install
make compile
./shell

Constraints

Commands

CommandInformation
cdchange directory
pwdpresent working directory
exitexit shell
ls-a: list all files(including hidden)
-m: list comma seperated
cat-E: print file contents with line endings
-n: print file contents with line numbers
datecurrent date & time
mkdir-m: make directory with specific permissions
-v: make directory with verbose information
rm-i: remove file with confirmation
-v: remove file with verbose information
helplist commands
echoecho something to shell
clearclear shell
&tadd this after any command to execute it via thread

Repository

Go to top File an issue