Skip to main content

Questions tagged [nano]

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

Filter by
Sorted by
Tagged with
-1 votes
0 answers
44 views

Having issues when updating my Ubunto Server 22.04.4 LTS

Command used: john@dell-server:~$ sudo apt update && sudo apt upgrade -y Hit:1 https://downloads.plex.tv/repo/deb public InRelease Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease Hit:3 ...
John T's user avatar
  • 1
3 votes
1 answer
190 views

Nano copying word wrap as line breaks

I've encountered this issue on other platforms like Termux on Android or when connected over ssh, but never on Ubuntu using nano. I'm using Ubuntu 20.04 and GNU nano, version 4.8. using the dialog ...
mchid's user avatar
  • 43.9k
0 votes
1 answer
74 views

How to configure slrn so that nano is the text editor?

How is slrn configured so that nano is used as an editor? nicholas@mordor:~$ nicholas@mordor:~$ grep vim .slrnrc %set editor_command "vim -c %d '%s'" nicholas@mordor:~$ nicholas@mordor:~$ ...
Nicholas Saunders's user avatar
-1 votes
1 answer
273 views

Does the Nano edited file not get updated after reboot?

I am using the nano command to update the file and save it, however, the file has not taken effect after the system rebooted. The file was not updated after checking again. Nano editor version 6.0.1, ...
kt04716's user avatar
0 votes
1 answer
65 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
146 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
2 votes
0 answers
244 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
1 answer
65 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
468 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
3 votes
3 answers
14k 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
174 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
6k 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
1k 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
987 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
1k 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
748 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
512 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
4 votes
1 answer
1k 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,546
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
796 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
1 vote
1 answer
762 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
650 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
274 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
-1 votes
1 answer
180 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
2k 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
5 votes
1 answer
3k 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
  • 61
3 votes
1 answer
10k 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
260 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
  • 423
0 votes
1 answer
721 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
108 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
  • 123
0 votes
1 answer
2k 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
597 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
1k 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 [email protected] Then I get the following error: ...
EricH's user avatar
  • 1
0 votes
1 answer
1k 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 ...
Anon's user avatar
  • 63
0 votes
1 answer
6k 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
1 answer
804 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 ...
Nat's user avatar
  • 103
1 vote
1 answer
4k 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
7 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
6k 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
132 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
2k 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
6 votes
4 answers
21k 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
4k 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
137 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
244 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
2k 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
586 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
1 vote
1 answer
7k 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: ...
parsecer's user avatar
  • 190