Twisters

1) JMX Issue: while making an Application JMX enabled.

Resolution: Add to your VM options:
JAVA_OPTS="$JAVA_OPTS $DEFAULT_JAVA_DEBUG_OPTS -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8007 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=12.221.32.4 -Dremoting.bind_by_host=false" 
-Dsun.lang.ClassLoader.allowArraySyntax=true

2) How do I create a soft link (symbolic link) under UNIX or Linux operating system?
A. To make links between files you need to use ln command. A symbolic link (also known as a soft link or symlink) consists of a special type of file that serves as a reference to another file or directory. Unix/Linux like operating systems often uses symbolic links.

Two types of links

There are two type of links.
  • symbolic links: Refer to a symbolic path indicating the abstract location of another file
  • hard links : Refer to the specific location of physical data.

How do I create soft link / symbolic link?

To create a symbolic link in Unix or Linux, at the shell prompt, enter the following command:
ln -s {target-filename} {symbolic-filename}
For example create softlink for /webroot/home/httpd/test.com/index.php as /home/vivek/index.php, enter the following command:

ln -s /webroot/home/httpd/test.com/index.php /home/vivek/index.php
ls -l
Output:
lrwxrwxrwx 1 vivek  vivek    16 2007-09-25 22:53 index.php -> /webroot/home/httpd/test.com/index.php


3) How to clear the history in linux?
Resolution:
                    use "history -c".