Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (10) AWS (5) numerology (5)

Tuesday, October 27, 2015

Few Basic Linux Commands 2 - Linux

Few Basic Linux Commands:

Here I'm giving few Linux commands, which will be useful to those who are newly started working on Linux.

1. To check if SW raid is configured on server or not:

#mdadm --examine --scan  

or 

#cat /proc/mdstat

2. To check if HW raid is configured on server or not

#lspci -vv | grep -i raid; 

OR

# cat /proc/driver/cciss/cciss[0-1]

3. To get FQDN of server:

#cat /etc/hosts 

or 

# cat /etc/resolv.conf


4. To change keyboard language in console

#loadkeys us --> In french keyboard key q comes at the place of key a 


5. Command to check TEM relay service

#service besrelay status



Thanks...
Kiran Jadhav


**Let's Share knowledge and keep visiting here**

Tuesday, October 20, 2015

Few Basic Linux Commands 1 - Linux

Few Basic Linux Commands:

Here I'm giving few linux commands, which will be useful to them who are newly started working on Linux.

1. To get OS version etc..

# lsb_release -a

or

#cat /etc/redhat-release


2. Networking commands:

    2.1 To make eth2 up:

           #ifconfig eth2 up

    2.2 To assign IP to eth2

           # setup
   or
           #ifconfig eth2 [IP Address]
   then
           #ifconfig eth2 [netmask]


3. Command to check Server Model in Linux

   #dmidecode |grep -i -A3 "system information"


4. To scan new luns:

    1. #cd /sys/class/scsi_host/

    2. #echo ""- - -" > /sys/class/scsi_host/host0/scan

for host1

    3. #echo ""- - -" > /sys/class/scsi_host/host1/scan


5. Command  to check open or listening port


    #netstat -nat | grep LISTEN  ;  netstat -a | grep "telnet.*LISTEN"



Thanks...
Kiran Jadhav


**Let's Share knowledge and keep visiting here**