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.
- Unix
- Imperative programming
- Rigor
- Algorithms & AI
🚧 project:
minishell $ make
🚿 Clean Obj files:
minishell $ make clean
🚿 🚿 Clean All (obj files + binary):
minishell $ make fclean
🚿 🚿 🚧 Clean All + build:
minishell $ make re
See Makefile