Simple implementation of a basic linux shell in C, capable of handling any executable binary (need to give the absolute path), pipes, I/O redirections, as given in the ReadMe file.
- command: execute the command and wait for the command to finish
- command > filename: redirect stdout to file filename. If the file does not exist create one, otherwise, overwrite the existing file
- command >> filename: If the filename already exists append the stdout output, otherwise, create a new file
- 1>filename: redirect stdout to filename
- 2>filename: redirect stderr to filename
- 2>&1: redirect stderr to stdout
- command < filename: use file descriptor 0 (stdin) for filename. If command tries to read from stdin, effectively it will read from filename.
- |: pipe command
- exit: exit from the shell program