12 Aralık 2012 Çarşamba

Linux - JAVA_HOME değiştirme

  • Open the ~/.bashrc in a text editor. From the command line, the command would be:
    gedit ~/.bashrc.

  • Add the following two lines to the file:
    export JAVA_HOME=/usr/java/jdk<version>/bin/java
    export PATH=$PATH:/usr/java/jdk<version>/bin
    Replace <version> with the version number of the JDK you are using. If you have JDK installed in an alternate location, change both variables to reflect your information.

  • Save your file.

  • Restart your terminal session.

  • Type "echo $JAVA_HOME" to ensure the variable has been set correctly.

http://www.ehow.com/how_5120825_change-java-home.html

Linux - RAM kullanımı

free -m

Unix - Uname

uname -a
sistem bilgisi

7 Aralık 2012 Cuma

Unix - Scp ile dosya transferi

scp -r yigit@10.1.3.117:/data/yigit/Report .

4 Aralık 2012 Salı

Linux - "xargs: unmatched single quote" hatası

find . -name "*.xml" -type f -print0 |xargs -0 grep "10.12.20.70" > yigit/sms.txt

http://www.ducea.com/2007/11/22/xargs-unmatched-single-quote/

20 Kasım 2012 Salı

Unix'te Ant targetini çalıştırmak

ant "FULLJARCOPY" -f build.xml

2 Kasım 2012 Cuma

Unix - Komut tarihi

more ~/.bash_history