Skip to content
Advertisement

How can I add a default include path for GCC in Linux?

I’d like GCC to include files from $HOME/include in addition to the usual include directories, but there doesn’t seem to be an analogue to $LD_LIBRARY_PATH. I know I can just add the include directory at command line when compiling (or in the makefile), but I’d really like a universal approach here, as in the library case. Answer Try setting C_INCLUDE_PATH

How to list running screen sessions?

I have a bunch of servers, on which I run experiments using screen. The procedure is the following : ssh to server XXX launch screen start experiments in a few tabs detach screen disconnect from the server While the experiments are running, I can easily find on which servers they are by sshing to all servers and listing my running

Can /tmp in Linux ever fill up?

I’m putting some files in /tmp on a web server that are being used by a web application for a limited amount of time. If the files get left in the server’s /tmp after the user quits using the application and this happens repeatedly, should i be concerned about the directory filling up? I read online that rebooting cleans out

How can I make a public HTML folder in Ubuntu?

Simple question, but for some reason I couldn’t find the exact answer on Google: I have a fresh Ubuntu install on Slicehost, and would like to make a public directory in my home dir for a simple website containing a bunch of static HTML files. How do I do this? Is it just a matter of typing mkdir public_html and

How can I add a line to a file in a shell script?

I want to add a row of headers to an existing CSV file, editing in place. How can I do this? and I want to end up with Changing the initial CSV output is out of my hands. Any standard command will do. The important thing is the file is edited in place, and the line is inserted at the

Dynamic Shared Library compilation with g++

I’m trying to compile the following simple DL library example code from Program-Library-HOWTO with g++. This is just an example so I can learn how to use and write shared libraries. The real code for the library I’m developing will be written in C++. If I compile the program with gcc it works fine. When I change the filename and

What is time_t ultimately a typedef to?

I searched my Linux box and saw this typedef: But I could not find the __time_t definition. Answer The time_t Wikipedia article article sheds some light on this. The bottom line is that the type of time_t is not guaranteed in the C specification. The time_t datatype is a data type in the ISO C library defined for storing system

Advertisement