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

learn more… | top users | synonyms

23
votes
8answers
69k 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 ...
12
votes
2answers
6k 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 ...
6
votes
7answers
214 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
146 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.
4
votes
2answers
9k 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, ...
4
votes
2answers
162 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 ...
3
votes
1answer
3k 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?
3
votes
1answer
3k views

Find next command in nano?

I use CTRL+W then Enter every time, is there a "Find Next" command in nano?
3
votes
2answers
934 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 ...
3
votes
1answer
1k 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 ...
2
votes
1answer
117 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
3k 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
602 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
0answers
199 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 ...
2
votes
0answers
135 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 ...
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
2k 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
423 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
2answers
5k 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
0answers
875 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
1answer
925 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 ...
1
vote
1answer
295 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 ...
0
votes
3answers
226 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
640 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
3answers
44 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
596 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 ...
0
votes
1answer
28 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
43 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
341 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
316 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
901 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
45 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
0answers
16 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
0answers
23 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
0answers
201 views

tmux and nano in busybox

When I connect to my busybox'ed synology NAS with ssh, I can run "nano" with just nano Some_File-sh from the cli. But if I start tmux, I need to use the absolute path /usr/bin/nano/Some_File.sh, ...
0
votes
0answers
27 views

Cut and Paste in IntelliJ IDEA like in Nano

Is there a plugin that allows me to cut and paste text like in nano? I like the way of just pressing Ctrl+K multiple times and have the cut lines appended to the clipboard instead of overriding them.
0
votes
1answer
21 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
69 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 ...
0
votes
1answer
29 views

Nano usablely open second file

Is it possible to open second file into Nano text editor not by browsing files in program interface (it's not so usable because you can't do nothing like search etc in it) but in command line or in mc ...
0
votes
1answer
367 views

Print feature in nano?

Is there a way to print a document from the nano text editor, i.e. send it to a printer to be physically printed out? I see that vim and emacs have this feature but I like the simplicity of nano. If ...
0
votes
1answer
342 views

How to save module configuration in Linux Terminal

I'm following a tutorial to boot Linux from usb3.0. I stumbled across this tutorial: http://evilshit.wordpress.com/2012/06/29/how-to-install-ubuntu-server-on-a-usb-3-0-stick-and-boot-that-stick/ In ...
0
votes
1answer
329 views

Nano syntax highlighting malformed regex?

I found this javascript syntax highlighting file for nano on google code, downloaded it and included it in my /etc/nanorc file: File: /usr/share/nano/js.nanorc ## all *js files ( e.g. Firefox ...
0
votes
0answers
177 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 ...
0
votes
0answers
110 views

Nano suddenly putting in weird characters when I type

I am using a shell and editing a file in nano (similar to pico). A short while ago, it started doing this thing where if I type: $query = "select" * from topics where id='' "; and then I hit ...
0
votes
2answers
648 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 ...
0
votes
1answer
399 views

very strange keyboard/chars behavior in nano editor from terminal

I use "nano" to edit my files on remote servers. I'm on MAC OSX. When I type characters to nano from time to time it just doesn't enter characters as I type them. The behavior is very strange and ...
0
votes
1answer
271 views

iPod Nano 5th gen Album Artwork

I am an album artwork fan. I just got all of these brand new alternate artwork covers for my albums and singles. Eventually, i got bored of them, and i wanted the original ones back. So i got on ...
-1
votes
1answer
191 views

How do I enable some type of c++ syntax highlighting for pico in terminal? [duplicate]

I use my MacBook for my CS class, using terminal. I usually connect to a Linux server via ssh. The servers are super laggy at times so I've decided to just work on projects on my local machine and ...