Questions tagged [nano]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

20:04: Copy command (M-6) ignored by Nano

Every command works in Nano, except for M-6 (copy current marked text and store in cutbuffer). I've tested the alternative (M-^) as well but with no success. Is it like this for everyone?
5
votes
2answers
89 views

How do I set the global nano background to black

I am using GNU nano version 4.8 on Ubuntu 20.04 LTS. I have X11 set up to use white as the background colour of the xterm window. I don't want to change this setting. It looks like nano inherits this,...
-1
votes
3answers
63 views

Ubuntu 18.04 change default editor

I am using Ubuntu 18.04. The default text editor now appears to be nano. I want to set it to always be vi. Other posts suggest the following command, however this command does not list the vi I want ...
0
votes
1answer
19 views

Wallpaper background for gnu nano

So I have seen multiple text editors using some fancy background photos in the internet. Is that possible with nano in ubuntu and if so how ? Thanks!
0
votes
2answers
80 views

nano command has a problem

The command nano /etc/bind/named.conf.local produces the error message: The 'nano' application is not installed. You can install it by typing: apt-get install nano If I type apt-get install nano ...
0
votes
4answers
807 views

How can one copy text from nano in Ubuntu WSL2 and paste it into a Windows application?

Microsoft has made this nifty tool called Windows Subsystem for Linux. WSL2 creates a lightweight VM running Linux (in this case Ubuntu) to facilitate using Linux on Windows. Within WSL2 (Ubuntu) I'...
0
votes
1answer
108 views

Closed terminal window but failed to exit nano. Possible to resume editing?

Attempting to edit a file and am told is being edited by PID 24324. I am guessing that I closed an SSH window and failed to exit nano. I don't remember what I was doing and it would be nice to resume ...
1
vote
1answer
530 views

When I modify /etc/security/limits.conf I get “E45: 'readonly' option is set (add ! to override)” [duplicate]

I'm trying to increase the open files limit for Ubuntu 16.04 version by using vi /etc/security/limits.conf Then I add two lines like: #* soft nofile 4096 #* hard nofile 4096 But when I use :x to ...
0
votes
0answers
65 views

nano 2.9.3 hides repeated characters

After my web provider upgraded to Ubuntu 18.04, I noticed that the nano editor (2.9.3) behaves strange when showing repeated characters in a word. For example, this text ... -----abc5 ------abc6 ----...
1
vote
1answer
112 views

Dockerfile ubuntu and docker builds and commands

I'm curious on how to write to a file with docker commands etc.. Let's say i want to build a file like so: RUN touch newfile.php Now how do i write to that file after it's built in the dockerfile ...
1
vote
1answer
305 views

Problems with the nano editor

When I'm editing in nano, after a while I get the command console inside the editor. I attach an image with the nano problem
1
vote
0answers
520 views

Archer T2U AC600 nano, how can I install it in Ubuntu 18.04?

I migrated from Windows 7 to Ubuntu and the computer does not recognize my wireless adapter. And I want to know how to install it, unfortunately it does not have drivers for Linux Ubuntu
1
vote
1answer
732 views

How to show all lines in nano linux

I have a VPS with Ubuntu running on it. I have a text file I opened with nano. However there are too many lines there and only the first 20 or so lines get displayed. After those 20 lines is this: ...
0
votes
1answer
628 views

How to insert line break + taboolation in a Nano text editor?

Replace <br> with a line break in Nano. Tried to Atom - dies. I Inserted \n, \r, \n\r but, inserted simply as characters. How do I insert a line break + taboolation? File is .Html. Example: ...
0
votes
1answer
986 views

CTL V or H fails in NANO

Used to be I could copy outside of nano and within NANO paste. That is failing now on my install. I have a current linux on a Lenovo laptop.
0
votes
0answers
1k views

How to edit Network Manager in Ubuntu 18.04?

I discovered a bug in Ubuntu 18.04 in my system which didn't let me connect to PEAP networks. On searching I found the solution was to edit the configuration file of that wireless network. But ...
1
vote
0answers
5k views

GNU nano “Error reading lock file ./.NetPay.cpp.swp: Not enough data read” [duplicate]

