Skip to content

MohamedYehia20m/terminal-project

Repository files navigation

Terminal Project

A custom terminal application built in C, designed to provide basic shell functionalities such as executing commands, managing paths, and handling built-in functions.

Features

  • Command Execution: Supports standard command-line commands.
  • Environment Handling: Includes commands like cd, env, and exit.
  • Path Management: Resolves command paths and manages environment variables.
  • File Execution: Allows command execution from files.
  • String and Memory Operations: Custom implementations for string manipulation and memory handling functions.

Setup

  1. Clone the repository:
 git clone https://github.com/MohamedYehia20m/terminal-project.git
  1. Compile the source code:
gcc -Wall -Werror -Wextra -pedantic -std=gnu89 *.c -o hsh
  1. Run the shell:
./hsh  

Usage

Once the shell is running, you can enter commands and execute them. Here are a few examples:

  • Execute an external command:

    $ ls -l
    ```
    
  • Execute a built-in command:

    $ cd /path/to/directory
    ```
    
  • Pipe commands:

    $ ls -l | grep "example"
    ```
    

For more information on available commands and their usage, refer to the man pages or consult the documentation.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. Make sure to follow the project's code of conduct.

License

This project is licensed under the MIT License.

Feel free to customize and modify this template to fit your specific shell project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages