Coder Social home page Coder Social logo

stephboss9 / mini_shell Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 139 KB

# Mini_Shell This program is a collection of C and header files for the implemenation of a Shell. A shell is a program that accepts commands from a user and executes them. This shell implemenation thus far supports file redirection, pipes, and boolean operations with Linux commands on a Linux operating system. The shell will also work with Linux distributions like Ubuntu. Examples of commands supported: 1. cd - to change directories in the file system 2. exit - to exit the shell 3. ls && cd .. - lists the files in the current directory, and will goto the parent directory 4. input.txt << sum.c >> output.txt - uses input and output redirection so that sum.c can execute using input from the input.txt file and output its results to the output.txt file| 5. random_numbers.c | sum.c - the standard output of a program called randon_numbers.c will be connected to the standard input for the sum.c program, thus creating a pipeline ... a complex example: 1. echo hello && echo world && grep main sum.c - prints hello world to the console and displays where the text "main" is in sum.c on to the console Concepts: 1. C Language 2. Linux 3. Computer Systems

Makefile 0.51% C 98.96% Shell 0.53%

mini_shell's Introduction

Mini_Shell

This program is a collection of C and header files for the implemenation of a Shell. A shell is a program that accepts commands from a user and executes them. This shell implemenation thus far supports file redirection, pipes, and boolean operations with Linux commands on a Linux operating system. The shell will also work with Linux distributions like Ubuntu.The shell command prompt is d8sh%.

Examples of commands supported:

  1. cd - to change directories in the file system
  2. exit - to exit the shell
  3. ls && cd .. - lists the files in the current directory, and will goto the parent directory
  4. input.txt << sum.c >> output.txt - uses input and output redirection so that sum.c can execute using input from the input.txt file and output its results to the output.txt file|
  5. random_numbers.c | sum.c - the standard output of a program called randon_numbers.c will be connected to the standard input for the sum.c program, thus creating a pipeline

Video Walkthrough:

Video Walkthrough

...

a complex example:

  1. echo hello && echo world && grep main sum.c - prints hello world to the console and displays where the text "main" is in sum.c on to the console

Concepts:

  1. C Language at the low level
  2. Linux
  3. Computer Systems

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.