Hi gud day! Anybody who knows how to save a file to /usr/include in the terminal? Suppose I will save a file named hello.h to the said directory, what would I do in the terminal? thank you very much....

Recommended Answers

All 4 Replies

>Anybody who knows how to save a file to /usr/include in the terminal?
Uh, yeah. Just use the cp or mv command. With root (administrator) privileges, of course.

>Suppose I will save a file named hello.h to the said directory
If you save it there, then well, it's there.

>what would I do in the terminal?
Nothing. It's already there because you just saved it there.

thanx a lot

If you're doing this (putting your own header files in /usr/include) just to avoid having to specify -I parameters on the compiler command line, then you need to reconsider your approach.

Polluting /usr/include with a bunch of project specific header files will surely come unstuck in a big way at some point.

i thought a rule for posting was not using titles such as this one...

and... could you plz mark it as solved when your question is answered?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.