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**
No comments:
Post a Comment