Git Product home page Git Product logo

simple_shell's Introduction

Simple Shell Project

A Simple Shell implemented in C.

Table of Contents

Description

This project is a simple shell implemented in the C programming language. It provides a basic command-line interface that allows users to execute commands and interact with their operating system.

Features

  • Execute basic shell commands.
  • Handle basic input/output redirection.
  • Support command piping (e.g., command1 | command2).

Prerequisites

Before you begin, ensure you have met the following requirements:

  • A C compiler (e.g., GCC) installed on your system.
  • A basic understanding of C programming.
  • A Unix-like operating system (Linux, macOS) is recommended for full compatibility.

Getting Started

To get a local copy up and running, follow these simple steps:

  1. Clone the repository:

    git clone https://github.com/seunrae/simple_shell.git
    
  2. Change into the project directory:

    cd simple-shell
    
  3. Compile the source code:

    gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh
    
  4. Run the shell:

    ./hsh
    

Usage

Once the shell is running, you can use it just like a regular command-line shell. Here are some basic commands to get you started:

  • Run a command: "$ ls -l"
  • Redirect input/output: "$ cat input.txt > output.txt"
  • Use pipes to combine commands: "$ command1 | command2"

Feel free to explore more advanced features and commands as you become familiar with the shell.

simple_shell's People

Contributors

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