A Shell in C

  • Shell Source File in C
  • Project Background

    One of the fundamental functionalities of Linux (and Linux-like OSs) is the ability to pipe commands. When the | character is used in a shell between two commands, the shell takes the output from the first command and “pipes” it to the second command as the input. You can try it yourself! If you run the command ls -la / | grep tmp on systems1, you should be able to see only the tmp directory output from ls -la. This is because you gave grep, a common search tool, the output of ls -la directly.

    Project Summary

    For this project a simple program that will act as a shell is written. The program should display a command prompt and read in a command line from the user, your shell must support basic piping like the unix shell (both sequential and redirecting output), and should be able to handle CTRL-C and CTRL-Z signals.

    Some Requirements:

    Topics Learned Upon Completion