The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0
votes
0answers
15 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-...
0
votes
1answer
20 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 ...
1
vote
1answer
30 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. ...
0
votes
0answers
30 views

When pasting from clipboard to Nano text editor, it flips the angle brackets side

I try to paste some HTML I copied from my computer to the Nano text editor. Instead of pasting it as is, it flips the sides of the angle brackets so that all of them are open to the left. For example ...
0
votes
0answers
51 views

Windows nano arrow keys wont work over ssh

I have a windows ssh server and need an ssh text editor. However, When using the windows edition of nano over an SSH connection, arrow keys give the error [ Unbound Key ] in nano. How can I get it to ...
0
votes
1answer
60 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 ...
1
vote
1answer
50 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 ...
0
votes
1answer
41 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 ...
0
votes
1answer
66 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 ...
6
votes
1answer
437 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, ...
4
votes
1answer
518 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. ...
1
vote
1answer
152 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 ...
0
votes
0answers
125 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 ...
1
vote
1answer
2k 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 ...
1
vote
1answer
80 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 ...
2
votes
4answers
2k 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 ...
31
votes
7answers
73k 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 ...
0
votes
1answer
569 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: [ ...
0
votes
1answer
36 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 ...
1
vote
2answers
2k 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?
1
vote
2answers
11k 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 ...
0
votes
0answers
219 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,...
0
votes
1answer
73 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 ...
1
vote
1answer
47 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 ...
0
votes
2answers
1k 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 ...
4
votes
3answers
4k 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 ...
3
votes
1answer
979 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 ...
2
votes
2answers
2k 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 ...
-1
votes
1answer
696 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 ...
1
vote
1answer
247 views

How to specify arguments for editor in Midnight Commander

I'm using Nano as the editor in MC. I would like it to scroll by 1 line, which is not its default behavior. I've found that you can specify the option -S when you run Nano to enable smooth scrolling, ...
0
votes
1answer
457 views

Nano does not resize to window size in bash on OS X

Any ideas on how I can fix this? I am not sure what to google for =[
0
votes
1answer
1k views

Mouse-scrolling nano in Terminal.app

In the OS X Terminal, we can use the mouse or trackpad to scroll in programs that use the alternate screen, such as less. This used to be possible in nano as well, both for local sessions as well as ...
1
vote
1answer
2k views

nano in the PATH but no nano access

I've put nano in the Windows PATH. Nano was initially available globally from the Windows command line but has now disappeared. I am loathe to restart the machine at the moment for a number of reasons....
0
votes
1answer
1k views

Why does nano not redraw the screen correctly on some systems?

This is a weird one. On some of my Debian systems - but not all - I get strange corruption in certain terminal programs, such as nano. It does not happen, however, when using less. In this particular ...
1
vote
1answer
164 views

Vagrant SSH & Nano on Linux Mint 17.3

I've recently installed Vagrant (1.7.4) and VirtualBox (5.0) on 3 laptops each running Linux Mint. Have reached a stage on all 3 where I need to edit a config file on the VM itself. So far, so good. ...
4
votes
5answers
23k views

How do I copy text from window text editor to nano/vi in a Putty window

I was following some guide to create key-pair for my remote linux system, one of the steps being copy the public key generated and saved on my local computer to the authorized-keys file on remote ...
8
votes
2answers
6k views

Editor for 'git bash' on Windows (editor for mingw/msys+mintty)?

I am using 'git bash' for Windows (from 'git for Windows') which in turn consists of mingw+msys and a mintty. This mingw installation contains a 'vi' editor which works in the mintty. Good. Question:...
2
votes
1answer
1k views

How to use nano in /usr/local/bin

I'm trying to install the most recent version of nano on my mac. I did so with homebrew, and it seems to be the first version listed in my path, i.e. `which nano` -V returns GNU nano, version 2.4....
0
votes
1answer
164 views

Do nano simcards performs better than a normal sim card? [closed]

I wonder if a nano simcard has any capability to perform better than that of a normal or micro sim card other than it's considerable size difference.I heard that's these nano ones have much more speed ...
6
votes
3answers
6k views

How to copy and paste selected text in nano on a Mac?

I’m using nano in iTerm2, I can mark the text using ctrl+^ but I'm not able to copy and paste the text. I know that ctrl+k can be used cut the entire line. What is the keyboard shortcut for copying ...
5
votes
1answer
666 views

In Windows avoid nano triggering overwrite mode on cmd line

In Windows 8 I have installed nano, because it's my preferred command line text editor. When I use it, it works normally, just as it would on any Linux distribution: C:\>nano file.c However, ...
0
votes
1answer
17 views

Nano in Pathfinder Terminal Shows 2-Line Header

I use nano (= pico) for editing git commits in my terminal window. I'm trying to use the terminal in PathFinder but this happens: There are almost no settings for Path Finder. Is there anything I can ...
2
votes
1answer
9k views

Set nano as a default editor over Vim [duplicate]

Every time I login to ssh terminal to edit files I execute the command export EDITOR=nano How Could I set nano as default editor so I shouldn't execute this command anymore
0
votes
1answer
1k views

Editing files locally with Vagrant

Is it possible to edit files using non command-line editors, such as Notepad++, with Vagrant?  If so, how would it be done?
1
vote
2answers
2k views

How To Enable Syntax Highlighting for Nano In Windows?

I am a huge fan of the nano editor, but I can't get the syntax highlighting to work in the windows version. Is it possible to have syntax highlighting in windows?
1
vote
1answer
2k views

Cygwin nano syntax highlighting

I want to have basic syntax highlighting in a cygwin implementation of nano. This comment confirms for me that it's possible, but I can't find any information on how to actually make it happen.
4
votes
2answers
354 views

How can I configure putty to retain the feed from nano on the screen after exiting?

When I use SecureCRT as my ssh client, and I exit a nano session, the prompt appears under the last state of the nano screen. I've gotten used to being able to refer back to content I was editing, so ...
2
votes
3answers
784 views

Open man page using nano

I want to open man pages in another text editor, in this case "nano". Does anyone know how I can achieve this please?
0
votes
1answer
80 views

How do I configure the insert file target in nano?

The GNU nano text editor has the ability to insert another file into the current file (^R). The behaviour of this command can be modified to insert the file into a new buffer with M-F. I would like ...
1
vote
1answer
291 views

Make nano wrap on $

Is it possible to make nano wrap on $ on very long lines? I regularly have to check log file and then copy and paste the contents into an email for example (I want to use mouse select - Ctrl U does ...