Skip to content

mattrost/Small-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Small-Shell

Description: This project is my shell written in C utilizing the Unix process API. It does the following:

  • Provide a prompt for running commands
  • Handle blank lines and comments, which are lines beginning with the # character
  • Provide expansion for the variable $$
  • Execute 3 commands exit, cd, and status via code built into the shell
  • Execute other commands by creating new processes using a function from the exec family of functions
  • Support input and output redirection
  • Support running commands in foreground and background processes
  • Implement custom handlers for 2 signals, SIGINT and SIGTSTP

To compile this program do the following:

  • Put both Makefile and smallsh.c in a directory (dir)
  • cd dir
  • make

If you would like to use the program, use: ./smallsh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published