Questions tagged [nano]

nano is a text editor for Unix-like computing systems or operating environments using a command line interface.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
21 views

nano : where are "morespace" and "smooth" settings gone

In the transition from Cygwin+Windows to MacOS Monterey, I also tried to port my configuration of the nano editor. On the Mac, I had to use Homebrew (brew install nano) to get a decent nano, because ...
user1934428's user avatar
0 votes
2 answers
19 views

nano editor does not remember last editing position

I have previously used the nano editor under Cygwin/Windows. When I invoked nano with nano FILENAME and I had edited the file before already with nano, the cursor was placed at the last known ...
user1934428's user avatar
0 votes
1 answer
53 views

Linux file recovery after unexpected shutdown

Yesterday, I was using a nano file to take important notes relating to university work. I had not saved the file at any point that day, and was actively taking notes throughout the day. Towards the ...
Lily D.D.'s user avatar
0 votes
2 answers
19 views

Is there a way configure nano to do not ask for file name when executing command write out?

When I would like to save the edited file in nano, pressing ctrl + o, nano asks for the file name. I do understand, that it is necessary in case when the file has no name yet, and I do understand it ...
g.pickardou's user avatar
3 votes
2 answers
124 views

How can I add configuration file to Nano obtained from WinGet on WIndows?

I have installed this version of Nano using: winget install GNU.nano Now, I'm trying to figure out where to put the config files for nano to read them. Below is the list of places where I've tried ...
SepSol's user avatar
  • 51
0 votes
0 answers
57 views

Same color text in nano editor when logged in to the server with cmder / conemu

I saw some people have a friendly color scheme in Nano editor, e.g. words inside brackets highlighted, comments highlights etc. Looks like I fail to get my Nano editor become more user friendly in ...
Andrew Anderson's user avatar
0 votes
0 answers
809 views

File transfer speed : SCP vs Copy-Paste over SSH

Recently, I've been transferring some files between a device on my local network and my computer, and I've noticed something. For a text file of approximately 2.5Mb Transfer using scp file.txt user@...
Xiidref's user avatar
  • 101
2 votes
1 answer
2k views

Toggle line number display in nano on a Mac

Is there a keyboard shortcut for toggling line number display in the nano editor on a Mac? The keyboard shortcutOption-# that works in Linux work doesn't work on a Mac. I read where someone suggested ...
3rdrockdata's user avatar
0 votes
1 answer
2k views

Whenever i try to edit a file in nano it just makes a .swp file

When i try to edit a file that already exists, it makes a new one that ends with .swp. I'm not very good at explaining but for example lets say i try to edit a file called "testfile.txt" ...
BMT's user avatar
  • 3
0 votes
1 answer
351 views

Nano save says Cancelled

I am trying to save a file that was edited via nano. When I tried to save it is says 'Cancelled' and file is not saved. This happens to only specific file. I can save other files. Keys I am pressing ...
Muhammad Imran Tariq's user avatar
3 votes
1 answer
667 views

Terminal editors (nano, vim, etc) wipe terminal history on exit

I have recently upgraded from WSL (Windows Subsystem for Linux) version 1 to version 2. I am having a problem with using editors; some times, when I exit Nano or Vim, it wipes my history. I still ...
Zags's user avatar
  • 533
0 votes
0 answers
100 views

"=" is invisible in nano editor (wsl)

The problem is simple: = is invisible in WSL's nano and I don't think this should be happening: #! /usr/bin/bash STRING="e" echo "$STRING" Is there some way to turn this off?
Crabby Fish's user avatar
0 votes
1 answer
175 views

How can I preserve trailing tab character in Nano?

I do have set autoindent in ~/.nanorc, and it is auto-indenting as expected as I type. The issue I'm having is that any blank lines containing tab characters have those tabs stripped as trailing ...
Joshua096's user avatar
0 votes
1 answer
46 views

How Do I Get Nano to Freeze the Top Line While Scrolling?

I'm using nano to view large data sets (I pipe them into nano by running ...some process that produces hundreds of rows of stdout | nano -). I like this interface, but wish to freeze the top-most line ...
Digger's user avatar
  • 141
0 votes
1 answer
80 views

Attack on a Linux file server | What is the damage of this file contents?

TCP Networking This file was uploaded using a loophole in a file uploading network program I was writing. The ability to access the server itself was too simple and the techniques I used resulted in ...
DaFuze's user avatar
  • 11
5 votes
1 answer
11k views

Why can't I copy from nano to clipboard?

Why does nano not support simple Ctrl + C into clipboard? I'm using it with gnome-terminator on Linux Mint and just want to copy a few lines from my .bashrc into a text editor. When I mark a text ...
sarah.clarke's user avatar
1 vote
1 answer
72 views

nano: How to unset option from .nanorc?

I have in my .nanorc set tabstospaces This correponds to the commandline option -E, and is usually the setting I want to achieve. In rare cases, however, I want to edit a file by inserting literal ...
user1934428's user avatar
1 vote
1 answer
3k views

