/nash_shell_in_c

Operating Systems Assignment 2 - A Linux based shell in c

Primary LanguageC

nash_shell_in_c

Operating Systems Assignment 2 - A Linux based shell in c

To run the code, you must install readline package sudo apt install libreadline-dev

To build: make

To run: ./nash

Structure

  • utils.c - Has all the util functions
  • builtins.c - Has all the builtin functions and execvp functions
  • main.c - Has the main function
  • nash.h - Has the definitions, global variables, and function prototypes

List of commands

  • ls
  • cd
  • exit
  • pwd
  • echo
  • pinfo
  • nightswatch
  • history
  • setenv
  • unsetenv
  • jobs
  • overkill