- Utilized Java programming language and Linux command line knowledge to develop a Bash Terminal
- Implemented various executable Linux commands such as pwd, ls, find, mv, cd, mkdir, touch and exit
- Designed a ternary tree data structure to ensure project speed and flexibility
- Make sure you have Haskell installed on your system.
- Clone the repository and navigate to the project's directory.
- Compile the Java source code into bytecode, use the javac command followed by the name of the Java file.
- Once the compilation is successful, use the java command followed by the name of the main class to execute the Java program.
Sets the cursor to the root of the directory tree.
Changes the cursor to the specified directory with the given name.
- name: The name of the directory to change to.
Moves a file or directory from one location to another.
- src: The name of the file or directory to be moved.
- dest: The destination directory to move the file or directory to.
- srcArr: An array containing the path components of the source directory.
- destArr: An array containing the path components of the destination directory.
Moves the cursor to the parent directory of the current directory.
Finds the path of the specified directory.
- name: The name of the directory to find.
- Returns: The path of the directory.
Gets the path of the current directory that the cursor is on.
- Returns: The path of the current directory.
Lists the directories and files in the current directory.
- Returns: A space-separated string containing the names of directories and files in the current directory.
Creates a new directory in the current directory.
- name: The name of the directory to create.
Creates a new file in the current directory.
- name: The name of the file to create.
Prints the directory tree starting from the current directory.