1

I want to open header file in /usr/local/include. How to open it by terminal?

1
  • 2
    Open with what? Text editor? usually you type name-of-your-editor /usr/local/include/name-of your.h. For example vim /usr/local/include/foobar.h. Maybe I don't understand your question. – Philippos Sep 20 '17 at 8:11
1

You need permissions to open the file (read, and write if you want to edit). Then I would use vi/vim, or a more "user friendly" nano, followed by the name of your header file, to read its contents, assuming you are already inside /usr/local/include.

0

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