Skip to content

Rayen-JN/holbertonschool-simple_shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Shell 💻

Welcome to the Simple Shell project!

Shell

📱 Simple-_shell:

This is a basic implementation of a command-line shell in C, designed to provide users with a minimalistic yet functional interface for interacting with their operating system. Whether you're a beginner looking to understand the fundamentals of shell programming or an enthusiast who wants to tinker with a simple shell, this project is a great starting point.

✨ Features

Command execution: Run system commands just like you would in a regular terminal. Basic built-in commands: The shell supports a few built-in commands such as cd (change directory) and exit (exit the shell). Input and output redirection: Redirect the standard input and output of commands using < and > operators. Pipeline support: Chain multiple commands together using the | operator for input-output redirection.

📉 Flowchart

In order to enhance your comprehension of the rationale behind our shell, we kindly request you to review this Flowchart:

Blank diagram

🌝 Getting Started

Follow these steps to get the Simple Shell up and running on your local machine:

  1. Clone the repository : git clone https://github.com/Adib-96/holbertonschool-simple_shell.git

  2. Navigate to the project directory: cd holbertonschool-simple_shell

  3. Compile the shell

  4. Run the shell : ./hsh

📔 compilation

Compilation : gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh

🔌 Testing

Our shell work like this in interactive mode :

-$ ./hsh
($) /bin/ls
hsh main.c shell.c
($)
($) exit
$

also in non-interactive mode:

-$ echo "/bin/ls" | ./hsh
hsh main.c shell.c test_ls_2
$
$ cat test_ls_2
/bin/ls
/bin/ls
$
$ cat test_ls_2 | ./hsh
hsh main.c shell.c test_ls_2
hsh main.c shell.c test_ls_2
$

✒️ Contributors:

Rayen jouini

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages