Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 730 Bytes

File metadata and controls

37 lines (34 loc) · 730 Bytes

UnixCommandLineInterpreterProject

CST-315 project to create a unix/linux command line interpreter

Installation

  1. Download zip file of code
  2. Download gcc
  3. Make sure the following libaries are installed
    • stdio.h
    • string.h
    • stdlib.h
    • unistd.h
    • sys/types.h
    • sys/wait.h
    • readline/readline.h
    • readline/history.h
    • dirent.h
    • errno.h
    • pthread.h
    • alloca.h
    • signal.h
    • sched.h
  4. Open zip file and note the location of the .c file
  5. Open terminal or commandline equivalent and go to the .c file
  6. Run gcc -pthread linuxshell.c -lreadline -o linuxshell
  7. Run ./linuxshell

Terminal Comands Available

  1. exit
  2. cd
  3. ls
  4. rm
  5. pwd
  6. help
  7. page
  8. hello
  9. sproc