Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom C Shell

A Linux BASH-like Shell implementation in C with cross-platform support for both Unix-like systems and Windows.

Directory Structure

/bin        - Compiled executables
/include    - Header files
/src        - Source code files

Features

Core Commands

  • System command execution
  • Foreground and background process management
  • Command history with pastevents
  • File and directory navigation

File Operations

  • peek - Lists files and directories (similar to ls)
  • warp - Changes directories (similar to cd)
  • seek - Searches for files and directories

Process Management

  • proclore - Shows process information
  • activities - Lists all running processes
  • fg/bg - Foreground/background process control
  • ping - Send signals to processes

I/O and Pipelines

  • Input/Output redirection (>, <, >>)
  • Command piping (|)

Windows-Specific Commands

  • where - Shows current directory (similar to pwd)
  • time - Displays current time
  • date - Displays current date

Building and Running

For Unix-like systems (Linux, macOS, WSL)

make
./bin/shell

For Windows

mingw32-make
./bin/shell.exe

Development

This project demonstrates:

  • Cross-platform C development
  • Process management in both Unix and Windows environments
  • File I/O operations
  • Command parsing and execution
  • Signal handling

License

This project is available under the MIT License.

About

this is my Accdamic Projecy, for OS class, a custom c shell for windows and unix both

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages