Questions tagged [nano]

nano - open source text editor available on most Linux distributions

nano is an open source text editor originally created as an alternative to pico which did not have a free software license. It is part of the GNU project and included in most Linux distributions.

8 questions
8
votes
5 answers

How can I get latest version of nano (4.5) on CentOS 7?

The latest version of the nano editor is 4.5 (https://www.nano-editor.org/)... I'm running 2.3.1 on my CentOS 7 server and want to upgrade. But no repos (EPEL, Remi, etc.) seem to have anything newer than 2.3. How can I get the latest nano? Do I…
Eric
  • 1,127
  • 3
  • 13
  • 24
6
votes
1 answer

nano very slow over ssh

Recently nano has started to be very slow when editing files over ssh. It's particularly slow when editing large files with syntax highlighting. It's most noticeable when yanking lines. There can sometimes be a delay of well over a second while…
Jordan Reiter
  • 1,290
  • 4
  • 20
  • 40
2
votes
0 answers

editing files with nano adds a bytemark to the file which nginx prints to the client

When we have to edit php files on the webserver, sometimes our website prints out part of what i think is a bytemark to "lock" the file from nano. On the website, it then adds weird strings like for example: b0nano…
radonthetyrant
  • 183
  • 1
  • 6
1
vote
1 answer

When root opens crontab Vim is used although Nano is set as the default editor. Why might this be?

Environment: CentOS 8 Question: When I enter sudo crontab -e it opens in Vim. However Nano is set as the default editor and for every other type of file it is used as expected. Why might this be? Is there a way around this? Background: I followed…
myNewAccount
  • 569
  • 1
  • 6
  • 19
0
votes
0 answers

Nano surpress errors

I have a small script that copies my dotfiles to servers when I connect. One of them is my nanorc. My problem is that I have some legacy servers which dont have the newest version of nano installed. I get some messages because my .nanorc file has…
0
votes
1 answer

Error opening terminal: unknown when executing nano

I have nano installed on a CentOS 7 VPS. When trying to open a file using nano, such as sudo nano /etc/vsftpd/vsftpd.conf, i get Error opening terminal: unknown. I am using Termius to access my VPS using SSH
Bowis
  • 103
  • 1
  • 3
0
votes
1 answer

Send keys over ssh connection to nano editor

I have a situation where I am deleting the crontab and then recreate it. So I do crontab -r and then crontab -e. The problem I have is that crontab -e opens up nano, and I'd like a command line that can do crontab -e then send the F3 and F2 keys,…
IonutN
  • 1
-3
votes
1 answer

Edit mod_rewrite

Now, this is a very simple question but I'm new to this topic. To test my website, I'm using a virtual machine (Oracle VM). I'm using ubuntu with apache2. I want to edit mod_rewrite to, of course, rewrite some URLs. But I just don't know how to edit…