Skip to content

skoom21/O-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

O-Shell

Welcome to O-Shell, your interactive command-line shell project! O-Shell aims to provide a user-friendly interface for interacting with your operating system through the command line.

Features

  • Interactive Shell: O-Shell offers an interactive command-line interface, allowing users to execute commands and navigate the file system efficiently.

  • Tab Completion: Enjoy the convenience of tab completion, which suggests file and directory names as you type, making command entry faster and more intuitive.

  • Customization: Customize your shell with different themes and configurations to suit your preferences and workflow.

Dependencies

  • Make: The make utility is required to build the shell using the provided Makefile. If make is not installed, you can install it using the package manager of your operating system:

    • For Debian/Ubuntu:
      sudo apt-get install make
      
    • For CentOS/RHEL:
      sudo yum install make
      
    • For macOS (via Homebrew):
      brew install make
      
  • Readline Library: O-Shell utilizes the Readline library for advanced line-editing and command-line interaction features. Ensure that the Readline library is installed on your system before building the shell. You can install it using the package manager of your operating system:

    • For Debian/Ubuntu:
      sudo apt-get install libreadline-dev
      
    • For CentOS/RHEL:
      sudo yum install readline-devel
      
    • For macOS (via Homebrew):
      brew install readline
      
      

Built-in Commands

O-Shell supports the following built-in commands:

  • cd: Change the current directory.
  • ls: List files and directories in the current directory.
  • rm: Remove files or directories.
  • pwd: Print the current working directory.
  • mkdir: Create a new directory.
  • echo: Display a line of text.
  • help: Show support for all the built-in commands and their usage.

Getting Started

To use O-Shell, follow these simple steps:

  1. Clone the repository:
git clone https://github.com/skoom21/o-shell.git
  1. Navigate to the project directory:
cd o-shell
  1. Build the shell using the provided Makefile:
make
  1. Run the shell executable:
./main

Contributing

Contributions to O-Shell are welcome! If you'd like to contribute, please fork the repository, make your changes, and submit a pull request. Make sure to follow the project's coding standards and guidelines.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgments

  • Special thanks to our mothers for inspiration and guidance. (HAPPY MOTHERS DAY)

About

A Legacy OS course project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published