this is a basic shell made in Python. Its commands mostly come from the already-existing Bash Shell It is made only with the os and subprocess module
echo [text]
orprint [text]
: Prints the entered text.pwd
: Displays your current path.cd [directory]
: Changes to the specified directory.ls
: Lists all the files in the current directoryexit
: exits the shellhelp
: prints all the commandsmkdir [directory name]
: creates a directory by the specified namermdir [directory name]
: deletes a directory specifiedtouch [name]
: creates a file under the specified namerm [name]
: deletes the file registered under that name
To install and use the project you have to have Python (recommended is 3+ versions) and to make the process easier you can also have git.
to install with git you need to open your terminal and run the command
git clone https://github.com/Filip-Nachov/Basic-Shell.git
and with that the code is installed and it will be in a directory called Basic-Shell and the directory will be placed in the place where the terminal was opened.
to install with the zip method you have to go to the repository and click on the green button located at the right top that says code
from there another small window will open up a small popup and there will be some options but what you want to click is Download Zip
it should be the last option in the popup and placed at the bottom of it. After that, you can just open the place you installed the zip and extract it. After you extracted it your extracted folder is the folder with the code and you got it installed.
The usage process is the same no matter how you install it.
To use it you can either open the shell.py file with Python or do it from the terminal by opening the Basic-Shell folder and running the command
python shell.py
and if that doesn't work run the command python3 shell.py
(Just remember you have to install python for this)
The license for this project is a MIT License