Nano displays spaces instead of some symbols

I have a feeling that I have this bug, however I've just installed new Nano 4.7 from sources When I open files, a lot of symbols (even non-unicode) as not displayed properly, but displayed as spaces. ...
The Godfather's user avatar
0 votes
1 answer
578 views

Nano Editor looses characters in copy/paste

I am using terminal mode in two Linux machines using Ubuntu 18.04. On my laptop I navigate with a touchpad equipped with a left and right select button. I have a file on first machine that I want to ...
WesZ's user avatar
  • 1
2 votes
1 answer
82 views

How to append cut text to nano/vi's clipboard/buffer instead of replacing what's there?

I'm currently reorganizing the ArchLinux pacman mirrors list to put all United States servers at the top, but it's going extremely slowly. For every single server I am scrolling down to the next US ...
Zachary Johnson's user avatar
2 votes
1 answer
9k views

nano command not found after entering chroot during arch install

I am new to Linux and running into a problem while trying to install Arch Linux on bare metal with UEFI. I have been following the installation guide on the Arch wiki and, like the title says, after ...
sequinors's user avatar
0 votes
1 answer
111 views

Can cheap Arduino Nano clones infect or damage my computer?

I recently purchased several Arduino Nano v3 clones from a merchant on AliExpress. I got them for around $2.00 each. I'm aware of the possibility that they may arrive damaged or just not working. ...
LaMayz's user avatar
  • 3
0 votes
0 answers
45 views

nano on windows confuses folders

Powershell got opened in this folder C:/Windows/system32 Then, I entered this command, then typed the content and saved the file: nano C:/windows/system32/goeclipse.bat And the file gets saved as: ...
Teddy's user avatar
  • 101
13 votes
9 answers
44k views

How to install the nano CLI editor on Windows 10?

Didn't DOS used to have an "edit" or something? I'm used to nano, like nano, and want to use nano. Does it install on Windows 10? https://showtop.info/install-nano-text-editor-windows-10-command-...
Thufir's user avatar
  • 1,460
2 votes
1 answer
1k views

Use version of nano from homebrew

I have downloaded nano 4.3 with homebrew, which is now in /usr/local/Cellar/nano/bin/nano, but the version in /usr/bin/nano is still 2.0.6. I can't move that to /usr/bin/nano2 for example, it fails to ...
deeBo's user avatar
  • 133
1 vote
1 answer
949 views

How to copy entire file from Linux (via ConEmu terminal) back to Windows in WSL

I am using ConEmu terminal to access files in the Linux distro of my Windows 10 machine. I open text files with Nano or VIM, but I am having trouble copying entire text files back to Windows. ...
Freelensia's user avatar
0 votes
1 answer
261 views

Using nano in Cygwin's Mintty: Shortcuts don't work when editing git commit message

I'm using Cygwin with Mintty and have set the git editor to nano: git config --global core.editor "nano". Now when I just run nano, the UI is black and white and the shortcuts, like ctrl+o and ctrl-x ...
804b18f832fb419fb142's user avatar
2 votes
1 answer
271 views

Can't use umlauts (äöü) in any editor over ssh

If I write Umlauts (äöü) in putty, then weird things happen. It seems like it worked but as soon as I go over with the cursor then it goes like this: And if I go very often from left to right then ...
Black's user avatar
  • 7,220
0 votes
1 answer
124 views

Typing < in nano through Digital Ocean console

I am following a tutorial to setup php on Digitial Ocean and am using the web console. I am trying to enter a "<" in a php file and all it types is ">" I've also tried the same in a html and txt ...
JoeOD's user avatar
  • 43
0 votes
1 answer
149 views

nano 3.2 always compiles without nls

I'm running macOS 10.14 and zsh. I noticed that nano 2.0 is installed by default and is missing some features. So, I tried to compile and install the latest version (3.2). This work fine, except for ...
Woulei's user avatar
  • 101
13 votes
2 answers
2k views

How to exit with an error code from nano?

When using vim for “replying” to some program – typically git – it can be useful to deliberate exit with error, to abort the entire action that opened the window. Like $ git commit -a # vim opens, ...
leftaroundabout's user avatar
4 votes
2 answers
5k views

Paste in Nano is not working

I used Ctrl+Shift+6 to select a block of text in Nano, then cut it with Ctrl+K.  This successfully removed the text from my buffer. But when I do Ctrl+U to paste what I had cut, nothing is pasted. ...
kishere's user avatar
  • 41
16 votes
2 answers
3k views

Accidentally added a character outside of a comment in sudo file on Mac, sudo not working any more

I made a mistake in terminal, and now every time I use sudo, I get the error message: sudo: unable to initialize PAM: Invalid argument I know what I messed up, which is adding a character outside of ...
Arnav's user avatar
  • 163
1 vote
0 answers
266 views

PuTTY Cygwin nano screen error

