/minishell

Fazendo seu próprio Linux Shell em C

Primary LanguageC

minishell

Making your own Linux Shell in C. The shell is the linux command line prompt, which receives the commands typed by the user and executes them.

A shell does three main things in your life:

  • Initialize: In this step, a typical shell would read and execute its configuration files. This changes aspects of shell behavior;
  • Interpret: Then the shell reads commands from stdin (which can be interactive or a file) and executes them;
  • Terminate: After your commands are executed, the shell executes any shutdown commands, frees up any memory and terminates;

Fazendo seu próprio Linux Shell em C. O shell é o “prompt” da linha de comando do linux, que recebe os comandos digitados pelo usuários e os executa

Um shell faz três coisas principais em sua vida:

  • Initialize: Nesta etapa, um shell típico leria e executaria seus arquivos de configuração. Isso altera aspectos do comportamento do shell;
  • Interpret: Em seguida, o shell lê comandos de stdin(que pode ser interativo ou um arquivo) e os executa;
  • Terminate: Depois que seus comandos são executados, o shell executa qualquer comandos de desligamento, libera qualquer memória e termina;

Badge

Skills

  • Unix
  • Imperative programming
  • Rigor
  • Algorithms & AI

Demo

My grade

Flowchat:

🚧 project:

Compile the program with

make

Run the program

./minishell

Write any shell command like

echo "hello world"

Quit the program

exit

Clean output objects with

make fclean

🚿 Clean Obj files:

minishell $ make clean

🚿 🚿 Clean All (obj files + binary):

minishell $ make fclean

🚿 🚿 🚧 Clean All + build:

minishell $ make re


See Makefile

Made with:

Jorge Alves

Github_Jorge

Alfredo Neto

Github_Jorge

Alexandre Zamarion

Github_Jorge