Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

CLIMaster - Terminal Simulation OS

CLIMaster is a terminal-based simulation project that mimics an operating system environment using C programming language. The project focuses on file system management, directory navigation, and file manipulation commands like mkdir, ls, cd, createfile, cat, and more. It provides a basic terminal interface for users to interact with files and directories, making it a great learning tool for understanding file systems and OS concepts.

Features

  • File System Simulation: Create and manage files within directories.
  • Directory Navigation: Navigate through directories using cd and list contents with ls.
  • File Operations: Create, display, write, and delete files using createfile, cat, echo, and remove.
  • Built-in Help: View available commands with the help command.

Commands

Below are the commands supported by CLIMaster:

  1. ls: Lists the files and directories in the current directory.
  2. mkdir <dir_name>: Creates a new directory.
  3. cd <dir_name>: Changes the current directory to the specified one.
  4. createfile <file_name>: Creates a new empty file.
  5. cat <file_name>: Displays the content of a file.
  6. echo <file_name>: Appends text to an existing file.
  7. remove <file_name>: Removes a file.
  8. help: Displays the list of available commands.
  9. exit: Exits the terminal simulation.

Installation

To get started with CLIMaster:

  1. Clone the repository to your local machine:

    git clone https://github.com/yourusername/CLIMaster.git
  2. Navigate into the project directory:

    cd CLIMaster
  3. Compile the project using GCC:

    gcc -o climaster main.c
  4. Run the program:

    ./climaster

Usage

Once the program is running, you will be prompted with a terminal interface where you can use the commands listed above to interact with the simulated file system.

Example

root$ ls
Files:
- about.txt
- projects.txt
Directories:
- projects
- files

root$ mkdir mydir
Directory 'mydir' created.

root$ cd mydir
Moved up to 'root'.

root$ ls
Files:
Directories:
- mydir

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages