I want to open header file in /usr/local/include. How to open it by terminal?
Asked
Active
Viewed 6,785 times
1
1 Answers
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
.

S.Ith
- 518
name-of-your-editor /usr/local/include/name-of your.h
. For examplevim /usr/local/include/foobar.h
. Maybe I don't understand your question. – Philippos Sep 20 '17 at 08:11