As of May 31, 2023, we have updated our Code of Conduct.

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
88 views

"File script1.py is being edited by x (with nano 7.2, PID xxxxx); open anyway?" - trouble switching between nano files

I just created two python scripts in nano: script1.py and script2.py. I'm currently editing script2.py, switching back and forth between script and terminal using the fg command (in the terminal) and ...
Vadim's user avatar
  • 139
0 votes
1 answer
17 views

paste a text in two place at the same time in the nano editor

I have a text file: #"UDP-/32", "UA", 0, "any", "any", udp, 0.0.0.0/0, /32, {x, x, x} Is there a way so I can paste a text before /32 at the same time, like ...
masoud hanifehzadeh's user avatar
0 votes
1 answer
73 views

cannot compile nano from source

i am trying to build nano from source, but the installation guide doesn't make any sense. it says to run ./configure but there isn't any configure file, and even in some of the repository it is in, it ...
David Lynch's user avatar
0 votes
0 answers
37 views

Error reading /etc/hosts using nano-strict on Ubuntu Core

I'm doing some development work with Ubuntu Core and IoT Management. Since I am used to using nano on Ubuntu Server I decided to install it and use it on Ubuntu Core with the following commands: snap ...
Kris's user avatar
  • 139
2 votes
0 answers
110 views

Ubuntu Core 20 Nano: Premission Denied

I have been trying to get nano to work, but I keep running into permission denied problems where vim (vi) works. I have downloaded 2 versions of nano sudo snap install nano-strict following this guide:...
Tomas Berger's user avatar
0 votes
0 answers
96 views

Backport WiFi Drivers

I'm very new to working with linux but I have a NVIDIA Jetson Nano, with the OS given that runs Ubuntu 18.04.6 LTS and Kernel 4.9.253-tegra. I had an intel card working but I needed to upgrade to the ...
Nube99's user avatar
  • 1
0 votes
1 answer
30 views

Removed sudo Password Requirement in sudoers, Cannot Re-enable It

I wanted to stop Ubuntu from requiring a password everytime I did nearly anything, so I followed instructions here to disable the password requirement in sudoers - How do I stop Ubuntu from asking for ...
001121100's user avatar
0 votes
1 answer
145 views

clipboard problem in terminal text editors

I am on Ubuntu 22.10, when I copy text from anywhere, there is no problem with pasting it on a regular other app. But I get errors when I try to paste the text into terminal text editors. For example ...
Pooya Behravesh's user avatar
2 votes
3 answers
4k views

export PATH="/usr/bin:$PATH" needed for every single command

so I was trying to set JAVA_HOME variable and some how I ended up facing this error every time I want to use terminal Command 'poweroff' is available in the following places * /sbin/poweroff * /usr/...
MohammadBaqer's user avatar
0 votes
0 answers
36 views

When saving more than once in nano, the second time I get "File on disk has changed"

I'm using nano to edit some files that are in a folder which is network mounted. When I open any file on the network share, I edit something, and I do ctrl+s to save, it works fine. But then, if I ...
Cas's user avatar
  • 572
0 votes
0 answers
89 views

nano and vim (search) history remove

How can I delete nano and vim history (typed text, search, etc.)? I don't want to disable it for the future, only erase the current values. THX
user1607778's user avatar
3 votes
1 answer
3k views

Opening a file in read-only mode using nano

I am new to Ubuntu. I know I can open a file using vim in read-only mode by pass the -R option: vim -R <filename> //Gives warning if I try to write However, if I do the same thing with nano, I ...
Trojan's user avatar
  • 51
3 votes
1 answer
540 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?
Alpha-Craft's user avatar
2 votes
0 answers
655 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 ...
user2472414's user avatar
4 votes
2 answers
699 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 ...
asdasd123's user avatar
0 votes
1 answer
402 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 ...
MHeidarian's user avatar
0 votes
1 answer
391 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 ...
StressedBoi_69420's user avatar
3 votes
1 answer
742 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 ...
sdbbs's user avatar
  • 1,408
2 votes
1 answer
2k 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. ...
crisprog's user avatar
  • 123
2 votes
1 answer
431 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 ...
gridlocdev's user avatar
0 votes
1 answer
255 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 ...
jvsale70's user avatar
0 votes
1 answer
281 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 ...
user487583's user avatar
2 votes
1 answer
214 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 ...
quang duy's user avatar
0 votes
1 answer
137 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 ...
Highlander's user avatar
2 votes
0 answers
1k 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 ...
LyingAmigo's user avatar
3 votes
1 answer
2k 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?
Cyrill's user avatar
  • 41
3 votes
1 answer
4k 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 ...
TroubledUbuntuSkid's user avatar
1 vote
1 answer
183 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 ...
gianni's user avatar
  • 393
0 votes
1 answer
556 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 ...
chrisb's user avatar
  • 1
0 votes
1 answer
94 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 ...
AlexP's user avatar
  • 83
0 votes
1 answer
900 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. ...
Nicholas Saunders's user avatar
0 votes
3 answers
379 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 ...
user4933's user avatar
  • 113
0 votes
1 answer
880 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: ...
EricH's 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 ...
erKarim's user avatar
0 votes
1 answer
735 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 ...
Sujith's user avatar
  • 63
0 votes
1 answer
5k 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 ...
abinjacob's user avatar
3 votes
0 answers
621 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 ...
Neil's user avatar
  • 131
0 votes
0 answers
2k 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 ...
Nathan's user avatar
  • 103
1 vote
1 answer
1k 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?
ola_bandola's user avatar
6 votes
2 answers
3k 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,...
Free Radical's user avatar
0 votes
3 answers
4k 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 ...
Peter Prographo's user avatar
0 votes
1 answer
103 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!
Peter Es's user avatar
0 votes
2 answers
1k 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 ...
irhammusa's user avatar
4 votes
4 answers
16k 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'...
davemackey's user avatar
0 votes
1 answer
1k 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 ...
Joseph Stateson's user avatar
1 vote
1 answer
3k 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 ...
nebras junaid's user avatar
1 vote
0 answers
123 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 ----...
geohei's user avatar
  • 153
1 vote
1 answer
209 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 ...
yesyesyes's user avatar
1 vote
2 answers
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
Nicolas Flores Muñoz's user avatar
1 vote
0 answers
568 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
Alcides Javier Quijada Alveo's user avatar