Skip to content

omotomiwa26/simple_shell

Repository files navigation

Simple Shell 🐚

A simple UNIX Command Interpreter.

The shell is a command line interface (CLI) program that takes commands from the keyboard and gives them to the operating system to perform.

Documentation

Filename Description
AUTHORS AUTHORS is a file listing all contributors to this project repository.
SHELL.H shell.h contains 3 prototypes of main.
BETTY.C Betty.c program reads contributors names as strings characters and send sthe result to stdout uisng write system call
UNIX.C Unix.c a program that displays a prompt on the screen.
UNIX_FUNCTN.C Unix_functions.c function used for concatenating two strings. It takes two arguments: dest and src, which are pointers to the destination and source strings, respectively.
EXECMND.C execmnd.c Function execmnd is a custom made function written in C that takes a pointer to an array of strings as its argument.
GET_PATH_LOCATN.C get_path_location.c Function get_path_location is a custom made function written in C that takes a string as its argument, which represents a command name or executable file name. This function may be used to search for the location of the executable file in the system's PATH environment variable.
README.MD README.md A file at the root of repo that provides information about the project, its contents, and how to use it.

List of allowed functions and system calls

access (man 2 access) chdir (man 2 chdir) close (man 2 close) closedir (man 3 closedir) execve (man 2 execve) exit (man 3 exit) _exit (man 2 _exit) fflush (man 3 fflush) fork (man 2 fork) free (man 3 free) getcwd (man 3 getcwd) getline (man 3 getline) getpid (man 2 getpid) isatty (man 3 isatty) kill (man 2 kill) malloc (man 3 malloc) open (man 2 open) opendir (man 3 opendir) perror (man 3 perror) read (man 2 read) readdir (man 3 readdir) signal (man 2 signal) stat (__xstat) (man 2 stat) lstat (__lxstat) (man 2 lstat) fstat (__fxstat) (man 2 fstat) strtok (man 3 strtok) wait (man 2 wait) waitpid (man 2 waitpid) wait3 (man 2 wait3) wait4 (man 2 wait4) write (man 2 write)


Authors

portfolio linkedin twitter

twitter

Lesson Learned 📃

Using a shell script is most useful for repetitive tasks that may be time consuming to execute by typing one line at a time. A few examples of applicatiions shell scripts can be used for include: Automating the code compiling process. Running a program or creating a program environmentt.

🛠 Skills

C proramming language.

About

A simple UNIX command interpreter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •