fl0wstate / simple_shell

Working on creating our own simple_shell.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

THE_GATES_OF_SHELL (1)

🐚 Simple shell 🐚

Basically this is a simple implementaion of Ken Thompson shell, who among others at Bell Labs (formerly AT&T Bell Telephone Laboratories) designed and implemented The original Unix operating system.

What's the shell πŸ€”?

A shell is a user interface for accessing an operating system's services. It can be command-line-based or have a graphical user interface (GUI). In the context of operating systems like Unix, Linux, and others, a shell typically refers to a command-line interface where users interact with the system by typing commands.

How does it work β˜• ?

  1. Command Interpretation: The shell interprets user commands and translates them into a format that the operating system can understand and execute.

  2. Scripting: Shells often support scripting languages, allowing users to write scripts (sequences of commands) to automate tasks.

  3. File Manipulation: Users can navigate the file system, create, delete, and manipulate files and directories through shell commands.

  4. Environment Customization: Users can customize their shell environment, setting variables, configuring aliases, and defining functions.

  5. Input/Output Redirection: Users can redirect the input and output of commands, enabling powerful data manipulation and processing.

  6. Job Control: Shells allow users to run multiple processes simultaneously and manage their execution.

Installation πŸ› οΈ?

  • Before installation make sure you have the following installed on your local machine
    • GNU Compiler Collection Version 13.2. Here
    • Debian Based Linux OS.(Arch, Ubuntu or Manjaro) Here
    • Git CLI. Here
  • Once you have all those installed let's move on to the next step. Run this on your terminal
    git clone https://github.com/Mk-0-wan/simple_shell && cd simple_shell
  • Compile the file with the following command
    gcc -Wall -Werror -Wextra -pedantic -Wunused -std=gnu89 *.c main.h -o Sshell

Running the prorgram πŸš€

  • After compilation do this
    ./Sshell
  • Here are some of the Demo of what you can do. Demo 1 ezgif com-optimize

About

Working on creating our own simple_shell.


Languages

Language:C 75.9%Language:Shell 24.1%