Skip to content

Emreozgun/myShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyShell

It is my shell that named gtushell.You can run it with Makefile on terminal.Shell supports some basic commands in linux shell.You can find these commands - Features .

This project is an application that runs through the console.

Badges Badges Badges Badges Badges Badges Badges Badges Badges Badges                                                                                                    Badges

SOME PICTURE FROM SHELL

Screenshot from 2020-01-21 18-42-31


Table of Contents

Installation

  • All the code required to get started

Clone

  • Clone this repo to your local machine using https://github.com/Emreozgun/myShell.git
  • Then open the terminal and go to the directory where the file is located.
  • Run with make all && ./gtushell

Features

Commands

  • My shell support the following commands:

    lsf

    which will list file type (R for regular file, S for non-regular(special) file), access rights (int the form of rwxr-xr-x, just like actual ls), file size(bytes) and file name of all files (not directories) in the present working directory. It doesn’t take any argument. Does not list any directory.

    pwd

    which will print the path of present working directory.

    cd

    which will change the present working directory to the location provided as argument.

    help

    which will print the list of supported commands.

    cat

    which will print on standard output the contents of the file provided to it as argument or from standard input. The file can be on any directory on the system. (example, cat file.txt )(example2, pwd | cat )

    wc

    which will print on standard output the number of lines in the file provided to it as argument or the string coming from standard input until EOF character (example, Input: wc file.txt Output:55) (example2, Input: lsf | wc Output: 5 (there are 5 files in current directory so output of lsf has 5 lines)).

    bunedu

    the file path argument of bunedu can also come from standard. bunedu command, short for disk usage, is used to estimate file space usage.The bunedu command can be used to track the files and directories which are consuming excessive amount of space on hard disk drive.

    exit

    That command which will exit the shell.

    Other features

    • When the user types !n , the n-th previous command will run (Its like up and down arrow keys).
    • Each command supports have a single pipe "|" or a single redirection operator > <.
    • You can use Ctr-C to exit from gtushell.

I like linux penguins :)

ttystudio GIF

Support

Reach out to me at one of the following places!


Releases

No releases published

Packages

No packages published