...

/

Installing and Running Applications in Bash

Installing and Running Applications in Bash

Learn how to install git and various options to run an application in Bash.

Installing git

A good practice is to download all package information before installing any application. This can be done using the following command:

sudo apt-get update

Let’s install git now:

sudo apt-get install -y git

The -y flag is an automatic yes to prompts. It allows the process to run non-interactively.

Connect to the terminal.

Use student-password as password if prompted to enter a password.

Terminal 1
Terminal
Loading...

We can also check the version of git installed:

git --version

How to run an application

Now, we installed a new application. Its executable file will be in /usr/bin. How do we run this application in Bash? There are several approaches we can follow:

  1. By the name of the executable file.
  2. By the absolute path.
  3. By the relative path.

Let’s ...