28 ms·
You can do the same thing (for me too, ~/.ssh/known_hosts is the most common use case) with GNU Nano: nano +[line number] [filename], then Ctrl-K, then save and
by Mediterraneo10 8y ago
You can do the same thing (for me too, ~/.ssh/known_hosts is the most common use case) with GNU Nano: nano +[line number] [filename], then Ctrl-K, then save and quit.
- jraph 8y agoNice! Also applies to kate: kate filename:line CTRL+K (or CTRL+D to comment out), CTRL+S, quit (current tab: CTRL+W, Alt+Tab or app: CTRL+Q) Particularly useful when the output of the previous command (compilation for instance) already contains filename:line. Then double click, middle click paste works well. or: kate filename CTRL+G line <Enter>, CTRL+K, CTRL+S, quit.