Linux shell simular that was implemented using some C functions like fork(), execlp(), and waitpid()
Learning process management in C/C++.
1.clone the repository
2.type Make or Make shell to produce the executable file
3. run it with ./shell and you can type the commmands below
cdir <pathname>: change current directory to pathname. can Be absolute or relative path. environmental variable works as well
example:cdir $HOME/document\pdir: prints the path of the current directorylstasks: list all the processes that were executed byruncommandrun <programName> arg1 .. arg4: runs with their argument. Implemented using fork() and execlp(). becomes a task
example:run xclock -geometry 200x200stop taskNumber: stops the task using SIGSTOPcontinue taskNumber: conitune the tasks that were stoppedterminate taskNumber: terminate the taskcheck <PID>: list out the descendent process of process with this PIDexit: terminate the program. this will free up all the processes that were ranquit: termiane without freeing the process. They will become a zombie process.