0

Every time I try to get into my /etc/network/interfaces file, I get a not a directory message.

I have not done anything else to it since I have installed the server on to my VM, and I am logged in as root. Am I suppose to type sudo in front?

  • what is the output of file /etc/network/interfaces? – Ravexina Apr 11 '17 at 18:47
3

If you enter /etc/network, and run ls -la, you will notice that interfaces is not formatted like a directory. This is because it is a file containing text.

So, you don't "enter" it, you "edit" it. For example, by running sudo nano /etc/network/interfaces

| improve this answer | |
  • They shouldn't have to use sudo if they're already root. Also I have a feeling nano /etc/network/interfaces may be easier for them use to edit if they are a beginner. – Gansheim Apr 11 '17 at 18:42
  • 1
    Being completely honest, as a beginner I felt it was necessary to point out that sudo is necessary when editing certain files due to the fact that running commands while signed in as root is generally bad practice, especially for a beginner. – fastenedrex Apr 11 '17 at 20:26

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.