Giter VIP home page Giter VIP logo

minishell's Introduction

minishell

Minishell is a small command-line interpreter written in C. It allows users to execute commands and navigate the file system using a subset of the features available in a full shell.

Building minishell

To build minishell, you will need a C compiler and the make utility.

  1. Clone the repository: git clone https://github.com/marceFrasson/minishell.git
  2. Change into the project directory: cd minishell
  3. Build the project: make

This will create a minishell executable in the project directory.

Running minishell

To start minishell, simply run the minishell executable:

./minishell

This will start the minishell interpreter and display a prompt. You can then enter commands to be executed.

Features

Minishell supports the following features:

  • Executing external commands and programs, such as ls, wc, and others
  • Built-in commands for changing the current working directory (cd), setting and displaying environment variables (setenv, unsetenv, and env), and exiting the shell (exit)
  • Pipes and redirections (with a limited implementation)

Minishell does not support all of the features of a full shell, such as background processes and more advanced forms of pipes and redirections.

References

Minishell was developed as a project for the 42 São Paulo curriculum. The ft_printf and libft directories contain custom implementations of the printf function and a library of utility functions, respectively, which were required as part of the project. These directories are not directly related to the minishell interpreter.

minishell's People

Contributors

marcefrasson avatar

Stargazers

Italo A. avatar

Watchers

Italo A. avatar Eliane Lang [ebresser] avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.