- Prints the contents of a file.
- Usage:
type FILENAME
- Executes a file.
- Usage:
exec FILENAME
- Copies a file.
- Usage:
copy FILENAME NEWFILENAME
- Creates a new file.
- Usage:
create FILENAME
- Lists all files on the system.
- Usage:
dir
- Prints a single character.
- Continuously accepts user input and executes corresponding commands.
- Provides help information for each command if typed on its own:
del
: Delete a file.dir
: List all files on the system.type
: Print out contents of a file.exec
: Execute a file.copy
: Copy a file.create
: Create a new file.help
: Show commands for the system.
- Ensure file names are 6 characters long for relevant commands.
- Handle file not found scenarios and provide error messages.
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/joemas08/comp350ProjectD.git
Run the Operating System:
- Compile with
./compileOS.sh
- Run with
java -jar simulator.jar
Boot with disk.img file