what is located under /var directory? Today I was checking running processes and found a process running as root from this location, I am on osx maverics. I wanted to know what kind of process might be that's running from /var folder that too as root user.
There's a pretty good writeup on linfo.org describing the /var directory. In summary, it is used for variable information, like cache, logs, lock files, spool files, etc. Some executables will reside in this tree, like shared libraries.