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

learn more… | top users | synonyms

45
votes
6answers
146k views

How do I select all text from a file with nano?

I open a file in Ubuntu nano editor from the comand line and I want to copy all the contents of the file so I can paste it in an another application outside the shell. So far I can only copy using ...
29
votes
2answers
18k views

Git on Mac: How to set Nano as the default text editor?

When I'm using Git on Mac and need to do a rebase, the Vim editor kicks in by default. I would prefer Nano – could someone please explain how to reconfigure Git to make it use Nano for rebase? Thank ...
10
votes
3answers
22k views

How to input hash (#) symbol to terminal?

I'm running Ubuntu Server as a virtual machine (using VirtualBox) on my mac. Normally on the Mac, I'd press alt + 3 to input the hash (#) sybmol. However, if I do this in my Ubuntu Server's console, ...
8
votes
2answers
9k views

Copying from one file to another using nano editor

How do I copy a few lines from one file to another file using the nano editor?
6
votes
7answers
221 views

Open a Console Based Editor with limited access

I have a script that will be executed through SSH. My SSH server is configured to always trigger this script, so the user doesnt have access to actual machine. One of the features of this script is ...
5
votes
2answers
157 views

An esay way to empty a config file in Linux?

Is there a way to empty a configuration file in Linux without deleting it so that it won't lose the permissions? Thanks.
5
votes
1answer
8k views

Find next command in nano?

I use CTRL+W then Enter every time, is there a "Find Next" command in nano?
5
votes
1answer
288 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, ...
4
votes
3answers
1k views

Missing the first character of a line on full screen apps on Linux server ssh'ed from OS X Terminal

I am having problems with the Terminal application on Mac OS X Snow Leopard. I use ssh to connect to a remote Linux server and perform configuration file editing. For some reason, it sometimes ...
4
votes
2answers
247 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 ...
4
votes
1answer
2k views

Unix command-line editor for big files

I sometimes run into the problem where I need to replace just a few characters in files ~10Gb. As I only have 2Gb RAM, opening such a file with Vim or nano will consume all system resources. The way ...
3
votes
2answers
1k views

Centos Nano Upgrading

I'm having a few issues with the default version of Nano...Its extremely buggy and when I scroll between characters they mysteriously change without my editing. How do I update my nano version? The ...
3
votes
0answers
159 views

Why is nano ignoring the first line in files?

I've sshed into Server A and Server B from Windows Vista. I've sshed into Server A and Server B from Windows XP. In all 4 cases, when I edit a file with nano, the first line does not show up in nano ...
2
votes
1answer
134 views

Nano World Wrap Without Hard Breaks

How would I use the nano edtior to show the wrapping of the text, but without having the text broken by end of line characters? If I turn wrap off I'm only able to view one line of text, but if I have ...
2
votes
2answers
4k views

Is there usleep for Ubuntu?

There's usleep() in libc, but I didn't find any command line utility to do this. Though I've written a piece of C code, I'm still wonder if it already existed somewhere?
2
votes
3answers
721 views

macbook, messed up my .profile and now no commands work like nano, rm, etc

I messed up a .profile and now I can't even get nano to work. I was trying to add git to my environment variable whenever I start terminal, and I messed the command up obviously and no nothing works. ...
2
votes
1answer
570 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 ...
1
vote
1answer
3k views

How do you reinstall nano on Mac OS X?

I accidentally overwrote my nano app with a unix binary version, and now nano doesnt work on my Mac OS (Maverick). How do I restore nano or get it back? I couldnt find it on homebrew and I don't ...
1
vote
1answer
1k views

Making nano accepting previous piped output as a file path

When I run the following command in linux: find / -iname httpd.conf I get: /usr/local/apache/conf/httpd.conf I want to use nano to edit this file, lazy to type the file path again, I used: find ...
1
vote
1answer
3k views

Is there a way to make Nano support auto-complete and auto-bracket closing?

Does anyone know if there's a way to make nano support auto-complete and auto-bracket closing?
1
vote
2answers
726 views

Is it possible to remove the $ from nano in linux on longlines?

is it possible to configure nano to have line breaks on long lines instead of showing a $?
1
vote
1answer
47 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....
1
vote
1answer
67 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....
1
vote
2answers
6k views

Restore an iPod nano (1st gen.) to older firmware version

I have an old iPod nano (1st. generation) from 2005. I updated the firmware to the latest version 1.3.1 and it has all kinds of problems for me. Random reboots, garbled images, etc... How can I ...
1
vote
1answer
48 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. ...
1
vote
1answer
595 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:...
1
vote
0answers
1k views

Nano syntax highlighting on Mac OSX not working

I installed the Macports version of the nano text editor sudo port install nano +colors and now i have all the syntax highlighting nanorc files ls /opt/local/share/nano drwxr-xr-x 31 root ...
1
vote
0answers
270 views

Running nano WinSSHD and Putty

I have following setup; Windows 7 running WinSSHD GitBash (WinSSHD launches this as console when connected) Nano 2.2.6 WIN32 version Remote Windows with Putty connected via ssh to above server ...
1
vote
0answers
290 views

Nano (pico) editor window resize

I am still not sure what I have done but I was testing some button combinations when I was in nano editor and all of a sudden the contents of the window started not to adjust themselves when I resized ...
1
vote
2answers
433 views

Cursor in nano jumps instead of scrolling

When scrolling (by holding down the down key) in nano, the cursor does not move while the key is pressed, but once I let go of the key it jumps to where it should be. How can I get it to move as I ...
1
vote
1answer
1k views

Nano syntax highlighting for Debian

I am running Debian and I would like to turn on syntax highlighting for nano. My system has predefined syntax definitions... standage@idebian:~$ ls /usr/share/nano/ asm.nanorc c.nanorc ...
0
votes
3answers
256 views

Nano: Will it be there for me?

I know nano (and Pico!) well on *Nix systems, and don't even know how to get out of vi if it accidentally loads (though on emacs I can get that far. Questions about my intelligence aside, is it okay ...
0
votes
2answers
229 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 ...
0
votes
2answers
890 views

Failed to install Nano editor on Mac

I downloaded the latest version of nano and I followed the instructions described on its website, but I was stopped by step 3: Download the source file (nano-2.2.6.tar.gz) and unpack it. Open ...
0
votes
1answer
376 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.
0
votes
1answer
15 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
30 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 ...
0
votes
3answers
172 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
41 views

command to delete slected text portion in nano

I am using nano editor for the first time. I know that CTRL + K will delete an entire line. But I am unable to understand how to delete a selected portion (selected using mouse) of the the text. is ...
0
votes
1answer
51 views

weird resolving of path to command

I have the terminal editor 'nano' installed in two places on my mac /usr/bin/nano /opt/local/bin/nano The installations are of different versions. The one in /usr does not support my configuration ...
0
votes
1answer
780 views

How to get nano to work properly under mutt?

I have set nano as the default editor in mutt; mutt launches nano normally enough, but when I try to send the message (ie. save and quit, separately) mutt says the message has been aborted. Any idea ...
0
votes
2answers
443 views

Nano-like editor that support Ctrl+Backspace and Ctrl+Arrow keys

Does anybody know of a nano-like editor that supports Ctrl+Backspace and Ctrl+Arrow keys? Like in Windows, where you can delete and navigate words. I have been trying to learn the basics of Vim for ...
0
votes
1answer
983 views

Nano editor for Win XP

A strange request, yes; 'tis not for me, but for a coleague. The title pretty much says it all. Is there a Nano editor with XP support. I cannot seem to find it. (A fork long forgotten maybe?)
0
votes
1answer
63 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 ...
0
votes
1answer
28 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 ...
0
votes
1answer
9 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 ...
0
votes
1answer
396 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?
0
votes
2answers
340 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?
0
votes
1answer
38 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 ...
0
votes
1answer
130 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 ...