grass command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
grass: command not found
or when using sudo you get the following error message
sudo: grass: command not found
Solutions to grass: command not found
How To Fix grass: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu grass is provided by grass-core package.
grass-core is:
Commonly referred to as GRASS, this is a Geographic Information System (GIS) used for geospatial data management and analysis, image processing, graphics/map production, spatial modeling, and visualization. GRASS is currently used in academic and commercial settings around the world, as well as by many government agencies and environmental consulting companies.
This package contains the core processing components, but not the GUI.
To fix this problem, we can install more using the command below.
sudo apt-get -y install grass-core
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install grass-core.
sudo apt -y install grass-core
Or if you have aptitude installed you can use the following command.
sudo aptitude install grass-core
Summary
In this tutorial we learn how to fix grass command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.