/CosmosKernel

Command line operating system kernel written in C#

Primary LanguageC#

CosmosKernel

A command-line based operating system kernel.

Implemented functionalities include the running of batch files, several commands (listed below) and an integrated file system. This kernel was created based on the CosmosOS user kit available at https://github.com/CosmosOS/Cosmos

Implemented commands

help - Displays the most common available options to the user.

echo - Prints the line following the echo keyword that was entered by the user.

time - Displays the current system time.

date - Displays the current system date.

dir - lists files/documents and sub-directories that are available inside the current directory as well as meta-data, which may include size and file-type.

run - runs the appropriate BATCH file(s) the following syntax is used run [filename].bat Running of multiple batch files is also supported using Round-Robin to run all files more efficiently. Similar syntax can be used to run multiple files by simply concatenating any other desired files to the end of the line.

create - creates the appropriate file based on the extension the following syntax is expected create [filename].[ext] whenever the extension ends in .bat or .txt, the user will be shown a series of lines which will be recorded into the file that will be created. This can be called to finish by tying 'save' alone in one line at any time during the creation of the file.

mkdir - creates a new directory inside the current directory. By default the user is inside the home directory C:\\.

cd - changes to the specified directory if it exists, otherwise no change takes place. To navigate up the directory tree, the user may enter the following syntax "cd .."

This project was written in C#