changgyhub / myshell

Implementation of Linux shell in C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

myshell

Implementation of bash shell in C, for the Operating System Course in HKU.

myshell

Development Platform

  • 64-bit ubuntu 14.04 LTS
  • gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4

Usage

  • Compilation: gcc src/myshell.c -o myshell -Wall
  • Run: ./myshell

Enabled Functionalities

  • Commands in /bin:/usr/bin
  • pipe
  • background mode
  • timeX: a built-in function for counting execution time, support pipe and foreground commands. For instance, timeX ls -l | wc

Blocked Functionalities

  • SIGINT signal in myshell. You cannot exit this program using SIGINT signal. Use exit instead.

Disabled or Unimplemented Functionalities

  • cd: changing folder is not supported in myshell

About

Implementation of Linux shell in C

License:MIT License


Languages

Language:C 100.0%