05-27-2011
The difference between /usr and /opt is the implementation of SVR4 file system paradigm...where from / you would separate static files layout from dynamic files layout...
/usr is where you expect to find OS libs binaries and documentation
/opt should be dedicated to applications...
You would have:
/opt/<appname>/bin
/opt/<appname>/lib
/opt/<appname>/share/man
conf files in /etc/opt/<appname>/ and logs in /var/opt/<appname>/
10 More Discussions You Might Find Interesting
1. Programming
hello,
i get these warnings on make(ing)
/usr/bin/ld: warning: libgfortran.so.1, needed by /opt/openmpi/lib/libmpi_f90.so, may conflict with libgfortran.so.3
/usr/bin/ld: warning: libgfortran.so.1, needed by /usr/lib/gcc/x86_64-redhat-linux6E/4.3.2/../../../liblapack.a, may conflict with... (1 Reply)
Discussion started by: sreekar
1 Replies
2. BSD
hi
Howto configure Ralus at /usr/local/etc/be-agent.cfg on freeBSD 7.0 for Backup Exec 9.1?
I've tried the following:
# cat /usr/local/etc/be-agent.cfg
name bsd.domain
export / as root
export /usr as usr
export /var as var
export /tmp as tmp
force_address 10.10.1.50
tell... (0 Replies)
Discussion started by: ccc
0 Replies
3. Solaris
Hi gentlemen.
For what intended is the directory /usr/local/bin? In this directory are some script.
I don't understand how these scripts being in this directory are started.
Each time after registration of the user occurs start of these scripts. These scripts start applications. (7 Replies)
Discussion started by: wolfgang
7 Replies
4. UNIX for Dummies Questions & Answers
it seems that /usr/local/lib is not searched by ld-linux.so by default in fedora14.
If so, why some software put its lib files in /usr/local/lib? eg: glib and gtk+. (6 Replies)
Discussion started by: vistastar
6 Replies
5. AIX
I can able to access /usr/local/bin/cvs in the terminal (AIX 6.1 Box). but i am getting the "/usr/local/bin/cvs: Not found " when i call it from the script. please some one assist me what maybe problem (6 Replies)
Discussion started by: hifirockz
6 Replies
6. OS X (Apple)
I was following a tutorial on installing Homebrew and I changed the ownership of /usr/local/ to me. Now McAfee Security won't start This is the exact line I typed:
sudo chown -R `whoami` /usr/local
Then I tried to fix it with:
sudo chown -R root /usr/local
I still can't start mcafee. It say... (7 Replies)
Discussion started by: chancho
7 Replies
7. Shell Programming and Scripting
Legends,
I am not able to set "expr" function in ksh script.
Below is the sample code i used, and output is as "Syntax error"
Please help me to come out of it.
OUTPUT (9 Replies)
Discussion started by: sdosanjh
9 Replies
8. Fedora
It seems this is a oft debated item, that's over my head.
So here's what I've got:
Java 7 set up at /opt/ but I really want it at /usr/local...
What have I done?
Have: Debian 7 (whezzy) with gnome, so what do I do to set things back where it should be?
I guess this is a hot topic... (3 Replies)
Discussion started by: sas
3 Replies
9. BSD
I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries.
I was trying to compile the latest version of Kanatest from svn. The autorgen.sh script seems to exit without too much trouble:
$ ./autogen.sh
checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies
10. Programming
I hope it's okay to post this here. I'm working on Windows computer but using the Unix-like environment MSYS2 (https://sourceforge.net/projects/msys2).
My problem is that I can't get the compiler to find headers located in /usr/local/include. I am trying to compile libpng which wants the header... (1 Reply)
Discussion started by: AntumDeluge
1 Replies
LEARN ABOUT PHP
tidy.getoptdoc
TIDY.GETOPTDOC(3) 1 TIDY.GETOPTDOC(3)
tidy::getOptDoc - Returns the documentation for the given option name
Object oriented style
SYNOPSIS
string tidy::getOptDoc (string $optname)
DESCRIPTION
Procedural style
string tidy_get_opt_doc (tidy $object, string $optname)
tidy_get_opt_doc(3) returns the documentation for the given option name.
Note
You need at least libtidy from 25 April, 2005 for this function be available.
PARAMETERS
o $object
- The Tidy object.
o $optname
- The option name
RETURN VALUES
Returns a string if the option exists and has documentation available, or FALSE otherwise.
EXAMPLES
Example #1
Print all options along with their documentation and default value
<?php
$tidy = new tidy;
$config = $tidy->getConfig();
ksort($config);
foreach ($config as $opt => $val) {
if (!$doc = $tidy->getOptDoc($opt))
$doc = 'no documentation available!';
$val = ($tidy->getOpt($opt) === true) ? 'true' : $val;
$val = ($tidy->getOpt($opt) === false) ? 'false' : $val;
echo "<p><b>$opt</b> (default: '$val')<br />".
"$doc</p><hr />
";
}
?>
SEE ALSO
tidy.getconfig(3), tidy.getopt(3).
PHP Documentation Group TIDY.GETOPTDOC(3)