Giter Site home page Giter Site logo

puneeth9 / linux_shell Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 33 KB

Implemented a Linux shell through user can run commandes like cd,ls,pwd,echo,pinfo , foreground and background processes . I/O Redirection,piping are also allowed in this shell.

C 99.55% Makefile 0.45%

linux_shell's Introduction

The Makefile contains the target in it.So, to complie type "make".To execute the executable "a.out" press "./a.out".The shell will be presented. Details of each file: header.h : It contains all the libraries which are to be included. declaration.h : It contains the declaration of all functions and the global variables. Makefile : It contains the target which is to be compiled. shell.c : It contains the main while loop which runs all the time and it calls the prompt and input functions.It also contains the handler function which takes care of the signals and indicates us when a background process is terminated.It also contains the handler functions for CTRL+C and CTRL+V .(Spec 5 in Assignment 3). prompt.c : It contains the function prompt which prints the command prompt. input.c : It contains input and execute functions.Input function takes the input and tokenize it w.r.t "; and " ".And it specifies whether it is a background or a foreground process. execute.c : It executes the given command . echo.c : It contains the echo function which executes the echo command. pwd.c : It contains the pwd function which executes the pwd command. cd.c : It contains the cd function which executes the cd command. ls.c : It contains the ls function which executes the ls command. pinfo.c : It contains the pinfo function which executes the pinfo command. IORedirection.c : It contains the Onlyredirection function which executes redirections without piping.(Spec 1). pipe.c : It contains the piping function which deals with the pipes without redirection and pipes with redirection(Spec 2 and Spec 3). jobs.c : It contains all the functions related to the Specification 4. Bonus : The first part of the bonus (cd -) is done in the cd file.# Custom_Linux_Shell

Linux_Shell

linux_shell's People

Contributors

puneeth9 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.