Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 1.89 KB

README.md

File metadata and controls

46 lines (26 loc) · 1.89 KB

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