I've noticed that by default the below line is included in /etc/network/interfaces:

source /etc/network/interfaces.d/*

What is the purpose of this line and what does it actually do?


From the Ubuntu interfaces man page:

Lines beginning with "source" are used to include stanzas from other files, so configuration can be split into many files. The word "source" is followed by the path of file to be sourced. Shell wildcards can be used. Currently only supports absolute path names.

  • 1
    i am wondering what they mean with "Currently only supports absolute path names" cause /etc/network/interfaces.d/* is not an absolute path name, is it? – Edoardo Jul 3 '17 at 6:48
  • 2
    It is an absolute path name (including a shell wildcard). "interfaces.d/*" would be a relative one (a path not starting at /) – Florian Bach Jul 3 '17 at 8:19

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.