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.
SOME PICTURE FROM SHELL
- All the
code
required to get started
- 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
-
My shell support the following commands:
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.
which will print the path of present working directory.
which will change the present working directory to the location provided as argument.
which will print the list of supported commands.
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 )
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)).
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.
That command which will exit the shell.
- 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 :)
Reach out to me at one of the following places!
- Linkedin at
Emre_Ozgun_linkedin
- Stackoverflow at
Emre_Ozgun_stackoverflow