I am currently programming on my mac on the Linux server and I ran into an issue. I don't know what I did to get this, and I just want my program back. Error reading lock file ./.NetPay.cpp.swp: Not ...
0
votes
2answers
166 views

nano editor now B/W

After editing / copying the original bash script which was in colors I now have plain black / white nano editor text in the file. It's no biggie, just like to find out how it possibly happen and if I ...
4
votes
2answers
6k views

Saving file in nano to specific folder

I'm trying to save a file in the nano text editor. I wrote a short test text and entered ctrl+O to save and name the file but I'm not sure how I can save file to a specific folder? and how I can later ...
1
vote
3answers
814 views

Nano editor shortcuts mind bending

Intro: As for beginner, i was choosing between text editors, and stopped on nano (cause work with it will make my terminal skills better. I hope.) Problem: As the first thing I'm facing up with ...
1
vote
0answers
55 views

Can I customize the bottom help lines in Nano Editor?

Can I choose which shortcuts appear in the bottom two lines from the nano editor? so instead of the default ones, I may Go to line and column number and Mark text at the cursor position instead of ...
0
votes
0answers
105 views

Root cannot save any file

I tried editing any file with nano (sudo nano) and it just wont save. I tried with nginx configs, normal files, and crontab and they all wont save. I've also read this (Cannot save any kind of file in ...
0
votes
1answer
457 views

Nano in a while loop

I currently having a problem in which I am trying to read read/monitor the content of a list of files which is stored in text file. Problem with my current approach is that leads to all the files ...
3
votes
0answers
4k views

How to enable undo in nano?

How can I enable Undo in nano? I am using a ssh connection with a server. I can not update the version of nano that is installed on the server. Is there anyway to use GNU nano 2.3.1 to have Undo ...
1
vote
1answer
2k views

Cannot source .nanorc correctly: command “include” not found

I'm trying to customize nano to my needs, I copied nanorc from the /etc directory in my home directory and haven't edited anything so far. My goal is to enable syntax highlighting for config files ...
5
votes
2answers
15k views

No such file or directory when trying to create a file with nano

I am trying to create a new file: nano/etc/apt/apt.conf.d/02proxy When upgrading from 14.04 to 16.04, but I'm getting the error: No such file or directory
1
vote
1answer
1k views

Edit environment using nano [duplicate]

I am new to lubuntu. I have installed java8 in my laptop. i need to set up environment variable (sudo nano /etc/environmet) i have entered the JAVA_HOME =" path" but i dont know how to properly save ...
-1
votes
2answers
2k views

best command command to help add a line /etc/network/interfaces config file [duplicate]

I am new to Ubuntu and I have been researching and doing practice but I couldn't figure out exactly the correct command to help me solve my problem. I would be very grateful if someone could help me ...
1
vote
1answer
112 views

Cannot save file with either nano or sublime text

I am following these instructions verbatim http://www.dell.com/support/article/us/en/04/sln308123/how-to-configure-the-keyboard-backlight-time-out-interval-in-ubuntu-linux?lang=en I open the file ...
1
vote
0answers
221 views

Right CTRL not working in Lubuntu LXTerminal (but Left Ctrl does)

New Linux User. Tried nano in Lubuntu 17.10 LXTerminal. Right Ctrl commands do not work. Left Ctrl commands do. I am running in Oracle VirtualBox. Why? Ctrl is surely Ctrl whether coming from the ...
0
votes
0answers
155 views

Some 2-byte Unicode characters appear as 2 characters in nano

I'm creating a web site in Russian. When I open HTML pages in nano on the remote server, some (but not all) of the Cyrillic characters appear as 2 characters: For example, the phrase "Welcome" ...
0
votes
1answer
58 views

How can I get forward this terminal interface? [duplicate]

I'm working on a project based on installing a server FTP on Amazon Web Services. I'm doing it through Ubuntu 16.04. No such a matter, everything is doing good so far. But I got stuck in a step that ...
1
vote
0answers
58 views

I'm having a weird issue every time I try to use ' sudo apt-get install'. I can only describe it with a picture

When I try to run sudo apt-get install my terminal starts to install whatever I'm trying to install, then it goes into a weird state If I exit the terminal and try to sudo apt-get install again, I ...
5
votes
3answers
7k views

