Thursday 27 July 2017

Ubuntu linux copy and paste from one nano file to another nano file

In console mode without a mouse use the following to copy and paste:
  1. Launch nano in multi-buffer mode (nano -F)
  2. CTRL-K cut the line you need. (As this cuts the line don't save this file when you are finished)
  3. CTRL-R to open a file into a new buffer (you can type the full path ie /etc/this.conf)
  4. CTRL-U to paste in the opened file

No comments:

Post a Comment