Questions tagged [nano]

GNU nano is an open source, curses-based text editor for Unix systems. It is a clone of [tag:pico], the proprietary Pine e-mail client editor.

Nano is a simple, small, lightweight text editor for written in . It was created in 1999 under the name TIP ("this isn't pico"). It was renamed to avoid conflit with the tip command in 2000 and officially joined the GNU project in 2001.

Nowadays, nano supports interaction through mouse, syntax highlight, -based search, customization of key bindings and (experimental) undo/redo support. More about it can be read in its homepage.

295 questions
3
votes
2 answers

Why does every text editor write an additional byte (UTF-8)?

I'm working on Ubuntu 16.04 (Xenial Xerus). I found out that text editors write additional bytes (UTF-8) to the text file. It made some problems for me, when I tried to pass tests. So we have a string, "Extra byte", with the size = 10 bytes in…
Sklert
  • 242
  • 5
  • 12
3
votes
3 answers

How to save file in crontab using Ubuntu

I am editing a crontab file using the nano editor on Ubuntu. I need to save my text as a crontab file. When I attempt to save the file, it is asking me for the file name, but after I give the file name it's not taking or I'm not giving the proper…
satya
  • 3,508
  • 11
  • 50
  • 130
3
votes
1 answer

nano editor file browser activation

I use Kubuntu 14.04 (but I have the same error on Raspbian on Raspberry PI), and I use nano as text editor. The documentation for nano says that ^T activates "File Browser" mode. However, this shortcut activates the spell function when I press it.…
bttcld
  • 67
  • 7
3
votes
3 answers

how to install an app inside of running docker container?

I am testing some Bitcoin related code and in order to test it have installed bitcoin-testnet-box within a docker container. I use this guide: https://registry.hub.docker.com/u/freewil/bitcoin-testnet-box/ I pulled and run the docker without any…
user3335302
  • 37
  • 1
  • 4
3
votes
1 answer

Why nano and rnano are different?

I tried to edit files by using nano and rnano. The latter is really in restrict mode, but they are exactly same binary files. Why do they behave differently? # which nano rnano /usr/bin/nano /bin/rnano # md5sum /usr/bin/nano…
ShenLei
  • 567
  • 1
  • 5
  • 17
3
votes
1 answer

Redirect stdout into buffer editor before piping to other commands

I'm trying to clean up my local set of git branches. There are quite a few, and I don't want to do git branch -D branchname for all of them. There's also no pattern that captures all and only the ones I want to kill. Then I remembered that I once…
Tom
  • 8,509
  • 7
  • 49
  • 78
3
votes
2 answers

Nano syntax highlighting rules for D

I'm just getting started learning the D language, and I'm curious whether a .nanorc file with syntax highlighting rules for D is available. Nothing turns up with a quick google search.
Daniel Standage
  • 8,136
  • 19
  • 69
  • 116
3
votes
1 answer

After changing path nano doesn't work

After i did change server ~bash_profile for PATH to my Java i cannot use nano or vip anymore. I actully don't know how to change it back, while i cannot edit it with nano or vi anymore. What can i do? -bash: ano: command not found root@s [~]#…
Anders Hedeager
  • 107
  • 2
  • 8
3
votes
1 answer

Long-line handling from Nano in Vim?

I'm a hardcore VIM-user. However, I wonder whether it's possible to configure VIM to provide a lone-line handling like Nano. Imagine the following text file: 1 This is a short line 2 This is a much much much much much much much (...) much longer…
esonn
  • 173
  • 7
2
votes
1 answer

I am using a newer mac, and in bash trying to write things using nano. I can not get it to display line numbers by using -c, -l,, etc?

I am using a newer mac, and in bash trying to write things using nano. I can not get it to display line numbers I have tried using: nano -l, nano -linenumbers, nano -c, nano --c, and more. Either I get a guide or file opens but nothing happens. I…
Gad11ng
  • 27
  • 3
2
votes
0 answers

BulkDocs Api used to save CouchDb document is taking more time compare to put method?

As we checked in the chrome network tab is shown both Api request and response timing. Analysis that timings, the bulk docs Api is taking 2x of time to complete the document save in CouchDB. sometimes this 2x time is changed to 3 or 4x it depending…
2
votes
1 answer

nano settings are not adopted from nanorc file

I have a new Macbook M1 and usually edit files and write short scripts with nano. However, I am stuck in default settings, which are of course not really feasible. I created a file ~/.nanorc and since it didn't work also a file ~/etc/nanorc with the…
spadel
  • 998
  • 2
  • 16
  • 40
2
votes
1 answer

How do I exit nano in Emacs 26.3?

I'd like to know how to close nano under a term using /bin/bash, all under the context of in emacs -nw. A plain ^X doesn't work. I tried entering the character mode using C-c C-k, but that didn't seem to help. Is there another "just send this along"…
Sage Gerard
  • 1,311
  • 8
  • 29
2
votes
2 answers

ROS and OpenCV with CUDA on Jetson Nano : Incompatible versions

I want to use ROS with CUDA-enabled OpenCV on my Jetson Nano. At this point I don´t care about the versions. The problem: Jetson Nano only supports CUDA 10 and Ubuntu 18.04. The ROS version for Ubuntu 18.04 is Melodic, which needs OpenCV 3.2, but…
Milan
  • 109
  • 1
  • 9
2
votes
2 answers

YOLO (Darknet): How to change the output file directory of a detection (predictions.jpg)?

The Darknet guide to detect objects in images using pre-trained weights is here The command to run is: ./darknet detect cfg/yolov3.cfg yolov3.weights data/dog.jpg The result of the detection is currently saved in the current directory. How can i…
Uwe Clement
  • 21
  • 1
  • 5