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
9
votes
2 answers

How to disable wrapping lines in nano?

My nano did not wrap long lines automatically at first, they just kept going. I do not know what I did but now the automatic wrapping is enabled. I want to know how to reconfigure nano to disable automatic line wrapping, this has bothered me a…
user8684796
9
votes
2 answers

Scroll using the mouse in nano editor?

Probably not the right place to ask this question, but I couldn't find the answer anywhere. As the title says, is there a way to enable mouse wheel scrolling in the nano editor? (specifically ubuntu 14.04)
jj172
  • 751
  • 2
  • 9
  • 35
8
votes
2 answers

Nano. Copy (Alt+6) Doesn't work

I am using nano version 2.2.6 and I have no idea why copying isn't working. What I do now is cut and then paste it two times, but before, I was using Alt + 6 without problem, what happens¿? Thank you in advance
aDoN
  • 1,877
  • 4
  • 39
  • 55
8
votes
2 answers

Passing file directly to nano fails with sighup or sigterm

was want to search for a specific file on my server and directly edit it within nano. i tried it like this, but it wont work find -name file.php | xargs nano $1 the file is found, but it wont work like that Received SIGHUP or SIGTERM how to do…
easteregg
  • 509
  • 4
  • 9
7
votes
3 answers

How to fix /etc/sudoers: syntax error near line number

I am new to Ubuntu. And as while editing anything in visual studio code, I had to enter password. so for that I tried to change in sudoers file but after that I am unable to find what happened and also getting error like below. I used the command to…
Dcoder14
  • 1,831
  • 3
  • 12
  • 22
7
votes
4 answers

I used to use nano to edit text but I switched to vim, which is more powerful. Will I get the same power up if I move to emacs?

For about 3+ years, all I thought I needed (and technically that was the case) was nano. I did not understand all the hoopla about vim until I tried it. Although the learning curve is ever-so-slightly higher, it has greatly simplified coding for me…
Chris D.
  • 675
  • 7
  • 14
7
votes
0 answers

How to display UTF-8 emoji characters in nano editor?

How do I display emojis (UTF-8) when I open a file using the nano editor? I can only see blank spaces where they should be appearing. When I read in ubuntu thread a proposed solution saying you should check the character encoding of your terminal…
BringBackCommodore64
  • 4,910
  • 3
  • 27
  • 30
7
votes
4 answers

Launch nano editor passing piped command

this is a curiosity. Can i start nano editor from bash, passing a piped command? this is my situation: I've a log file with dates formatted in tai64. For print my file i launch: $> cat /var/log/qmail/current | tai64nlocal that print what i…
davymartu
  • 1,393
  • 3
  • 15
  • 34
7
votes
3 answers

Nano 2.0.6 - Saving a file in Mac Format

Any ideas how to save a file edited with Nano, in "Mac format"? I keep getting DOS carriage returns in my newly-saved files on my Linux box. I provided a screen shot of the bottom menu when I go to "write out" file: M-M Mac Format??? I see that…
Slinky
  • 5,662
  • 14
  • 76
  • 130
6
votes
2 answers

Jump to end of line in nano command

I have an alias, that opens a file for me and jumps to a specific line in that file. The first thing I do is ctrl+E to jump to the end of the line, but I was wondering if I can automate that as well? This is the current alias: alias changeCust='ssh…
Rvervuurt
  • 8,589
  • 8
  • 39
  • 62
6
votes
2 answers

What is a quick way to edit a remote file on Linux?

I have a remote file that I edit regularly. I would like to edit it with a quick, simple command that would work likely via SSH. At present, my workflow is to connect to the remote computer via SSH, open the file using an editor (say vim or nano),…
d3pd
  • 7,935
  • 24
  • 76
  • 127
6
votes
2 answers

Untab in nano: move a block of code to the left

How can I "Untab", move a block of code to the left in nano? In most gui editors shift+tab works but can't find anything for nano.
Orlo
  • 828
  • 2
  • 11
  • 28
5
votes
3 answers

nano: update a file after selecting it using the file browser

I have no problems when open+change+save a file if I write nano filename on the terminal. But if I open nano and open the File Browser and open a file and try to save it, there is no default file name!:
tirenweb
  • 30,963
  • 73
  • 183
  • 303
5
votes
1 answer

bash ps print info about process with name

I need to print UID PID PPID PRI NI VSZ RSS STAT TTY TIME columns using ps of processes with typed name. GNU nano 2.0.6 File: file2 …
Andrii Tytarenko
  • 121
  • 1
  • 10
5
votes
2 answers

Nano syntax color highlighting in windows

How do I get this to work, I did add the color syntax highlighting configuration in nano.rc and .nanorc, but nothing happen.
syarul
  • 2,161
  • 2
  • 20
  • 22
1 2
3
19 20