Giter Club home page Giter Club logo

oskernel's Introduction

OS Kernel

About

A fully functioning OS Kernel and file system written in C. Complete with a contigous file system, disk drivers, I/O, memory manager, CPU emulation, and more!

Getting Started

  1. Clone the repo
    git clone https://github.com/ArianOmidi/OSKernel.git
  2. Compile Project
    cd ./src/c/
    make
  3. Test Files
    ./mykernel < testfile.txt
  4. Test Suite (Using BASH Testing System)
    cd ./test/
    ./test.sh

Usage

To start the kernel and create a shell, run ./mykernel.

Run help once in the kernel to get a list of available commands.

=======================================================================================================
COMMANDS			DESCRIPTIONS
=======================================================================================================
help				| Displays all commands.
-------------------------------------------------------------------------------------------------------
quit				| Terminates the shell.
-------------------------------------------------------------------------------------------------------
set VAR STRING			| Assigns the value STRING to the shell memory variable, VAR.
-------------------------------------------------------------------------------------------------------
print VAR			| Displays the STRING value assigned to the shell memory variable, VAR.
-------------------------------------------------------------------------------------------------------
run SCRIPT.TXT			| Executes the file SCRIPT.txt.
-------------------------------------------------------------------------------------------------------
exec P1 P2 P3			| Executes programs P1 P2 P3 concurrently.
-------------------------------------------------------------------------------------------------------
mount NAME BLOCKS BLOCK_SIZE	| Mounts an existing partition orcreates a new partition if the
				| partition name does not exist.
-------------------------------------------------------------------------------------------------------
write FILENAME [STRING]		| Writes the inputed string, enclosed by [], to a file.
-------------------------------------------------------------------------------------------------------
read FILENAME VAR		| Reads the contents of a file into the shell variable, VAR.
=======================================================================================================

Contact

Arian Omidi - [email protected]

Any ideas or improvements are much appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.