Skip to main content

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
2 votes
0 answers
41 views

PuTTY sends Ctrl+Shift+6 as Ctrl+6

I am using nano on a remote computer through PuTTY, and when trying to search backward, Ctrl+Shift+6 appears to be having the same effect as Ctrl+6, i.e., Mark Set/Unset. I searched and couldn't find ...
Old Geezer's user avatar
  • 1,277
0 votes
0 answers
20 views

Some apps in terminal emulator select tabs as spaces, yet others behave as expected

Task I need to copy/paste text containing tab characters between various different remote servers as well as my own host system, between different apps as well, both text-based and graphical.  To keep ...
Chandler 'AGI''s user avatar
0 votes
0 answers
81 views

Conflict of Shortcuts between Chrome Browser and Nano Editor

Using the AWS System Manager, I'm connected to a Linux session. While using the Nano text editor, when I try to search using the Ctrl+W, it closes Chrome's current tab. Without moving to another ...
Andre's user avatar
  • 393
0 votes
0 answers
213 views

Nano edits to files revert after reboot every time

I am trying to get a settings on my kernel to save and after editing them they always flop back to the original settings after I restart, I write them out and save before exit. sudo cpupower frequency-...
nickvlandoskyCA's user avatar
1 vote
1 answer
370 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
225 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
630 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
1 vote
2 answers
527 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
4 votes
2 answers
418 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
  • 61
0 votes
0 answers
92 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
1k 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
4k 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
3k 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
662 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
887 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
  • 553
0 votes
0 answers
133 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
252 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
58 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
  • 153
0 votes
1 answer
88 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
8 votes
1 answer
22k 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
97 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
2 votes
1 answer
4k 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
790 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
140 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
3 votes
1 answer
10k 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
187 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
50 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
16 votes
9 answers
63k 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,650
2 votes
1 answer
2k 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
  • 143
1 vote
1 answer
1k 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
297 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
350 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
  • 8,131
0 votes
1 answer
146 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
168 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
15 votes
2 answers
3k 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
7k 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
18 votes
2 answers
4k 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
  • 183
1 vote
0 answers
307 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
  • 61
1 vote
1 answer
6k 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
958 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
  • 523
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
95 votes
9 answers
301k 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
987 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
212 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
4k 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?
Dan D.'s user avatar
  • 731
2 votes
2 answers
25k 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
448 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
155 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
93 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
  • 3,253
0 votes
2 answers
4k 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