• RSS
  • SmsJobs
  • Sms
  • GoogleBuzz
  • Facebook
  • Twitter
  • Linkedin
  • Youtube
The Linux Juggernaut

The Linux Juggernaut

roles on……

Archive for December, 2010

How to set java path in Linux?

Ans : Check where java is installed by using below command

#update-alternatives --config java
This command will show installed java packages in your machine.
Example output :
# update-alternatives --config java

There are 2 programs which provide ‘java’.

Selection ———————————————–

1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java *+

2
From above you can see java version and its location.

Setting java path(In Temporary way)

#JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk

#export $JAVA_HOME

Setting java path (In Permanent way)Continue Reading

Posted by Surendra On Friday-Dec - 10 - 2010 1 Comment READ FULL POST
linux_boot_startup_scripts

This is possible with renaming of the scripts located in running configuration(rc) folders such as /etc/rc1.d, /etc/rc2.d etc. Each of these folders are corresponding to the scripts that will start in that run-level respectively. For example if you want to start some script in runlevel 1, then they should be kept in /etc/rc1.d folder so that when Linux OS is booting up these scripts are executed.

So how can I set priority to my scripts/services?
 Just go in to Continue Reading

Posted by Surendra On Friday-Dec - 10 - 2010 Add Comments READ FULL POST

This post is regarding how to change java version if multiple java versions are installed?

Check what are the java versions are installed on your system

#java -version

Example output

OpenJDK Runtime Environment (build 1.6.0-b09)

OpenJDK Client VM (build 1.6.0-b09, mixed mode)

So now I want to change the one version to another version.

If more than one java is installed. Execute below command to see how many java versions are installed? And what … Continue Reading

Posted by Surendra On Friday-Dec - 10 - 2010 Add Comments READ FULL POST

How we can login to remote server through ssh?

#ssh user@servername

or

#ssh -l user servername

or

#ssh ip-add

So when you will execute the above command you will get the password prompt. But if you want to see what will happen when you execute ssh command you have to enable verbose or debugging mode. To do this we have to apply -v option at the time of login as shown in below example.

#ssh Continue Reading

Posted by Surendra On Thursday-Dec - 9 - 2010 Add Comments READ FULL POST

email newsletter

Redhat Flagship dist

Redhat announced that they are going to release RHEL7 by ...

12 examples to use f

Flower brackets examples This is a small post on how to ...

7 Linux read command

read command examples read command is useful in scripts when reading ...

7 linux sort command

Linux/Unix sort command examples This is a small tutorial on how ...

How to find command

How to find command location in Linux and Unix This is ...

  • About Linux Juggernaut

    How the blog name selected? Juggernaut: * a massive inexorable force that seems to crush everything in its way ...readmore>>

  • Contact Me

    Contact us Send an Email Phone number and vCard LinkedIn profile Advertise with us
  • About Me

    Surendra Kumar Chowdary

    My name is Surendra Kumar Anne. I am from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present i work at Persistent Systems as Module Lead.   read more »