Code Monkey home page Code Monkey logo

myshell's Introduction

实现自己的shell

这是我在国立交通大学交换期间修选OS课程实现的课程项目,代码量300行左右

目标:实现一个简单的shell解释器,要求支持如下功能

  1. 解释执行命令
  2. 内建命令cd exit
  3. pipe 管道
  4. fg 前台执行命令
  5. bg 后台执行命令
  6. 彩色提示符
  7. Ctrl -Z Ctrl -C 信号处理

详细的实现细节见文档:从零构建自己的mini shell

架构

环境:ubuntu 14.4

编译器:gcc

main 函数和功能函数放在源文件 sh.c

执行 make 可生成 mysh 可执行文件

功能要求与参考文档

HW1 process & IPC

myshell's People

Contributors

david-guo 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.