Reputation: 10724
Can I delete current file opened with nano?
That means after I opened file with nano <file>
, press a shortcut key for delete <file>
.
Upvotes: 1
Views: 3709
Reputation: 330
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.
Upvotes: 2