Quantcast
Channel: How do I delete multiple lines in nano without affecting the clipboard? - Ask Ubuntu
Browsing latest articles
Browse All 14 View Live

Answer by Alejandro Morales for How do I delete multiple lines in nano...

Ctrl+T (opens Command to execute tab)Ctrl+V (Cut Till End)Tested on Ubuntu Server

View Article


Answer by Soumitra Karmakar for How do I delete multiple lines in nano...

Ctrl+6 (Sets the mark position) Ctrl+- (Enter the lines nos to delete) Ctrl+K (Delete the selection)

View Article


Answer by SudoPlz for How do I delete multiple lines in nano without...

For me (on a mac) Control + K did what I wanted (deleted a full line)

View Article

Answer by Akhil S for How do I delete multiple lines in nano without...

In NanoCtrl+6 to set a markAlt+T will delete all content in a fileCtrl+K will delete the current line at your cursor.

View Article

Answer by Lenny for How do I delete multiple lines in nano without affecting...

As pointed out by @saagarjha around version 3.2 of nano they introduced a zap command which allows you to delete text without affecting the cutbuffer.M-Del Throw away the current line (or marked...

View Article


Answer by saagarjha for How do I delete multiple lines in nano without...

Recent versions of nano (3.2+) now have this feature if you enable the zap option. Put set zap in your nanorc (or start nano with -Z/--zap), select the text your want to delete, and hit ⌫ to delete...

View Article

Answer by morgz for How do I delete multiple lines in nano without affecting...

If you are trying to empty all of the lines.A pretty elegant and simplest approach is from the bash-cli:echo ""> filename.txtnano filename.txt

View Article

Answer by Lakindu Akash for How do I delete multiple lines in nano without...

To delete multiple block without overriding your clipboard, first mark the text with Alt+A (You will appear Mark Set then select the text using arrow keys) and then use Ctrl+Shift+K to delete selected...

View Article


Answer by th3pirat3 for How do I delete multiple lines in nano without...

CTRL SHIFT Kdeletes current line, It can also be useful for quick editing. ThanksEdit1:In some of the putty streams, the following works tooCTRL K

View Article


Answer by mwfearnley for How do I delete multiple lines in nano without...

You could open up a separate buffer to stash your clipboard in:Make sure "reading into separate buffer" is enabled (you can toggle this with Alt+F)Use Ctrl+R and press Enter (without entering a...

View Article

Answer by mwfearnley for How do I delete multiple lines in nano without...

Sadly, nano doesn't seem to have any way of bulk-deleting without clobbering the clipboard.The safest thing to do while staying within the document is probably to paste your clipboard before deleting,...

View Article

Answer by Thomas Klein for How do I delete multiple lines in nano without...

nano of course can delete blocks, see this articleuse CTRL+Shift+6 to mark the beginning of your blockmove cursor with arrow keys to end of your block, the text will be highlighted.use CTRL+K to...

View Article

Image may be NSFW.
Clik here to view.

Answer by ish for How do I delete multiple lines in nano without affecting...

nano does not support deleting a block of text, only cutting it (to the server's clipboard).Instead, if you are using Putty, do the following:Select the text you wish to copy to the clipboard with the...

View Article


How do I delete multiple lines in nano without affecting the clipboard?

I can select all file by going to the 1st line Alt+\, start marking the text by Alt+A, go to the last line by Alt+/But there, I don't know which key to remove the selected text. Hit delete doesn't work...

View Article
Browsing latest articles
Browse All 14 View Live