Operating System Project 2

Developing a Linux-like command shell with C/C++ language

 your implementation of the “builtin commands”:
a. cd – Change the current default directory to
. If the argument is not present, report the current directory. If the directory does not exist an appropriate error should be reported. This command should also change the PWD environment variable.
b. clr – Clear the screen.
c. dir – List the contents of directory .
d. environ – List all the environment strings.
e. echo – Display on the display followed by a new line (multiple spaces/tabs may be reduced to a single space).
f. help – Display the user manual using the more filter.
g. pause – Pause operation of the shell until ‘Enter’ is pressed.
h. quit – Quit the shell.
i. The shell environment should contain shell=/myshell where /myshell is the full path for the shell executable(not a hardwired path back to your directory, but the one from which it was executed). 

Tags: No tags