Skip to content

RushiK8626/Unix-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

MyShell

A simple Unix-like shell written in C.

Features

  • Run external commands via PATH
  • Built-ins: cd, jobs, fg, bg, history, exit
  • Pipelines with |
  • Redirection: <, >, >>, 2>, 2>>
  • Background jobs with &
  • Basic job control (foreground/background switching)
  • Shell variables and $VAR expansion
  • Custom prompt with PS1
  • Command history persisted in myshell_hist.txt

Build & Run

gcc shell.c -lreadline -o myshell
./myshell

About

Simple UNIX like shell implementation supporting multiple features

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages