Can I delete current file opened with nano?
That means after I opened file with nano <file>
, press a shortcut key for delete <file>
.
Asked
Active
Viewed 2,158 times
0

Nabi K.A.Z.
- 9,887
- 6
- 59
- 81
-
This question would be better received on [Super User](http://superuser.com/). – Jonny Henly May 26 '16 at 20:27
-
@JonnyHenly What's difference? – Nabi K.A.Z. May 26 '16 at 20:34
-
1From what I've seen, *usually* the users on SO give better answers to questions pertaining to programming, whereas the users on SU give better answers to questions pertaining to software. – Jonny Henly May 26 '16 at 20:42
1 Answers
2
No, you cannot. Actually I haven't seen any TextEditor that allows you to Delete the file. You can simply use:
rm -rf <file>
I hope it helps.

Andres Ramos
- 330
- 4
- 13