Monday, December 17, 2012

Linux Commands in realtime


1———->How to find  ramsize , os, os bit in Linuxarch; free -m; cat /etc/redhat-release    ( This command will tell you all these details )


2———>How to know which is 32bit and 64 bit in linuxuname -mi386 or i686 then it is 32 bit x86_64 is 64bit


3——-> How to use traceroute in windows and linux:——->in windows

> tracert <domain or IP address>Example—> tracert http://www.yahoo.com

——->in linux# traceroute <domain or IP address>Example----> traceroute www.google.com

Important commands in MIddleware Admin :

$ uname  -a                                          —————> Linux version of java.

$ java -version                               —————–> which java version it is using.

$ which java                                 —————–> where java is installed in that system.

$ ps  -ef | grep  java                  ——————> Is java is working or not.

$ps -ef  | grep httpd                ——————–> is web server is working or not.

$jboss  log-file  <path>        ———————> to see perticular log file.

$tail -f  <log file name >       ———————> to see the log file running.

$less  <log file name>         ———————- >

$tail  -200 <log file name>——————— > to see the last 200 lines of the log file.

$grep  -i  subha  <log file name >—————–> to find “subha”  in the log file .

$ find -name  subha*.*  —————————–> to find the files starting with subha.

1 comment:

  1. less is very efficient while viewing huge log files, as it doesn’t need to load the full file while opening.

    ReplyDelete