Skip to content

Unaiza898/shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Shell+

A C program which builds a shell environment with custom commands utilizing advanced programming techniques including process creation and control, file descriptors, signals, and pipes.

How to install & run

  • Clone the repository from Github on a Linux virtual machine
  • Enter the terminal and run gcc main.c -o main
  • Run the executable file in the terminal using ./main
  • clone the replit https://replit.com/@Unaiza898/shell#main.c

Shell Format

Screenshot 2022-11-30 181105

Custom Commands

shell- An environment in which the following commands will be executed. The shell will not quit unless the exit command is executed. The shell shows a different command prompt (one that does not include $ and >).

tree - Make a directory named Dir0. The working directory will then be changed to Dir0. Create three empty text files, t1.txt, t2.txt, and t3.txt, as well as one empty directory called Dir1 within it.

list - Clear the terminal screen and output a detailed list of the current directory's contents to the terminal and t1.txt. Finally, it will rename the text file to tree.txt.

exit - Print a list of the previous four commands to the terminal, as well as a full list of the current directory's contents. Finally, wait for the user to press the "return" key to end the shell and return control to the actual shell software on your system.

About

Create a shell with C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages