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

learn more… | top users | synonyms

0
votes
1answer
21 views

(gksudo:2375): Gtk-Warning **:cannot open display:

When i insert this: gksudo nano /etc/default/grub it replies with this: (gksudo:(4 digit number, always different)): Gtk-Warning **:cannot onpen display: But if i type sudo nano /etc/default/grub ...
4
votes
1answer
38 views

“file /var/log/syslog is being edited” message in nano

To the best of my knowledge, I can view /var/log/syslog with the command sudo nano /var/log/syslog and successfully did so several times during a session; however, I was trying to search the log ...
3
votes
5answers
448 views

Difference between Nano and Vim [closed]

I have recently started using Ubuntu and hence, the terminal. As text editor, I have used the pre-installed nano. Now I wonder whether I should install and use vim as well. What are each of those ...
0
votes
0answers
11 views

Why nano file work's and echo “” >> file not? [duplicate]

I'm doing a shell script where I need to write a file. I'm using echo, as below: sudo echo "text text text" >> file I can not use because I'm not allowed. permission denied But using ...
0
votes
0answers
14 views

Nano not highlighting syntax anymore

So I along with a few others are planning to start a company, and we are using an ubuntu server to host our website. Originally we put it on an old laptop and installed Ubuntu server 15.10. Now it is ...
-2
votes
2answers
99 views

Why does my terminal look like this?

When I maximize the terminal, the display becomes like this and text won't expand to entire screen. All the content/text is only visible on top left side of the window while it's maximized. All the ...
0
votes
0answers
18 views

Context specific options in nano?

Is there any way to have context specific settings in nano? In brief, I'm looking to get nano to default to set tabstospaces if the opened file is a python file (with extension .py), but default to ...
1
vote
0answers
30 views

How to add global syntax highlight in nano

I use nano as my text editor for development, so I would want trailing spaces to be highlighted. Right now I am just adding the line: color ,green "[[:space:]]+$" to all the files included on my ...
0
votes
0answers
62 views

iPod nano 6th gen Syncing fails no matter which program I use

Before my question is marked as a duplicate I have heard that is a binary blob workaround is possible. How do I do this? Because without it I get unsupported checksum type no matter what music player ...
1
vote
1answer
20 views

Exit without saving from “nano -t”

Usually I use nano editor but with -t parameter. From man nano: -t (--tempfile) Always save changed buffer without prompting. Same as Pico’s -t option. It just doesn't ask me about ...
0
votes
1answer
43 views

Nano disable help mode by default

Is there a way to disable the help mode in Nano by default? I know I can disable it by pressing the Meta + X key, but I'd like it to be disabled when I start Nano. Thanks in advance!
4
votes
1answer
93 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
94 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
17 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
24 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 ...
6
votes
1answer
2k 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
100 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
106 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
59 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
1k 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
1k 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
155 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
358 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 ...
3
votes
2answers
505 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
175 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 ...
13
votes
2answers
12k 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
2k 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
524 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
3k 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
254 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 ...
6
votes
1answer
14k 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
8k 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
2k 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
3k 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 ...
26
votes
3answers
91k 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
433 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
6k 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
266 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] ...
1
vote
2answers
949 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
879 views

Getting root permissions on a file inside of nano? [duplicate]

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
14k 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
3k 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
168 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
290 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
1k 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
352 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
188 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
134 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
66 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
6k 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 ...