Ubuntu '-bash: nano: command not found'

David Babablola picture David Babablola · Jun 17, 2020 · Viewed 11.4k times · Source

I am trying to use Ubuntu 18.04 to download ModSecurity on Google Cloud, but whenever I try writing sudo nano *file*.conf or nano *file*.conf. I get an error saying -bash: nano: command not found or sudo: nano: command not found. I'm not sure if it is because I'm using Google Cloud Platform for this, but I just need to know how to solve this problem

Answer

SerialEnabler picture SerialEnabler · Jun 17, 2020

Try running sudo apt-get install nano

It appears nano isn't installed on your machine