SOMMIP


Logo

Lab 1

Isac Arthur

About The Project

This very simple and sussy project is an implementation of SOMMIP Lab 1 written in Golang. Among OS does not support any filesystem related functionality
nor supports users and sessions. It’s a simple printer with very basic user interaction

Task description:
For the task/lab “OS Simulator” you need to crate an simple application (in any programming language) which will simulate an simple Command Line Operating System. It should include short “booting part of the PC or of the OS and after that it should include “simulation” of an CLI OS with a few text commands (3-6 different commands).
This should be your individual VISION of an simple CLI OS!

(back to top)

Getting Started

Prerequisites

Installation

  1. Clone the repo

    git clone https://github.com/FoxFurry/Among-OS.git
  2. Install the dependicies

     $ go mod download

(back to top)

Supported commands

Echo

Simply redirects seconds parameter to stdout

Example:

> echo Sus
Sus

Help

Prints help information for command specified as second parameter
If no parameter specified – prints help for itself

Example:

> help echo
Echo is a command tool used for displaying lines of text or string which are passed as arguments on the command line

> help
Help is a simple command which show description of another command specified as parameter.
        Example:
        help echo

Shutdown

Closes Among os with exit code 0

Example:

> shutdown
Shutting down Among OS

Process finished with the exit code 0

Uname

Prints kernel-related information
Supports next parameters:

  • -r — print kernel release version
  • -p — print CPU information
  • -s — print kernel name
  • -a — print Bruh
    If no parameters is specified – kernel name will be shown (e.g. uname -s)

Example:

> uname -r
kernel release 5.69 k-among 

> uname -rrrraaaaaaa
kernel release 5.69 k-among Bruh 

> uname -rpsa
kernel release 5.69 k-among Intel(R) Core(TM) i9-6969K CPU @ 6.969Ghz Among OS Bruh 

(back to top)

GitHub

View Github