Skip to content

C implementation of a Linux-style operating system in command-line

Notifications You must be signed in to change notification settings

eduardspirache/Operating-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Operating-System

This project was made in the 2nd year of university and implements a Linux file system using simple linked lists. All memory allocations are managed properly and no memory leaks occur throughout the project. Upon running the application, it will wait for inputs from stdin. Examples of commands are: touch f1, mkdir d1, rm f2, rmdir d2, ls, mv old_name new_name, etc. The commands will be explained below.

Commands

  1. touch: Creates a file in the current directory.
  2. mkdir: Creates a directory in the current directory.
  3. ls: Displays all directories and files in the current directory.
  4. rm: Deletes the file with the given name from the current directory.
  5. rmdir: Deletes the directory with the given name from the current directory, as well as all files inside it.
  6. cd: Changes the current directory to the one with the given name.
  7. mv: Moves a file or directory from its original location to the desired one.
  8. stop: Terminates the application.

How to Run

In order to run the application use the command "make build" followed by "make run".

About

C implementation of a Linux-style operating system in command-line

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published