Nabi K.A.Z.
Nabi K.A.Z.

Reputation: 10724

Can I delete current file opened with nano?

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

Answers (1)

Andres Ramos
Andres Ramos

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

Related Questions