You can execute commands from within the nano text editor in Linux

Jack Wallen is ready to help you with the built-in Execute tool in nano when you want to make it a bit more flexible.
Source: techrepublic.com/rssfeeds/topic/open-source/