Skip to content

This repository contains the implementation of a mini shell written in C. The project includes functionalities for command execution, built-in commands, and process management, demonstrating core concepts of operating systems and command-line interface development.

Notifications You must be signed in to change notification settings

arbelklein/Mini-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Mini-Shell

Description

This repository contains a simple shell program designed to provide experience with process management, pipes, signals, and relevant system calls. The shell supports executing commands, executing commands in the background, single piping, input redirection, and appending redirected output.

Usage

  1. Compile the code using gcc:
    gcc -O3 -D_POSIX_C_SOURCE=200809 -Wall -std=c11 shell.c myshell.c -o myshell
  2. Run the compiled program:
    ./myshell

Output

The shell program will execute user commands as specified. It supports:

  • Executing commands and waiting for their completion.
  • Executing commands in the background without waiting for their completion.
  • Piping the output of one command to the input of another.
  • Redirecting input from a file.
  • Appending output to a file.

About

This repository contains the implementation of a mini shell written in C. The project includes functionalities for command execution, built-in commands, and process management, demonstrating core concepts of operating systems and command-line interface development.

Topics

Resources

Stars

Watchers

Forks

Languages