Giter Club home page Giter Club logo

smallsh's Introduction

Smallsh - Custom Shell in C

Description

Smallsh is a custom shell program written in C, mimicking fundamental functionalities of standard Unix shells. It's designed to execute commands in both interactive and non-interactive modes, handle expansions, manage background processes, and incorporate custom signal handling.

Features

  • Interactive and Non-Interactive Modes: Run commands directly or via a script file.
  • Command Execution: Built-in standard Unix commands: "cd, exit"
  • Background Process Management: Ability to run processes in the background.
  • Signal Handling: Custom handling of SIGINT and SIGTSTP.
  • Input Redirection: Support for input redirection using '<'.
  • Output Redirection: Support for output redirection using '>'.

Installation

  1. Clone the repository:

    git clone https://github.com/YazeedT/smallsh
  2. Navigate to the cloned directory:

    cd smallsh
  3. Compile the program using the provided Makefile:

    make

Usage

  • Run the shell in interactive mode:

    ./smallsh
  • Run the shell in non-interactive mode (script mode):

    ./smallsh scriptname

Built-in Commands

  • exit: Exits the shell.
  • cd: Changes the current working directory.

smallsh's People

Contributors

yazeedt 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.