Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nano]

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

0
votes
0answers
16 views

How to toggle whether nano backwards searching is persistent?

I use nano on several different computers. On some of them, when I search and press Alt+B to search backwards, the setting persists until I turn it off. On others, it only applies to that search. ...
0
votes
0answers
29 views

Issues launching Nano from GUI

While I can run nano from command line quite normally, and set it as the default text editor using: sudo update-alternatives --config editor I cannot seem to set it as the default GUI launched text ...
0
votes
0answers
37 views

Files created in nano editor on Linux VM are not visible in the file explorer in Windows 10

I am running a Linux Virtual Machine on a Windows 10 machine using Oracle VirtualBox. I use the editor nano. Is it possible to see the files I create with nano in the Windows file explorer? I have ...
0
votes
0answers
69 views

How do I enable a linter in nano

How do I enable linting in nano editor. I read we need to change the .nanorc file but what exactly do I need to add to enable linting. Also which linter should I use for C.
0
votes
0answers
216 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 ...
0
votes
0answers
18 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
68 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 ...
3
votes
2answers
1k 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
2answers
303 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
24 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
78 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
184 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 ...
2
votes
0answers
1k 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
653 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 ...
3
votes
2answers
4k 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
0
votes
0answers
30 views

While saving the file in nano, it is showing permissions are denied [duplicate]

When I tried to save file in nano, it is showing that permissions are denied. How to save file and modify permissions in nano editor. I have already tried for sudo nano[File Name] but it is not ...
1
vote
1answer
370 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
638 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
82 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
128 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
77 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
32 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
52 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 ...
4
votes
3answers
2k 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
268 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 ...
2
votes
1answer
242 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
526 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
198 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
463 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 it should replace some files or ...
0
votes
1answer
446 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. ...
12
votes
3answers
21k 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
27 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
474 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?
1
vote
1answer
1k 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
4k 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% ...
4
votes
2answers
2k 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
2k 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
42 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
406 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 ...
3
votes
2answers
7k 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-...
0
votes
2answers
1k views

snap package nano-editor not visible on ubuntu core

I have installed: OS: Ubuntu Core 16 image: (GNU/Linux 4.4.0-1030-raspi2 armv7l) HW: RASPBERRY PI 3 MODEL B and I want to install nano however I can not find it using: snap find nano-editor I ...
2
votes
1answer
1k views

Can't use forward slash in Nano - Forward slash quits Nano

I SSH into my Ubuntu 16.04 VPS from Windows10 via Putty. In my system, if I just do nano filename and then / it will exit; If I do so nano filename modify the document even with 1 letter and then do ...
0
votes
1answer
2k views

How to copy text from Host machine and paste it into nano editor in Ubuntu Server Virtual Machine

I am having a problem pasting code from a html file on my host machine into a file written in nano editor on my VM which has Ubuntu Server 16.04 I have enabled shared clipboard between host machine ...
0
votes
1answer
2k views

Error: no such file or directory, ubuntu 16.04 LTS

I do follow turorial at https://serverfault.com/questions/550276/how-to-block-internet-access-to-certain-programs-on-linux. But when i create file in step 2: nano /home/username/.local/bin/no-internet,...
5
votes
1answer
2k views

Can I enable bracket matching in nano?

else if( d && ( (d <= b && d <= s) || (!b && !s) ) smallest = d Consider this piece of code of C++. Can we have bracket matching (highlighting opening bracket when ...
4
votes
2answers
3k views

Delete word before and after the cursor in nano editor

How can I delete the word before and the word after the current position of the cursor in nano editor? (For the sake of clarity: I mean two distinct editions under this description, like the Ctrl-...
0
votes
1answer
456 views

How to undo the changes made through nano?

I'm a newbie to ubuntu. i'm using ubuntu 16.04 on my desktop. Recently I found a way to add 'hibernation' option to menu on I tried it and was successful. But how to undo the changes I have made ...
35
votes
7answers
84k views

Copy (only copy, not cutting) in Nano?

I need to copy some text in Nano, so I searched using Google and found a few posts here on Stack Exchange and other sites in which the OP asks "How can I copy?" and people usually answer "You can use ...
0
votes
1answer
58 views

Power setting changes not being saved on suspend/reboot

I've been trying to make changes to a few power saver setting files: /sys/module/snd_hda_intel/parameters/power_save /sys/module/snd_hda_intel/parameters/power_save_controller by opening the files ...
3
votes
2answers
71 views

Is there any way to search the Help screen in nano?

In nano, I can search for text in my document using Ctrl W, and I can bring up the Help screen using Ctrl G, but I can't search the Help screen using Ctrl W. Is there any other way to do it?