Giter VIP home page Giter VIP logo

lets-build-a-linux-shell's Introduction

This repository contains the source files for the "Let's Build a Linux Shell" tutorial.

How to use the code

You need to download this repository to your computer, then compile and run the code.

Downloading the repository

Click on the green "Clone or Download" button on the top-right, then click on "Download Zip" to save the file on your computer.

Extracting the archive

Open a terminal emulator (GNOME Terminal, Konsole, XTerm, or what-have-you), and navigate to the directory where you downloaded the ZIP file:

cd ~/path/to/zip

Extract the archive and navigate to the extracted directory:

unzip lets-build-a-linux-shell-master.zip

Compiling the shell

First, navigate to the directory in which you've extracted the downloaded archive:

cd lets-build-a-linux-shell-master/

If you want to compile and run the shell from Part II/III of the tutorial, you can do so by navigating to the subdirectory and then running gcc:

cd part2-3/
gcc -o shell main.c source.c scanner.c parser.c node.c executor.c prompt.c

If you want to compile Parts IV and above, navigate to the subdirectory and run make:

cd part4/
make

Running the shell

Now you can run the shell by invoking:

./shell

lets-build-a-linux-shell's People

Contributors

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