I have recently installed Cygwin on my Windows 7 x64 computer so I can use nano to edit files from the command line. I have also setup OpenSSH to be able to connect to it remotely using PuTTY from my ...
jmhg92's user avatar
  • 41
1 vote
1 answer
5k views

Why can’t I save a file after editing in Nano through SSH?

I created Raspbian server and connected to it with SSH from my machine. When I try to modify the file using Nano, I can not get past “File Name to Write prompt. I have tried using nano filename and ...
Vladimir Oselsky's user avatar
1 vote
1 answer
647 views

View an .pem vertificate file content

I need to view a .pem file content. After researching little in the web, I find 2 ways to view the content, A. I executed the command provided below, sudo keytool -printcert -file cak.artt.pem ...
Arefe's user avatar
  • 495
4 votes
4 answers
4k views

Change default version of Nano on Mac OS X

I've got nano 2.0.6 as default in my Mac OS X terminal when executing nano. I've got nano 2.9.1 in /usr/local/Cellar/nano/2.9.1/bin/nano. How do I change the default nanoto version 2.9.1 in the ...
Michael Nielsen's user avatar
85 votes
10 answers
259k views

How to paste into nano from clipboard?

I have an Ubuntu server hosted by Vultr which I am interacting with remotely using their provided terminal. I would like to know how to paste from my clipboard into nano, which I am using to write the ...
Oscar Chambers's user avatar
0 votes
1 answer
915 views

Error writing lock file on Bash/nano using Python on Windows 10

I use $ sudo nano first.py or $ nano first.py to start a new nano file (in Python), while using Bash on Windows 10, but the file won't save. The error I get when I try to save the file is: [ ...
Χριστιανίδης Βασίλειος's user avatar
0 votes
1 answer
119 views

Why does nano editor prompt me to "save changes" when nothing is changed, and can I change this behavior?

When I open a file in nano, if I add a character then remove it, so the file is exactly the same as it was initially, upon close I'm prompted to "save changes" and I have to type N for no. Is there ...
Nathan Smith's user avatar
1 vote
2 answers
3k views

How to right-click to paste in mcedit

On a bash terminal I can right-click to paste to vim or nano, but mcedit does not receive my clipboard data on right-click. How to right-click to paste in mcedit?
Dee's user avatar
  • 621
2 votes
2 answers
23k views

"Command not found" while using sudo with nano

I got a problem when I want to edit files using nano with sudo. When I enter the following command: sudo nano /etc/exports I got this error sudo: nano: command not found This is the return from ...
Einzelkind's user avatar
0 votes
0 answers
377 views

CIFS share: files getting locked with VIM but not with Nano

I have an heterogeneous share, between Linux and Windows systems, hosted on a NetApp. On Linux, I mount the share with those options: mount.cifs -o username=`logname`,dom=DOMAIN,cifsacl,multiuser,...
NdFeB's user avatar
  • 1
0 votes
1 answer
129 views

Nano opens extremely slow on mac while using ZSH?

Whenever I type try to open a file using nano on my mac while in ZSH, it takes about 4 seconds before nano actually opens and I'm unsure why. Does anyone have suggestions to debug this issue and ...
Nathan F.'s user avatar
  • 115
1 vote
1 answer
67 views

Which setting(s) control the way text is pasted in a terminal?

It happens that text copied form a terminal and pasted into nano ends up like this: auto host0 iface host0 inet static address 10.200.0.3 netmask 255.255.255.0 ...
WoJ's user avatar
  • 2,714
0 votes
2 answers
3k views

How to type * character in nano?

I'm using Debian on an embedded ARM machine and using nano via PuTTY. I cannot figure out how to type the * character in nano. I also cannot figure out how to copy/paste a single character. When I ...
rollsch's user avatar
  • 329
8 votes
3 answers
16k views

Updating to latest nano text editor

Currently using Debian 8 and preinstalled is nano 2.2.6, I wish to update nano to the latest version which is 2.7.1. I tried apt-get remove nano and installing again using apt-get install nano, but ...
user avatar
4 votes
2 answers
3k views

How to save file in Nano fast

When using Nano, if I press Ctrl+O the editor will ask me to press Enter to confirm overwriting the file. This is annoying. Is there a keyboard shortcut to save file as it is usual in other ...
warvariuc's user avatar
  • 1,087
2 votes
2 answers
3k views

nano language set to French when using version from homebrew

I just updated from OS X El Capitan to macOS Sierra this weekend. Everything went smoothly, until I opened nano this morning. Its settings are now in French: I actually have 2 installations of nano ...
jeherve's user avatar
  • 151
-1 votes
1 answer
1k views

(MAC) Are these commands to be trusted (sudo nano)?

A person asked me to do this: Open the Terminal Enter command sudo nano /etc/hosts Hit Enter Enter the password for the Administrator Hit Enter Insert the cursor in a blank line at the end then copy ...
Jens Devogelaere's user avatar