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

learn more… | top users | synonyms

2
votes
1answer
15 views

How to insert timestamp in nano editor?

I need a time-stamp that is inserted with a hot key, like F5 in old notepad. Format should be: hh:mm dd.mm.yyyy. p.s. Dot in the end of the year is grammatically correct in Serbian language, so it ...
2
votes
2answers
58 views

Prevent nano from keeping history of searches

I recently noticed that when searching for a String in a file using nano, that the search gets saved to this file: ~/.nano_history But this is not necessary, and I don't want this feature, so is ...
0
votes
0answers
15 views

Lost content of a file that i tried to edit when disk was full

I lost content of a file that i tried to edit using nano editor because the / partition was 100% full. Is there any way to recover the content of the file? OS: Ubuntu 14.04
0
votes
1answer
21 views

Does a user creating text file need to be in a specific place?

I've got several scripts which wont work for me but work for others. Their purpose is to add users to the system, and then assign them to groups. I wrote it as a nano bash file; does it need to be ...
3
votes
1answer
191 views

.nano_history permissions error

I use rkhunter and I was wanting to check its logs with: nano /var/log/rkhunter.log But nano outputted this error: Error reading /home/arthur-dent/.nano_history: Permission denied Press Enter to ...
0
votes
0answers
68 views

How to press ENTER in Nano on Ubuntu-touch via abd?

When I'm connected to Ubuntu Touch (bq Aquaris E4.5 Ubuntu-Edition phone) via adb shell and I'm editing a shell script with Nano. How can I press ENTER to save changes? Nano does not accept the ...
0
votes
1answer
48 views

How can I delete files or folders created by Nano editor?

I've searched a method to change the brightness of my laptop display. I saw one article on this forum and followed the instruction like below (under the line) written by Serge (user name). I ran ...
0
votes
0answers
34 views

I found that using the Ctrl function in NANO text editor stopped working in mobaxterm with a crappy internet connection

This is just for anyone else who had this problem, I found if I created a second terminal connection my first connection would reconnect aswell.. allowing me to close the NANO file, and not leave it ...
1
vote
2answers
482 views

Can't open nano and can't install it on Ubuntu Server 14

I'm having a lot of trouble getting up and running Ubuntu Server. I just installed it on VMware and it appears it doesn't have nano. When I run sudo nano /etc/hosts it says "-bash nano: command not ...
11
votes
2answers
821 views

What are '.save' files?

I have been writing several bash scripts, and I have found that while writing them that extra copies of the files have been created which seem to be identical in contents to the normal files, except ...
0
votes
1answer
92 views

Cannot edit php5.fcgi owned by Me with RWX owner permissions

Ok, I kind of thought I understood Linux permissions and then I encountered this one. I am running Ubuntu 14.04 LTS in a virtualbox on my Windows 7 pro laptop. All udpates are applied to windows, ...
1
vote
0answers
244 views

In a dockerized ubuntu instance how do I get nano to display/work right?

When I apt-get install nano in a docker instance of ubuntu:trusty nano's display is seriously messed up, what do I need to do to fix this? I've tried vi/vim as well, and arrow keys are broken. In ...
2
votes
2answers
292 views

How to move the blinking cursor with the mouse in nano editor?

I am writing a text file through the terminal using nano; everytime I need to select a position of a certain line of my text I can't help but scrolling all the lines moving the blinking cursor using ...
0
votes
1answer
105 views

How to change the color of comments using nano or pico

Ubuntu 12.04.5 LTS 64bits using bash I would like to change the color of the comments (Dark blue) for nano and pico I can change the color of pretty much every files and folders in /home/.dircolors ...
5
votes
2answers
6k views

How to change visudo editor from nano to vim? [duplicate]

When I use visudo, it always opens it with nano editor. How to change the editor to vim?
9
votes
1answer
1k views

Change the default editor when sudo visudo

When doing sudo visudo, the default editor is nano. I want to change it to vi or vim. I already made vim be the default application to replace gedit upon opening php, plain text, c and h files, by ...
1
vote
2answers
398 views

Why ubuntu has vi , emacs ,nano with os default?

I am new to ubuntu ..So basically an OS has an app for a purpose.. But ubuntu has three basic text-editors..like nano, vi, emacs ... So what is the reason for that? and what are the advantages and ...
-1
votes
1answer
2k views

Nano edit, permission denied

I am trying to edit a index.php by using sudo nano index.php. Nano opens me into index.php, then i add the code into the file, save and try to exit but it says permission denied. I am using ssh ...
3
votes
1answer
198 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 ...
4
votes
1answer
8k 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
1answer
4k 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
951 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
3answers
2k 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 ...
21
votes
3answers
56k 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
337 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 ...
3
votes
3answers
4k 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
225 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
211 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
293 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
5k 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 ...
1
vote
2answers
2k 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
143 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: ...
2
votes
1answer
214 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
588 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
288 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
155 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
1answer
114 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
62 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
5k 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 ...
18
votes
1answer
25k 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
2k 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
5k 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
23 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 ...
3
votes
1answer
537 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
123 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
1k 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
1k 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
706 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
2k 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 ...
29
votes
1answer
54k 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 ...