GithubHelp home page GithubHelp logo

gomba66 / simple_shell Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 40 KB

A shell is a command-line interpreter or shell that provides a command line user interface for Unix-like operating systems.

C 100.00%

simple_shell's Introduction

Project - Our own Shell

Mini|Shell

Project by Holberton Students for Holberton School

What is a shell?

A Unix shell is a command-line interpreter or shell that provides a command line user interface for Unix-like operating systems. The shell is both an interactive command language and a scripting language, and is used by the operating system to control the execution of the system using shell scripts.

Installation

Use the next command for to install our version of shell.

git clone https://github.com/gomba66/simple_shell.git

And then you should to compile the files

gcc *.c -Wall -Werror -Wextra -pedantic -o Shell

Execute

For execute our shell you should to type:

./Shell

Usage

$ ls

type ENTER

Example On screen... ($ ls)

$ ls
color.c    _exe.c       main.c                _prompt.c  searchpath.c  _strtok.c       tokpath.c
_concat.c  holberton.h  man_1_simple_shell  _printstring.c       README.md  stringfun.c   Superminishell
$

Example On screen... ($ ls -l)

$ ls -l
total 72
-rw-rw-r-- 1 vagrant vagrant   998 Aug 27 20:05 README.md
-rwxrwxr-x 1 vagrant vagrant 13929 Aug 28 19:56 Superminishell
-rw-rw-r-- 1 vagrant vagrant   921 Aug 28 19:37 _concat.c
-rw-rw-r-- 1 vagrant vagrant  1034 Aug 28 19:50 _exe.c
-rw-rw-r-- 1 vagrant vagrant   167 Aug 28 19:37 _printstring.c
-rw-rw-r-- 1 vagrant vagrant   830 Aug 28 19:37 _prompt.c
-rw-rw-r-- 1 vagrant vagrant   490 Aug 28 19:37 _strtok.c
-rw-rw-r-- 1 vagrant vagrant   238 Aug 28 19:37 color.c
-rw-rw-r-- 1 vagrant vagrant   613 Aug 28 19:56 holberton.h
-rw-rw-r-- 1 vagrant vagrant   844 Aug 28 19:55 main.c
-rw-rw-r-- 1 vagrant vagrant  1666 Aug 29 01:37 man_1_simple_shell
-rw-rw-r-- 1 vagrant vagrant   428 Aug 28 19:37 searchpath.c
-rw-rw-r-- 1 vagrant vagrant   922 Aug 28 19:56 stringfun.c
-rw-rw-r-- 1 vagrant vagrant   612 Aug 28 19:37 tokpath.c
$

it work too with ($ /bin/ls)

$ /bin/ls
README.md	_concat.c  _printstring.c  _strtok.c  holberton.h  man_1_simple_shell	searchpath.c  tokpath.c
Superminishell	_exe.c	      _prompt.c	      color.c    main.c	      			stringfun.c
$ 

it work too with ($ /bin/ls -l)

$ /bin/ls -l
total 72
-rw-rw-r-- 1 vagrant vagrant   998 Aug 27 20:05 README.md
-rwxrwxr-x 1 vagrant vagrant 13929 Aug 28 19:56 Superminishell
-rw-rw-r-- 1 vagrant vagrant   921 Aug 28 19:37 _concat.c
-rw-rw-r-- 1 vagrant vagrant  1034 Aug 28 19:50 _exe.c
-rw-rw-r-- 1 vagrant vagrant   167 Aug 28 19:37 _printstring.c
-rw-rw-r-- 1 vagrant vagrant   830 Aug 28 19:37 _prompt.c
-rw-rw-r-- 1 vagrant vagrant   490 Aug 28 19:37 _strtok.c
-rw-rw-r-- 1 vagrant vagrant   238 Aug 28 19:37 color.c
-rw-rw-r-- 1 vagrant vagrant   613 Aug 28 19:56 holberton.h
-rw-rw-r-- 1 vagrant vagrant   844 Aug 28 19:55 main.c
-rw-rw-r-- 1 vagrant vagrant  1666 Aug 29 01:37 man_1_simple_shell
-rw-rw-r-- 1 vagrant vagrant   428 Aug 28 19:37 searchpath.c
-rw-rw-r-- 1 vagrant vagrant   922 Aug 28 19:56 stringfun.c
-rw-rw-r-- 1 vagrant vagrant   612 Aug 28 19:37 tokpath.c
$ 

Contributing

You can to help us, forking our repository, merge are welcome!

Created by:

Twitter accounts: Daniel Ramirez - Jose Marulanda
GitHub accounts: Daniel Ramirez - Jose Marulanda

simple_shell's People

Contributors

gomba66 avatar josemarulanda avatar

Stargazers

 avatar

Watchers

 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.