https://github.com/capeddemon/commandconsole
This is a shell made using C++ language.
https://github.com/capeddemon/commandconsole
cross-platform hacktoberfest hacktoberfest-accepted hacktoberfest2022 lightweight linux open-source secure terminal userfriendly
Last synced: 11 months ago
JSON representation
This is a shell made using C++ language.
- Host: GitHub
- URL: https://github.com/capeddemon/commandconsole
- Owner: CapedDemon
- License: gpl-3.0
- Created: 2021-10-28T08:22:25.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-26T09:38:44.000Z (over 3 years ago)
- Last Synced: 2024-12-03T15:48:40.959Z (over 1 year ago)
- Topics: cross-platform, hacktoberfest, hacktoberfest-accepted, hacktoberfest2022, lightweight, linux, open-source, secure, terminal, userfriendly
- Language: C++
- Homepage:
- Size: 1.74 MB
- Stars: 16
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README




[](https://www.codefactor.io/repository/github/capeddemon/commandconsole)


CommandConsole
Join our discord -
CommandConsole Server
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
## **FEATURES**
- Light Weight
- Fast
- Secure
- Cross-Platform
- User friendly
## **Documentation**

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.
### Commands:
- 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)
### Internet
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**
### Important:
- 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.
##
## **GETTING STARTED**

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.
### Screenshot

## **HISTORY**
> 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++.
## **CONTIBUTING**
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!
1. Fork the Project
2. Create your Feature Branch (`git checkout -b CommandConsole`)
3. Commit your Changes (`git commit -m 'Add some advices'`)
4. Push to the Branch (`git push origin CommandConsole`)
5. Open a Pull Request
## **SUPPORT**
Support me by giving a ✨ to this project
## LICENSE
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.**