C programming with ALX School!
================================================================================
The implementation of a simple shell. The shell is an interactive interface that allows users to execute other commands and utilities in Linux and other UNIX-based operating systems. Shells use either a command-line interface or graphical user interface, depending on a computer's role and particular operation.
-
clone the repository
-
compile with
gcc -Wall -Werror -Wextra -pedantic *.c -o tsh
ubuntu@ubuntu$ ./hsh
$ pwd
/home/ubuntu/simple_shell
$ /bin/pwd
/home/ubuntu/simple_shell
$ ls -la
-rw-rw-r-- 1 vagrant vagrant bytes <date> builtins.c
-rw-rw-r-- 1 vagrant vagrant bytes <date> shell.h
exit: exits a shell
env: show/displays environment variables
Ctrl + C: To prevent the killing of the simple-shell
Ctrl + D: exit the simple-shell
simishell.h: This file contains all the prototypes used for our shell project.
AUTHORS: This file contains all the contributors to this repository.
README.md: This file contains this readme text.
man_1_simple_shell: The man page for our shell.
simpleshell.c: This file contain main function of the shell to excute and launch the shell.
unnecessary.c: This file contains all the customization functions.
shellprocessor.c: This file contains the shell processing and function selector functions.
builtin.c: This file contains the code for the builtin functions of code.
utility.c: This file contains helper functions.
The work is still in progress, and a lot of things like aliases and piping, redirection,... are not available.