0

Can I delete current file opened with nano?
That means after I opened file with nano <file>, press a shortcut key for delete <file>.

Nabi K.A.Z.
  • 9,887
  • 6
  • 59
  • 81

1 Answers1

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