Skip to content

Sonali-Goyal-zz/User-Defined-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Its a user defined shell, implemented in C language using the POSIX library.

Download the code and compile and run the code using -

> gcc shell.c -o terminal

> ./terminal

Commands -

(The following commands are supported)

  1. ls, ps ,ps -aux, find etc - All Linux shell commands are run

  2. Redirection to file or to other commands; eg : ls > log or ls | sort

  3. Process ID related commands:

    a) pid all : gives PID of all commands run till now from the terminal

    b) pid current : gives list of currently running child processes

    c) pid : gives pid of present process (./a.out's pid )

  4. History related commands :

    a) hist : Gives a history of all the commands run till now

    b) histN : Gives list of the last N commands

    c) !histN : runs the Nth command

  5. Background processes are also supported; Eg: emacs &

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages