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

learn more… | top users | synonyms

0
votes
1answer
27 views

CTRL button in nano not registering (ubuntu server 16.04 in virtualbox)

I am running Ubuntu server 16.04 LTS guest OS in Virtualbox 5.0.8 under Ubuntu MATE 15.10 LTS host OS. I am setting up a little development LAMP server and I am editing apache configuration files. I ...
1
vote
1answer
56 views

Ubuntu terminal cant type special characters like backslash (\), slash(/), semicolon (:), etc properly

I'm running Ubuntu 14.04 without GUI and i'm having problems entering characters like backslash, slash, semicolon and so forth. The keys which would normally enter these characters print out all kinds ...
0
votes
2answers
30 views

In the sentence “ls -Ral /bin > TalhaA452.txt” [duplicate]

what does -Ral do? I dont know what this word means in the sentence "ls -Ral /bin > TalhaA452.txt"
1
vote
1answer
34 views

Edit crontab with an editor other than the default

I would like to edit crontab with vi once. My default editor is nano, and I want to keep it that way. I only want to edit with vi one time. I don't want to change the default to vi then back to ...
0
votes
2answers
36 views

Qemu Snappy 15.04: How to tune sysctl.conf?

I was able to start & login into Snappy Ubuntu 15.04. However, doing: sudo vi /etc/sysctl.conf is NOT permitted. How am I suppose to tune my own kernel and make changes to /etc for ...
1
vote
1answer
86 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
221 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
803 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
12 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
1answer
25 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
111 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
26 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
48 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
75 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
25 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
66 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
126 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
107 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
18 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
25 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 ...
13
votes
2answers
3k 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
1answer
117 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
147 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 ...
1
vote
2answers
2k 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 ...
12
votes
2answers
2k 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
183 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
419 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
657 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
209 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 ...
19
votes
2answers
16k 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
3k 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
562 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
292 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 ...
7
votes
1answer
18k 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
11k 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
4k 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 ...
29
votes
3answers
112k 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
477 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
7k 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
287 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] ...
2
votes
2answers
2k 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
1k 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 ...
1
vote
2answers
21k 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
4k 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
188 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
328 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
2k 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
394 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 ...