Skip to content

A simple Unix/Linux shell implemented in C, designed to mimic basic terminal functionality. This project helps understand process creation, command execution, input/output redirection, and basic shell features.

Notifications You must be signed in to change notification settings

ojhankit/cshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CShell

A simple Unix-like shell written in C. Supports basic commands, I/O redirection, and process handling.

Features

  • Run external commands (e.g. ls, echo, cat)
  • Input and output redirection (< and >)
  • Supports pipes (|)
  • Handles Ctrl+C (SIGINT) gracefully

Roadmap

  • Background jobs (&)
  • Job control with fg, bg
  • Environment variables
  • Command history
  • Better signal handling (SIGCHLD, SIGTSTP)

🔧 Build & Run

Clone the repository:

git clone https://github.com/ojha2/cshell.git
gcc -o run run.c
./run

Demo

About

A simple Unix/Linux shell implemented in C, designed to mimic basic terminal functionality. This project helps understand process creation, command execution, input/output redirection, and basic shell features.

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages