Skip to content

z3y50n/Unix_Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Operating Systems

My Shell

Papageorgiou Dimitrios 8884

---------------------------------------------

Installation

`>cd ~/Download/8884
`make

How to use

Special characters

; - run 2 commands in a row

&& - run 2 commands only if the first is succesfull

> or < - Redirect output in a file

| - run the second command with input from the output of the first command

Interactive Mode

In the installation folder type:

>/bin/myshell

The shell will start and you can press commands.

example:

>ls | wc > file ; echo hello world

It supports 1 redirection and 1 pipe in row

>ls | head -3 | tail -2 > file > file2
>ERROR

Type >quit to exit

Batch Mode

In the installation folder type:

>/bin/myshell "code.sh" 

The terminal will execute all the commands that are inside the file and exit

About

A simple unix shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published