Giter Site home page Giter Site logo

shell's Introduction

Welcome to MyShell!

Introduction to the project:

I have implemented a terminal-based shell using C language.

Date: 27th September, 2018. Place: Room 224, Bakul Nivas, IIIT Hyderabad. Owner: Tanuj Garg

Features:

  • All commands working on real terminal are working.
  • current directory of shell is made home directory
  • Some commands listed below are implemented separately
    • echo
    • ls
    • cd
    • pwd
    • clock (a clock appears)
    • fg
    • bg
    • jobs (shows status of background processes)
    • kjobs (sends a signal to a particular process)
    • overkill (kills all background processes)
    • pinfo (shows info of a particular process)
    • remindme (reminds user about something after sometime)
  • Processes are made background processes when used '&'
  • Pipes and redirection are handled properly

Running the program:

  • Go to the working directory and run make
  • Use ./shell to start shell

Description of all files:

  • builtin.c
    • echo
    • pwd
    • cd
  • clock.c
    • clock
  • environment.c
    • setenv
    • unsetenv
  • kjobs.c
    • kjobs
  • overkill.c
    • overkill
  • reminder.c
    • remindme
  • shell.c
    • main loop
  • display.c
    • display of shell
  • fgbg.c
    • fg
    • bg
  • jobs.c
    • jobs
  • ls.c
    • ls
  • othercommands.c
    • system commands and '&'
  • pinfo.c
    • pinfo
  • redirection_and_pipe.c
    • redirection
    • pipe
    • their combination
  • tilda.c
    • setting home directory to current working directory

shell's People

Contributors

tanujgarg208 avatar tanuj208 avatar

Watchers

James Cloos 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.