As the name suggests this is a shell like software. Like a normal shell in linux or command prompt in windows, it also works like the same. It is made using C++ language and my motive of building this software is to refresh my C++ language skills and to make something which can take command and work.
Table of Contents
- Light Weight
- Fast
- Secure
- Cross-Platform
- User friendly
The main program is written in the main.cpp file and the functions written there are in there individual files and I have made them header files and included them where it is necessary. All the code is written in C++ language. I have included CommandConsole.exe file of the main.c++ file. I have run it in my system and it worked fine doing all the things.
- Calculator: calc
- Change Current Working Directory: ccwd
- Clear the Screen: clr
- Show the time: time
- Make new directory: mkdr
- Help(which show all the function to be run): help
- List all the files and directories: list
- Create new file: make
- Print the current working directory: pcwd
- Remove the file: remo
- Remove the directory file: rmdr
- Append something in a file: wrta
- Write something in a file: wrte
- Print the content of the file: read
- Change the username and password: cnge
- Copy the contents of one file to another file: cfile
- Print the information of OS: sys
- Print the thing you wanted: echo
- Print username & password: root
- Rename the file: rfile
- Rename the folder: rdr
- To confirm that a file or folder is present in a directory specified by you: getf
- To get the number of line of a file in which a specified word is present: findf
- To get the list of past commands: hist
- To start a game: game. (A new cricket game is added to this application so that the users can enjoy while doing work. Check Others/cricket.hpp)
Now, in CommandConsole you can find things related to internet like ping to a website, getting the IPv4 address, etc The commands are :-
- Print the IPv4 address: ipad
We have used the concept of Queue in the code using the stl library.
All the functions are written in MainCommands.hpp
- Provide the correct command or else it will show "GIVE THE RIGHT COMMAND :}>".
- Type quit to stop the shell.
- When changing the directory provide the exact name of the directory.
If you have docker installed then it is very good. The steps to execute the software using docker are as follows:-
- type :-
docker run -it shreejan35/commandconsole:version (The latest version is available in the releases).
Try to use the laterst version which is bug free
- It will pull the image from the docker hub.
- When all the things are done it will start the program.
- It will be like a normal shell. First of all type 'list' then check that all the files which are there in the github are shown there.
- Don't do anything there or else the software will not work as that is the only working directory.
- I have made another directory for you all, i.e, home. Go there by using 'ccwd' command.
- Finally test all the commands.
- Here is my docker repository link - https://hub.docker.com/repository/docker/shreejan35/commandconsole
You can clone my repository by executing this:-
git clone https://github.com/CapedDemon/CommandConsole.git
To run CommandConsole in linux/unix run:-
sudo apt-get install wine
wine CommandConsole.exe
You can also download the zip file, and then run the CommandConsole.exe file.
Prerequisite
- Git need to be installed
- The folder or directory in which you have kept the application need to have the name CommandConsole or else there can be some error.
Probably saying the Command Console is written in C which you can check in the previous versions/releases. But with modern days comes modern tech. which is needed. That's why it is implemented in c++.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b CommandConsole
) - Commit your Changes (
git commit -m 'Add some advices'
) - Push to the Branch (
git push origin CommandConsole
) - Open a Pull Request
Support me by giving a ✨ to this project
The license is GNU public license see more n LICENSE
This is all the things about my program. If you like it, then please share with others. This is a project which the begineers as well as intermediate programmers can build. Support me by following my github account. Thank you.