Nano is a simple and user-friendly text editor that comes pre-installed in many Linux distributions. It is often used to…