nano is a simple command line text editor which comes preinstalled in Ubuntu by default.

learn more… | top users | synonyms

2
votes
1answer
47 views

Nano - insert content, save and exit

I'm currently working on making a text file of the whole process of setting up my server for my normal usage. And would like to know if there is any way to write a shell script so that I can make the ...
2
votes
1answer
273 views

How to delete selected text in nano editor? [duplicate]

How do I delete selected text in the nano editor? I came across this issue while needing to delete the virtual host file and replace its content completely by other content. But the problem is that I ...
1
vote
2answers
57 views

I am trying to save a file using the nano file editor in Ubuntu [Error writing /filename: Permission denied] [duplicate]

Using the Nano text editor, I'm trying to save and exit a file. I already have the file named. I click control+x to exit. I click y because I want to save the file, now it say file to write, Ok I'm ...
0
votes
1answer
37 views

Nano via the terminal, how to write special characters?

As the title says; Nano via the terminal, how to write special characters? I am having trouble trying to debug a UTF8 problem and would like to create a special character in a file via the terminal. ...
0
votes
0answers
20 views

MacBook: Nano keyboard shortcuts changed

I recently installed Ubuntu 14.04 LTS on a MacBook Pro. In the terminal, I typed: sudo apt-get install nano nano When the text editor opens in the terminal, the keyboard shortcuts, e.g. ^X, do not ...
0
votes
3answers
120 views

Unable to view or edit etc/apt/sources.list

I am trying to follow these instructions to permit new updates of an opensource GIS software program to take place on my Ubuntu: http://qgis.org/en/site/forusers/alldownloads.html#ubuntu I used nano ...
7
votes
3answers
579 views

How to save a file using nano

I am trying to install Java via the terminal using the guide How to Install Oracle Java JRE on Ubuntu Linux. Everything went perfectly fine until "Step 11: Save the /etc/profile file and exit": I ...
4
votes
2answers
89 views

How can I enable syntax highlighting in a Python file without an extension?

Turning on syntax highlighting in Nano is simple enough but I've just run into a non-standard issue. I have an executable Python script that doesn't have an extension. It's part of a virtualenv ...
2
votes
3answers
410 views

How do I get back to nano after hitting Ctrl-Z if I have no shell prompt

I'm using nano inside a MATLAB session that is running inside a screen (-x) terminal. I accidentally hit Ctrl-Z and it immediately leaves nano, prints "Use "fg" to return to nano", but does not show ...
1
vote
2answers
105 views

Ubuntu 14 Upstart, Script Never Runs — No Log File

I apologize ahead of time if this has been answered, but Ive looked through all the other questions and havent found anything that helps. Here is my upstart script: nodeapps.conf start on [2345] ...
0
votes
2answers
43 views

How to find a keyword in “nano” editor in Ubuntu?

I am trying to find some keywords in a configuration file which is opened by nano editor, So can anyone help me to find keywords in this editor? Thank You.
2
votes
1answer
52 views

Getting root permissions on a file inside of nano?

I have completely the same problem as the guy in this question. So basically I am using nano somefile.txt editing it and then permissions denied because I forgot to use sudo. The only difference from ...
0
votes
2answers
145 views

Create , Write and Save file from a Shell script

I don't want to write the file manually, so I made a shell-script. Is there a way to write & save the file automatically without getting the user to press keys? sudo nano blah #write stuff to ...
0
votes
1answer
391 views

How to set nano default syntax highlighting for files with no extension?

I'm trying to set a 'default' syntax highlighting scheme for nano when I'm editing files with no extension such as /etc/nginx/sites-available/default or /etc/ssh/sshd_config but I can't seem to make ...
0
votes
2answers
76 views

Editing with Nano

Is it possible to edit an existing text file using only one line of command and Nano. For instance if I have a text file called "new.txt" and I want to write "HELLO WORLD" in it. Can I do like this: ...
0
votes
1answer
73 views

How can I highlight C syntax in CUDA (.cu) files in nano?

I've already highlighted C syntax for .c files in nano by adding include "usr/share/nano/c.nanorc" to ~/.nanorc. Unfortunately, this only works for .c files, not for .cu (CUDA) files. How can I ...
0
votes
1answer
68 views

Nano unresponsive when using git commit - Ubuntu 12.04

Can anyone provide some assistance with Nano? When I do a git commit -a -m "blah some text" it brings up the Nano editor, but the editor is completely unresponsive to my keyboard commands including ...
0
votes
3answers
133 views

making nano always run as sudo by default

my problem is that i keep forgetting to write sudo before every time i use nano, and eventually what happens is i work on a file for a while and don't have permissions. i remember hearing somewhere ...
2
votes
2answers
96 views

Delete total line in nano?

some times while I am editing my files with nano I am facing difficulty while deleting some big line, I need to hold Del key for long time. is there any shortcut I can found to delete the total line ...
0
votes
0answers
25 views

Nano Cursor Appearance

I'm using nano on a Raspberry Pi. The cursor was a green box before and I've somehow changed it to a blinking line. How do I change it back to a green box?
0
votes
1answer
80 views

Problem with Qjackctl

I am struggling with Qjackctl. One of the things that was suggested on a youtube video was to create a nano file and put in this code: @audio - rtprio -99 ...
1
vote
1answer
45 views

How to jump into the needed lines in a document using nano?

I want to jump through lines faster in ubuntu 12.04 server. For example my errorlog shows me an error in line 514, how can I jump to the line directly using nano or pico ? If it's not possible, how to ...
0
votes
2answers
3k views

What music player works with ipod nano 7th generation?

Does anyone know of a music player that supports the ipod nano 7g? I know amarok doesn't, and I haven't had any success playing around with rhythm box or banshee. Any suggestions for how to get these ...
8
votes
1answer
9k views

