Questions tagged [nano]

GNU nano is an open source, curses-based text editor for Unix systems. It is a clone of [tag:pico], the proprietary Pine e-mail client editor.

Nano is a simple, small, lightweight text editor for written in . It was created in 1999 under the name TIP ("this isn't pico"). It was renamed to avoid conflit with the tip command in 2000 and officially joined the GNU project in 2001.

Nowadays, nano supports interaction through mouse, syntax highlight, -based search, customization of key bindings and (experimental) undo/redo support. More about it can be read in its homepage.

295 questions
4
votes
0 answers

How to make nano display colors as indicated by color codes?

I have a Python script that writes a log file "temperatures.csv". Following "https://stackoverflow.com/questions/287871/how-to-print-colored-text-to-the-terminal", I added some ANSI escape sequences to highlight text when, for example, a temperature…
user3217032
  • 79
  • 2
  • 5
4
votes
1 answer

Special characters not being displayed properly inside text editors on a docker container

I'm trying to display these Special Characters,µß£¬, on my Docker Container running java-centos' vi editor and nano editor, but the ß character is replaced with sort of a question mark � instead. expected output: µß£¬ actual output: µ�~_£¬. But I…
user7471661
4
votes
3 answers

Nano on server ignores certain syntax coloring

I'm using nano on a server via ssh; on that system, nano doesn't have syntax color enabled by default. So I copied these nanosyntax files (for alternative, see also @CraigBarnes' answer) on the server, and had set up ~/.nanorc as: include…
sdaau
  • 36,975
  • 46
  • 198
  • 278
4
votes
0 answers

Trying to compile nano with arm-linux-gnueabi-gcc

I am trying to cross-compile the NANO text editor for ARM. I am running Ubuntu, and using the arm-linux-gnueabi toolchain. I installed arm-linux-gnueabi with sudo apt-get install gcc-arm-linux-gnueabi. Then I downloaded and untared the sources of…
Redectro
  • 43
  • 6
4
votes
2 answers

How to change default editor for crontab in CentOS7?

I want to change the default editor on my CentOS 7 box for crontab as it currently launches vi and I prefer nano. I have read a lot of pages online which suggest running export EDITOR='nano' or some similar - some places seem to suggest double…
3N1GM4
  • 3,372
  • 3
  • 19
  • 40
4
votes
2 answers

difference between DOS Format and MAC Format

When I save a file using nano on linux (bash), I get a message asking me to choose the format. There are two options: DOS Format and MAC Format. Can someone explain to me the difference between them?
Alejandro Veintimilla
  • 10,743
  • 23
  • 91
  • 180
4
votes
1 answer

How to delete several lines containing only whitespaces in nano?

I have been using nano to write a bash script and I am at several times indenting various lines at once with Alt + }. The problem is that the following occurs: Several lines without text in them get white-spaces by the amount that I indent the text…
Lucas Alanis
  • 1,208
  • 3
  • 15
  • 30
3
votes
0 answers

Nano Problems with History Files

When I am editing a yml file with Nano I see this red error Problems with history file. Once I'm done I get the error below. I'm still learning linux and have a basic understanding of commands, but I followed the path /home/[my…
3
votes
1 answer

Cannot eXit from Nano with Control + X in Visual Studio Code Terminal. Is there another shortcut?

Control + X doesn't work to exit Nano in Visual Studio Code Terminal (I'm on Mac). I've edited a file, then saved it with Control + O. Works fine. But when I try to eXit Nano in the terminal it doesn't work. Is there another shortcut?
Andreas
  • 31
  • 3
3
votes
2 answers

Error in /etc/nanorc in GIT for Windows, no /usr/share/nano

I got this error while using nano in Windows Terminal, with GIT-bash. $ nano .bashrc Error in /etc/nanorc on line 237: Error expanding /usr/share/nano/*.nanorc: No such file or directory
Sylvain
  • 679
  • 9
  • 13
3
votes
3 answers

How To Open A File Using Text Edit In Terminal in MacOS

Another small question. I just recently migrated to ZSH and, so far I am loving it! My question is how can I open a file using TextEdit so that I can edit it using a GUI? Make no mistake, Vim is an amazing command-line tool for editing files in the…
XtremeDevX
  • 1,482
  • 2
  • 13
  • 38
3
votes
1 answer

Why does writing to file change the content (hash)?

I noticed, that when trying to generate some hashes after copy-pasting them into a file with vim, the hash is not as it is supposed to be. Same when file was opened and written out. Same behavior with nano, so there must be something I am mising. $…
Marcellvs
  • 391
  • 1
  • 3
  • 15
3
votes
1 answer

Cannot find bind-address in my.conf of MySQL 8.0

I have installed MySQL 8.0 on Google Compute Engine instance. I would like to follow this document to grant remote access from outside. However, after opening my.conf from /etc/mysql/, there is no line regarding bind-address in the file !includedir…
dinex
  • 367
  • 5
  • 15
3
votes
0 answers

Why should I learn vi?

It seems that the editor vi is more difficult to learn than other cli editors. Is this a misconception, and if not, what advantages does this editor have for a developer over the other standard editors?
Brandon Frohbieter
  • 17,563
  • 3
  • 40
  • 62
3
votes
1 answer

Prevent nano from creating save-file when SIGHUP or SIGTERM is received

G'day The text editor nano has this feature, that creates a save-file when the editor receives a SIGHUP or SIGTERM or runs out of memory. In this case nano writes the current editor content to a temporary file called nano.save or, if editing an…
n.r.
  • 831
  • 1
  • 11
  • 30