Questions tagged [nano]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
687 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 ...
-1
votes
0answers
23 views

bash interactive menu [duplicate]

Hello I want to create an interactive bash file while using a text file how can I make it work like if the user presses 1 it gives him a full list of names from this text file For example I'm ...
0
votes
0answers
22 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 ...
-1
votes
0answers
22 views

No NetworkManager.conf file [duplicate]

I have problems setting up my wifi adapter on my Ubuntu 20.04 installation on my MacBook Pro 2018. I found this guide which works fine up until I have to edit the NetworkManager.conf file. If I open ...
0
votes
1answer
109 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 ...
0
votes
1answer
50 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 ...
0
votes
1answer
65 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. ...
0
votes
3answers
51 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 ...
0
votes
1answer
135 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: ...
0
votes
0answers
525 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 ...
0
votes
1answer
81 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 ...
0
votes
1answer
746 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 ...
0
votes
0answers
38 views

Cut/Copy/Mark a specific word in Nano

I know that you can search for words within nano by using Ctrl+W, and I know you can replace words by using Ctrl+\. Now I am looking for a way to search for a word in a file and then cut/copy/mark ...
0
votes
0answers
24 views

Why nano is not updated along latest release with global [duplicate]

I am using Ubuntu 20.04 LTS the nano I have is v4.8 The global version is 4.9.3 Why it is not updated
2
votes
0answers
247 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 ...
0
votes
0answers
108 views

Nano looses scroll support when 'set mouse' is enabled

Mouse scrolling works fine in nano, however when I add set mouse in /etc/nanorc to enable point and click support, scrolling no longer works. Commenting out set mouse enables it again. Not sure if it ...
0
votes
0answers
375 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 ...
0
votes
0answers
51 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
754 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
1k 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
41 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
119 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 ...
2
votes
4answers
5k 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
292 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
1k 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 ...
1
vote
0answers
94 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
170 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
752 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
527 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
2k 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
1k 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
2k 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
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 ...
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
273 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
10k 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 ...
2
votes
3answers
1k 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 ...
2
votes
1answer
95 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
196 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
709 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
3k 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 ...
7
votes
2answers
22k 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
2k 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
3k 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
128 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
248 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
210 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
78 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
60 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 ...