Undo functionality in nano

I use the commmand line text editor nano. How do I undo an action while editing text? For example: I typed some text and then changed my mind. Now I want to return to previous state. How?
1
vote
2answers
1k views

edit text file with sudo via ssh and script

I want to modify /etc/hosts (and later also hostname) via a script and ssh. So I'm logged in via ssh and this works: sudo nano /etc/hosts It shows the remote hosts file in nano. However I was ...
4
votes
3answers
2k views

How do I remove hidden backup files?

I have files ending in ~ in my home directory, and I want to delete them. How do I do that? How do I prevent this backup functionality?
3
votes
0answers
22 views

nano syntax highlighting not working for all languages [duplicate]

I have a funny situation where I am unable to add custom highlighting definitions to my nano text editor. The funny thing is that the predefined work like a charm and can be edited. But I have ...
2
votes
1answer
302 views

How can I configure nano to save every 10 seconds?

I need to have my nano editor autosave every 10 seconds or some specific time period. How can I achieve this ?
1
vote
1answer
102 views

txt file and linebreaks

I used antiword >filename.txt To convert a .doc word document to a txt file. Then I edited the file in nano (also tried vim) and when the document is viewed in libre office and gvim or even text ...
2
votes
1answer
857 views

Nano Syntax Highlighting Colors

Where can I find a complete list of supported colors used in syntax highlighting for the GNU Nano text editor? I've looked through the man pages, and it gave the syntax for defining syntax coloring, ...
2
votes
1answer
585 views

How can I change the keyboard shortcuts in nano?

To indent a whole block of code in nano, after selecting it with alt+a, I have to press alt+{, which doesn't work on my german layout macintosh keyboard (and would be pretty annoying even if it did). ...
0
votes
2answers
508 views

Accents - Nano editor

i am using NANO as my everyday text editor. I'm using an old laptop, so NANO it's fast, lightweight, and saves me battery. The only problem is the fact i can't use Special Characters and accents. For ...
2
votes
2answers
1k views

How do I paste text using the Mindterm Java SSH client on an Amazon EC2 Ubuntu server?

I am using windows and is connecting to an ubuntu server I want to add this line to a text file /dev/xvdf       /mnt1   auto    defaults,nobootwait     0       0 obviously I prefer to copy and ...
14
votes
1answer
24k views

How do I delete multiple lines in nano without affecting the clipboard?

I can select all file by going to the 1st line Alt+\, start marking the text by Alt+A, go to the last line by Alt+/ But there, I don't know which key to remove the selected text. Hit delete doesn't ...
1
vote
1answer
71 views

installing eclipse, stuck

Noob here, setting up my first linux box. I'm following this page to install eclipse I get to the part where it says to save the nano file - but it's asking me for a file name and I don't know what ...
1
vote
1answer
304 views

Editing with nano, Alt is caught by the window menus, how can I fix that?

The Alt key is used for many useful commands, but unfortunately it's caught by the terminal window to activate the window menus (File, Edit, ...). I would like to either force the terminal window to ...
35
votes
4answers
35k views

How do I enable syntax highlighting in nano?

Can nano do syntax highlighting like gedit and vim? How can I enable it? I need at least bash and python syntax highlights.
40
votes
2answers
38k views

How to show line numbering in nano when opening a file

Is there a way to tell nano to automatically show line numbering each time I open a file.
3
votes
1answer
465 views

Update Geany to use Nano shortcuts

I use Geany a lot for editing, but ultimately use nano far more often. While navigating nano I use Ctrl+K and Ctrl+U key combo all the time (Cut/Paste). Yes, I understand there is Ctrl+C and Ctrl+V ...
23
votes
4answers
86k views

How to edit files in a terminal with nano?

Sometimes, a graphical text editor like gedit or kate cannot be used (because you're in a virtual console for example). Luckily, there are text editors for the terminal. An easy one is nano, but I ...
10
votes
2answers
891 views

Bind Ctrl+Right to nextword in nano (as it is in all other apps)

And likewise Ctrl+Left to prevword. I read the man page of nanorc and found bind key function menu So the line bind ^Left prevword main would be what I want, the problem is that nano only ...
1
vote
2answers
507 views

Getting error with spell check in nano

I am getting the following error while doing spell check in nano editor. Please help to resolve this. Spell checking failed: Error invoking "spell": Bad file descriptot
24
votes
2answers
36k views

Any way to search for text within nano?

Nano is the editor I use in command prompts. When I open a large file I would like to search for some text (think Ctrl + F). Is there a way to do this?
9
votes
1answer
4k views

How do I get spaces instead of tabs in nano?

I usually edit Python files with nano, so I need four spaces instead of a tab. How can I get nano to automatically insert spaces for tabs, and control how many of them it inserts?
0
votes
1answer
3k views

How do I copy music from ipod nano to computer (Banshee)

I have a fresh install of Ubuntu 11.04. My Nano syncs fine with Banshee. How do I copy the music already on the Nano onto my computer? There doesn't seem to be an option to do this within Banshee. ...
11
votes
4answers
22k views

How to switch the editor in mc (midnight commander) from nano to mcedit?

Using ubuntu 10.10 the editor in mc (midnight commander) is nano. How can i switch to the internal mc editor (mcedit)?
8
votes
3answers
8k views

Save an edited file in nano, but no permissions

I edited a file in /etc/ that I want to save, but forgot to open it using sudo. I remember there was a command to save such a file in vi, and want to know if there is any such way to do it in nano? ...
1
vote
2answers
1k views

Nano syntax highlighting for C# and/or ASP.Net

Has anyone got (or can point in the direction of) a nanorc file that contains syntax highlighting for C# and/or ASP.Net?