In this repo following commands are implemented
Following commands must work :
- cd <directory_name> - Should work same as bash shell.
- pwd - Prints current working directory.
- ls <directory_name> - Should work same as bash shell. Support for flags is not required.
- <path_to_binary> - When path to a binary is provided, that binary should be spawned as a child process. The binary must receive all the arguments passed as space separated like arg1 arg2 ….
- fg - Brings the background process with process id to foreground.
- exit - Closes the shell.
Following key combination should work :
- Ctrl + C - Sends a SIGINT to the spawned process.
- Ctril + Z - Sends spawned process that is currently in foreground to the background. Prints it’s pid after setting the current process as background process.
Command Lines In Node JS requires Node.js v10+ to run.
Install the dependencies and devDependencies and start the server.
npm i
npm i nodemon -g
MIT