Created a mini Linux shell interpreter in C.
-
This page contains the list of all valid commands that can be executed using this shell.
-
This shell can implement a total of 11 commands: 6 internal commands/shell builtins, and 5 external commands as listed here -
chd [relative_path](cd) (no flags)hisstory [-clear, -write](history)- Flags handled -
-clear: to clear the command history.-write: to write something from stdin into the history.
- Flags handled -
cwd (pwd)(no flags)hellp (help)(no flags)ecko [-n, -e] ["..."](echo)- Flags handled -
-n: to omit the newline character ('\n') after echoing.-e: to identify some escape sequences which it otherwise would have treated as any other characters (\tand\nhandled).
- Flags handled -
quit (exit)(no flags)
-
datetime [-g, -u](date)- Flags handled -
-g: to display GMT date, day and time.-u: to display UTC date, day and time.
- Flags handled -
-
makedir [-v, -m] [dir_name](mkdir)- Flags handled -
-v: verbose - prints a message after creating the directory.-m: mode - takes a 4 digit mode as input to custom specify read, write and execute permissions for the newly created directory.
- Flags handled -
-
list [-a, -l](ls)- Flags handled -
-a: to display all files in the current working directory, including the hidden files.-l: to display all files in long listing format (excluding hidden ones).
- Flags handled -
-
kat [>] [file1, file2, ...] [>] [file1, file2, ...](cat) (no flags) -
remove [-v, -d] [file_name, dir_name](rm)- Flags handled -
-v: verbose - prints a message after removing the file passed as argument.-d: to remove directory
- Flags handled -