Skip to content

A basic shell implemented as part of Operating Systems and Networks Course@IIITH

Notifications You must be signed in to change notification settings

AbhijnanVegi/Vsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vsh

A basic shell made as a part of Operating Systems and Networks course.

Functionality

  • Prompt with username, hostname and directory
  • Basic commands : cd, pwd, echo, ls, repeat, pinfo
  • Ability to run external commands as foreground and background

Installation

  1. Run make to build the executable
  2. Run make run or ./vsh to start the shell

File structure

Functionality Files
Prompt prompt.c prompt.h
cd, pwd, echo, repeat, jobs, fg, bg, sig, replay builtins.c builtins.h
ls ls.c ls.h
Baywatch baywatch.c baywatch.h
Input parser parse.c parse.h
External commands execute.c execute.h
Background jobs jobs.c jobs.h
Data structure for commands args.c args.h
Error handling, etc utils.c utils.h
History history.c history.h
Up arrow key rawio.c rawio.h
IO Redirection execute.c execute.h
Signal Handling Handled when process is set as fg in execute.c

About

A basic shell implemented as part of Operating Systems and Networks Course@IIITH

Resources

Stars

Watchers

Forks

Languages