HarShell is a custom shell created as part of the Operating Systems course (CSE231). It implements various Unix-based commands. The following commands have been implemented in HarShell:
Change the current directory.
- -L: Handle the operand dot-dot logically. Symbolic link components will not be resolved before dot-dot components are processed.
- -P: Handle the operand dot-dot physically. Symbolic link components will be resolved before dot-dot components are processed.
Print a string or variable to the console.
- -n: Removes the end of line character (\n) from input string arguments.
- -h: Provides information about using the echo command.
Print the current working directory.
Options:
-L: Instructs pwd to output the $PWD environment variable contents, including symbolic links. If no option is specified, -L is assumed. -P: Prints the path to the current directory. All components are directory names, and symbolic links are resolved.
List files and directories in the current directory.
- -a: Do not ignore entries starting with a dot (.).
- -m: Fill width with a comma-separated list of entries.
Display the current date and time.
- -u: Outputs the time in UTC (Coordinated Universal Time).
Create directories.
- -v: Print a message for each created directory.
Remove files or directories.
Concatenate and display the contents of files.
These commands provide a range of functionalities for navigating directories, managing files, and displaying information. Use HarShell to enhance your command-line experience.