❌

Normal view

There are new articles available, click to refresh the page.
Before yesterdayMain stream

A simple design calculator on linux command line

25 June 2022 at 09:57

when we open terminal or Konsole in Linux we used to think by using many utilities why calculators was not there interactively in itΒ ?

Now here is the solution for it just by cloning a repository from GitHub on your PC. Here is the GitHub link to cloneΒ it.

Just open your terminal and make a directory for safety purpose for thatΒ type,

mkdir calculator;cd calculator

creating directory on my home directory and changing it to calculator

the above command explain about making and changing directory from home directory.

then type,

git clone https://github.com/vishnumur777/simplecalculatorbash

cloning repository through gitΒ command

this command will clone all the files present in the repository.

but please make sure that you have installed git on yourΒ PC.

Then change directory to simplecalculatorbash using

cd simplecalculatorbash/

changing directory to simplecalculatorbash

then type,

chmod +xΒ calci.sh

modifying permissions to executables

this command changes the permission to run on user without depending on rootΒ . So that many PC cause this error that permission was denied while executing theΒ file.

For execution runΒ type,

./calci.sh

command to execute simplecalculator

and press enterΒ key

which will run very colourful calculator interactive prompt by installing dependencies which I posted onΒ GitHub.

calculator performing addition of two numbers interactively
❌
❌