0

Trying to edit the prior using nano /etc/network/interfaces/ in Debian and get the following error:

Error: /etc/network/interfaces/ is a directory!

I need to fix this?

  • 1
    Can you show what you get if you do ls -l /etc/network/interfaces ? – Anthon Nov 28 '13 at 8:32
  • 1
    have you try to edit the file without the temrinating / – Kiwy Nov 28 '13 at 9:08
3

You have to specify a file name for nano. That what you specified is a directory (ending in a slash /, gives that a away apart from the error message).

On my Ubuntu system that is actually a file (and nano gives no error if it is and you have the trailing /)

-2

I know what you are up to, you can edit a directory using vi editor. But when you use nano you will get a error. So edit the directory using vi editor.

vi /etc/network/interfaces/
  • 3
    The notion that someone should use vi over nano to make the task easier to comprehend is certainly a novel approach... – jasonwryan Nov 28 '13 at 7:52
  • Hey you can move mountains using vi also it helps when working with visudo and cron-jobs. Thats why I prefer vi to nano.. – Ruban Savvy Nov 28 '13 at 9:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.