Where is the nano file located? [duplicate]

I'm using FileZilla and have found the default LibreOffice Writer not the best for on-the-go code editing. I have the option to use custom program for text editing, so why not give nano a go. So I'm ...
0
votes
0answers
600 views

nano not showing any text file content when I open a text file in terminal

I'm trying to edit a text file in terminal using the nano command however when I do it and specify the correct location it shows nothing. If I go and open the actual text file then all the content is ...
3
votes
1answer
1k views

date command not resolving properly in bash alias

I'm trying to set up a way for me to just type newjournal, and a new journal entry named year-month-date-time.txt is created in a year subdirectory in ~/documents/journals. I've got it set up as an ...
2
votes
2answers
891 views

Ubuntu Core timedatectl setting incorrect time, config missing servers, cannot be modified and reverts to UCT after a few minutes

Ubuntu core instance starts up with date: Sun Aug 21 01:31:59 2016 (and after trying to correct settings with NTP disabled and reboot, date is: Wed Nov 2 16:59:29 (LocalTime) 2016), whereas the ...
4
votes
1answer
212 views

Why can't I see the character _ while using Nano on Yakuake?

I use Gnu Nano on Yakuake to write a LaTeX-document. Then yesterday I found that I can't see the character _ on the Nano. I know that the characters are there as LaTeX renders the tex-file correctly. ...
2
votes
0answers
627 views

IPod nano 6G with ubuntu 16.04

I'm currently trying to get my iPod nano 6th Generation to run with Ubuntu 16.04. I am aware of the binary blob that is needed , but as far as I understand the script should replace some files or ...
0
votes
1answer
634 views

How to access nanopi neo usb port

I have connected an Arduino to the USB port of the nanopi neo.the Arduino constantly sends serial data. On the nano pi neo, I have tried to use screen screen /dev/ttyUSB0 9600 but it doesn't work. ...
26
votes
4answers
54k views

Getting error while opening /etc/profile: Error reading lock file /etc/.profile.swp: Not enough data read

I am getting this error while opening /etc/profile file using nano. Error reading lock file /etc/.profile.swp: Not enough data read How can I fix this?
0
votes
0answers
34 views

Why does nano show symbols when viewing a picture with it? [duplicate]

When I run nano image.jpg or any image with any text editor or cat, where are all the symbols from? Is it nano trying to display non-ASCII binary or what?
6
votes
1answer
540 views

Extend nano menu

Some hotkeys for nano are listed in the bottom depends on window scaling. How can I switch through this menu to see all the available hotkeys?
3
votes
1answer
3k views

Getting nano nanorc settings to work with “sudo nano” command

Anyone know how to get nanorc settings (syntax highlighting, mouse) to work when using the "sudo nano" instance of the editor? It works as expected when not using nano as a super-user but not with ...
15
votes
1answer
6k views

How to exit nano and save to current file automatically?

Whenever I close nano after having edited an existing file, it first asks if I'd like to save the file (which is fine), and then asks me to confirm the filename (so I press Enter, since literally 100% ...
6
votes
2answers
8k views

Setting permanent export EDITOR to nano for all future sessions [duplicate]

Every time I SSH into my AWS, I am changing editor to nano. Is there a command to run that will change it to nano for all future instances a well?
1
vote
1answer
3k views

How to delete carriage returns from Nano?

I copied something from Windows to Nano in WSL and it included carriage returns (CR characters). Even though I removed all carriage returns with the text editor (Notepad++) these are still added after ...
1
vote
1answer
44 views

After new Ubuntu server installations sometimes Nano is highlighting text and sometimes it doesn't

After new Ubuntu server installations sometimes Nano is highlighting text and sometimes it doesn't. I pay for a hosting provider that let me install new VPSs in a few clicks. I usually Install Ubuntu ...
1
vote
1answer
709 views

nano editor UnJustify

I'm using nano editor to edit my server's config files. Now I've discovered that pasting in a few lines removes all line breaks of the pasted lines as well as the following lines! It then says I can ...
4
votes
2answers
18k views

nano M-A hotkey

When using nano in the terminal, to do the "write file append" command, it lists the keystroke "M-A". I am completely confused what this key command actually means. I read somewhere that it means Alt-...