A quick tip for GNU Nano – the text editor. Ever receiving the terminal error when using nano?
[root@srv ~]# nano Error opening terminal: unknown. [root@srv ~]#
Under chroot or container (like docker) environment try exporting the TERM environment:
And then execute nano the chances are you will enter nano normally and do your work (faster than vim 🙂 )?
You may use it without exporting to your shell, but just the for the nano: