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
0 answers
18 views

The default colors in nano: Ubuntu 16.04 vs. Ubuntu 20.04

After upgrading from Ubuntu 16.04 to Ubuntu 20.04 I see that the default colors in nano changed. Can someone please share the default colors (or even config files) in nano from Ubuntu 16.04? I ...
user avatar
  • 103
3 votes
1 answer
161 views

Find and delete with nano

I want to find specific characters/strings with nano and delete all occurrences. How can this be done with nano and can this even be done?
user avatar
1 vote
0 answers
53 views

nano: no version information available

The more I try to fix this problem the worse it gets. I have conda installed, and I think its related to this problem. Every time I try to open nano, I get this error message - before today it was ...
user avatar
4 votes
2 answers
120 views

WSL Nano scrolling up to see terminal

I run some commands on remote server (am connected with it via ssh using WSL ubuntu 20) and after running then I open nano editor, usually I was able to scroll up with my mouse witch allowed me to see ...
user avatar
0 votes
1 answer
48 views

Can't edit file even on sudo [closed]

I want to edit a file in the /snap folder with nano but it is not possible. [ File '/snap/pycharm-professional/current/bin/pycharm64.vmoptions' is unwritable ] I even tried this solution, but it is ...
user avatar
0 votes
1 answer
75 views

GNU nano 4.8 infinite loop save file

I can tell I'm not the first with this issue... me@PF2DCSXD:/$ cat /etc/resolv.conf cat: /etc/resolv.conf: No such file or directory me@PF2DCSXD:/$ sudo nano /etc/resolv.conf I then get stuck in ...
user avatar
3 votes
1 answer
99 views

How does nano determine syntax coloring for a .txt file?

I've recently discovered, that when I open a new text file (extension .txt) in nano, there is actually a limited syntax coloring: That is, if a line starts with number sign/hash, it is colored. I ...
user avatar
  • 1,228
2 votes
1 answer
926 views

Black window with "less", "nano", or "screen" - WSL - Ubuntu 20.04.3 LTS

I'm using Windows Subsystem Linux with Ubuntu 20.04.3 LTS on my laptop (OS: Windows 10 Enterprise LTSC). It worked flawlessly until a few days ago when I suddenly could not use less, nano, screen etc. ...
user avatar
  • 123
0 votes
0 answers
15 views

Using Alias in Ubuntu Scripts [duplicate]

I created a simple Shell file with the following code that opens google chrome on running it. #!/bin/bash google-chrome Now I was trying to create an alias for it. I ran :- touch .bash_aliases After ...
user avatar
1 vote
1 answer
126 views

For Nano, is it possible to include 'Backspace' in a custom keyboard shortcut binding in the .nanorc config file?

I am looking to create a keyboard shortcut for the Nano text editor to remove the word to the left of the cursor using the key combination Ctrl + Backspace. Is the key backspace able to be included in ...
user avatar
0 votes
1 answer
59 views

how to copy the output of a command to nano editor

I am following a guide to setup wordpress, one of the steps instructs to copy the values of https://api.wordpress.org/secret-key/1.1/salt/ to a section in wp-config.php. I can connect via PuTTY only ...
user avatar
0 votes
1 answer
73 views

Why was the nano that was installed manually not colored?

I recently installed Nano manually. I downloaded and installed the latest version from the site: This one and this one I installed both (ncrurses 6.2 and nano 5.8) with commands: mkdir /tmp/myfiles cd ...
user avatar
2 votes
1 answer
117 views

My nano editor can't read tags?

I normally use nano edit, however, today when I open it, it didn't show "<>" and character next to it. I have reinstalled Ubuntu and the problem is still there. In the image below it ...
user avatar
0 votes
1 answer
42 views

bash profile not opening nano editor

im wondering why my Ubuntu 18.04 (LTS) x64 is unresposive to sudo commands. im trying to configure env variables for GO and my command to get in to nano is nano ~/.zshrc nothing happens and doesnt ask ...
user avatar
2 votes
0 answers
339 views

How do I change the editor form vim to nano?

While using the command sudo apt edit-sources, accidentally chose vim instead of nano and don't know how to change it. I used sudo update-alternatives --config editor but it doesn't change the editor ...
user avatar
0 votes
0 answers
68 views

Why I can't open text files while x permission is on?

for example I have test_file and I run sudo chmod 775 test_file so now while I'm the owner I can read,write and execute it but with graphical interface it doesn't work, I don't have any error messages ...
user avatar
  • 3
3 votes
1 answer
695 views

Opening this file in nano shows peculiar red area

I have a simple text file. When I open it with nano, there is a red area covering space in front of some of the text. I have never seen this: What can I do about this?
user avatar
  • 31
3 votes
1 answer
2k views

How do I save and quit after making changes in a config file?

How do I save and quit after making changes in a config file? I was told to type out the command :wq but I do not know where. I'm met with this screen. Which keys do I press to type out the :wq ...
user avatar
0 votes
1 answer
67 views

Alt+V starts the default text editor. Why?

I've searched everywhere, in the ubuntu 20.04 default shortcuts, and among the terminal shortcuts. Yet I can't find why this key is assigned to nano. How can I disable it? And first of all, who, when ...
user avatar
  • 383
0 votes
1 answer
395 views

Lenovo X1 Nano with Ubuntu 20.04.2 didn't activate 4-speaker

Everything seems to work fine on the Thinkpad X1 Nano except the sound. Only the bottom-speakers make an accurat sound. But I couldn't hear anything from the upward-speakers. Anybody with the same ...
user avatar
  • 1
0 votes
1 answer
63 views

rsync log file gets corrupted when using nano editor or mail ( postfix ) command

I have a strange situation where I am re-directing the whole output of an rsync command to a file and the file gets corrupted if I open it with nano editor or if I send the output to outlook mail. If ...
user avatar
  • 43
0 votes
1 answer
346 views

How to launch nano from within a PowerShell session?

How is nano launched from within the PowerShell console? Just looking for a simple way to edit a text file without switching a GUI or bash. bash -c "nano filename.txt" was unusable. ...
user avatar
0 votes
3 answers
168 views

Use nano to change an "on" to "off" line in read only file

I am trying to change a value in this read only file (usr/share/X11/xorg.conf.d/40-libinput.conf) in order to switch a touch screen off. I have have found this question explaining how to disable these ...
user avatar
  • 113
0 votes
1 answer
429 views

What does "Too many recursive configuration includes" mean when trying to connect to a ssh server?

The current problem is when I try to connect to a ssh server (from a university I am currently attending) with the following (example) command: ssh -Y root@example.com Then I get the following error: ...
user avatar
  • 1
0 votes
0 answers
1k views

Jetson Nano password loop problem dlinano image

I have a new Jetson Nano, I am trying to go through Nvidia tutorial. I flashed an SD card with an image called: ainano_v1-1-1_20GB_200203B.img that I got from Nvidia course website. I has ubuntu 18.04 ...
user avatar
0 votes
1 answer
411 views

Changing NANO file saving location

I know Nano saves the files in the current directory by default. I know we can also specify the path we wanna save our file in. What I wanna know is that can we select a save location in which nano ...
user avatar
  • 63
0 votes
1 answer
3k views

How to copy and paste text from Windows notepad to Nano editor running in Ubuntu( running in VMWare Workstation Player )

Background: Physical machine is Windows 10. Ubuntu 20.04.1 LTS is running on VMware Workstation Player, in the same Windows 10 machine. When I try to copy a text from notepad to Ubuntu terminal or ...
user avatar
2 votes
0 answers
497 views

In Nano is there a way to have nanorc settings apply to just one filetype/syntax?

Background: To enable Nano's syntax highlighting I have configured various shared .nanorc files with the format /usr/share/nano/*.nanorc, eg /usr/share/nano/python.nanorc This works well but I keep ...
user avatar
  • 121
0 votes
0 answers
1k views

Why can't I edit files using nano

I'm trying to update the file /etc/fstab/ so I can automatically mount my drive on startup. I used the sudo mount -a command to check for any errors and I realised I have a typo in the file. I raced ...
user avatar
  • 103
0 votes
0 answers
133 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?
user avatar
5 votes
2 answers
2k 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,...
user avatar
0 votes
3 answers
3k 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 ...
user avatar
0 votes
1 answer
64 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!
user avatar
0 votes
2 answers
524 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 ...
user avatar
4 votes
4 answers
11k 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'...
user avatar
0 votes
1 answer
649 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 ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
1 vote
0 answers
108 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 ----...
user avatar
  • 143
1 vote
1 answer
196 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 ...
user avatar
1 vote
1 answer
1k 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
user avatar
1 vote
0 answers
543 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
user avatar
1 vote
1 answer
3k 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: ...
user avatar
  • 170
0 votes
1 answer
2k 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: ...
user avatar
  • 135
0 votes
1 answer
3k 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.
user avatar
0 votes
0 answers
2k 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 ...
user avatar
1 vote
0 answers
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 ...
user avatar
0 votes
2 answers
443 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 ...
user avatar
4 votes
2 answers
13k 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 ...
user avatar
  • 41
2 votes
3 answers
2k 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 ...
user avatar
2 votes
1 answer
220 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 ...
user avatar