Skip to content

Built a shell using C system libraries. Its Specialty is the implementation of n-length pipes of commands, in an easy-to-understand way. Supported Commands are listed in Readme.md

parthnan/Shell-With-n-Pipe-in-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Shell-Using-C

Built a basic shell using C, with added functionalities(script support, pipes of any length etc.).

Usage

Download onlineshell.c file, compile with gcc on a unix based terminal and run the ".o" file.

Features

Supported Commands/Features are listed below, alongwith the test results on a Linux Terminal.

1. alias

alt text

2. dirs, pushd and popd

alt text

3. echo,ls with all options

alt text

4. History related commands: history,!,!!,!5,!-7 etc.

alt text

5. Inter-command logic : OR(||),AND(&&),AS WELL AS(;)

alt text

6. rmdir and mkdir alongwith -m and -p options

alt text

7. piping with any length of pipes. Example :

alt text

8. Freely changing prompts :

alt text

9. Running scripts. In the Example below, the file "shellfile" has a script of 3 lines(top part of image), which can be run

alt text

10. Supports Wildcard character "*" in all places! For example, in 「ls -l *.c」 etc. Another Example below :

alt text

About

Built a shell using C system libraries. Its Specialty is the implementation of n-length pipes of commands, in an easy-to-understand way. Supported Commands are listed in Readme.md

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages