Run the following commands in the shell:
$ make
$ ./a.out
NOTE: This shell's home directory is set as the directory from where the executable is invoked.
- echo - similar to bash's "echo" command
- pwd - similar to bash's "pwd" command
- cd (flags: ~, -, ., ..) - similar to bash's "cd" command
- ls (flags: -a, -l) - similar to bash's "ls" command
- jobs - gives info on all background jobs
- setenv <var> <value> - creates environment variable var and stores value in it
- unsetenv <var> - destroys environment variable var
- bg - resumes a suspended background job in the background itself
- nightswatch - similar to bash's "watch" command
- newborn - prints pid of most recently created process
- interrupt - prints CPU interrupt info
- kjob <job number> <signal number> - sends signal corresponding to signal number to job corresponding to job number
- overkill - kill all background jobs
- quit - terminate shell
NOTE: Ctrl-C terminates the current running foreground command/job and Ctrl-Z suspends it and sends it to the background. Can use Ctrl-D to terminate shell.