Linux Commands
Create new mount point linux
Make new directory for allocate new mount point
mkdir /u01
Edit fstab file for automount
vi /etc/fstab Add lines dev/sdb1 /u01 ext3 defaults 1 2
Make ext3 file system
mkfs.ext3 /dev/sdb1
mount -t ext3 /dev/sdb1 /u01 [root@siebelds ~]# df -k Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 46597048 19489468 24702412 45% / /dev/sda1 101086 12860 83007 14% /boot tmpfs 4087328 0 4087328 0% /dev/shm /dev/sdb1 309633052 195552 293709064 1% /u01
———————————————————————————————————————————————
How do we check folder size in Linux environment
[oracle@siebelpoc previous]$ du -ch|grep total 586M total [oracle@siebelpoc previous]$
———————————————————————————————-
Copy files from linux to linux machine
[oracle@siebelpoc install]$ scp *.zip oracle@ipaddress:/u01/install The authenticity of host 'ipaddress (ipaddress)' can't be establishe d. RSA key fingerprint is 99:f8:ee:0f:98:40:0b:a5:bd:b6:a5:24:cc:3a:3f:5f . Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'ipaddress' (RSA) to the list of known hos ts. oracle@ipaddress's password: V17530-01_1of2.zip 100% 1182MB 11.2MB/s 01:46 V17530-01_2of2.zip 100% 1060MB 11.3MB/s 01:34 [oracle@siebelpoc install]$ --------------------------------------------------------------------------------
Increase Swap space
df -m dd if=/dev/zero of=/extraswap bs=1M count=16384 mkswap /extraswap swapon /extraswap cp /etc/fstab /etc/fstab.backup vi /etc/fstab Add lines /extraswap swap swap defaults 0 0
—————————————————————————————————
Zip & Unzip folder
If you want zip folder
tar -pczf inst.tar.gz ERPTRNG/inst
If you want unzip folder
test.cpio.gz gunzip test.cpio.gz cpio -idmv < test.cpio
2.unzip folder
unzip test.zip unzip particular folder unzip test.zip -d database
——————————————————————————————–
fstab failed during reboot
If you changed unwanted things in fstab files, when you’re doing reboot activity later on, It should not be work. so in this case , you need to edit the fstab files but here problem was faced, you can’t edit fstab file on read write mode, so you need to mount read write option like below and do it on terminal windows and reboot it.
mount -o remount,rw /
—————————————————————————————————————-
Putty installation on Linux
Download putty package from here
http://pkgs.org/centos-5-rhel-5/rpmforge-x86_64/putty-0.61-1.el5.rf.x86_64.rpm.html
and then install it.
rpm -Uvh putty-0.61-1.el5.rf.x86_64.rpm warning: putty-0.61-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6 Preparing... ########################################### [100%] 1:putty ########################################### [100%] Go to --> Applications --> Internet --> Putty terminal client. -------------------------------------------------------------------------
Change network ip address
[root@siebelpoc ~]# system-config-network-tui
Enter
Select your ethernet & Enter
Change the ip address
After change it. restart network service.
[root@siebelpoc ~]# service network restart
—————————————————————————————————————-
Bash Shell Script 10 Seconds Guide
—————————————————————————————————————-
Find out Gateway and Domain name service
Gateway
[root@netbackuptest ~]# netstat -rn
DNS
[root@netbackuptest ~]# cat /etc/resolv.conf
———————————————————————————————
Linux Command line sheet :
http://www.cheatography.com/davechild/cheat-sheets/linux-command-line/
—————————————————————————————————-
How many lines occupied in your file Linux?
wc -l <filename location>
———————————————————————————————
To view information about the current partition layout
cat /proc/partitions | grep hd
SCSI
cat /proc/partitions | grep sd
————————————————————————————————
How to determine cpu cores
cat /proc/cpuinfo |grep “cpu cores”|uniq
cat /proc/cpuinfo |grep “core id”|sort -u
—————————————————————————————————–
hey azar this is senthamizh can u pls send me RAC installation Document in Linux system
Asalam-o-Alikum Muhammed Azar
can you email me RAC installation Document in RHEL 5.5 x86_64 server
Jazak ALLAH
Refer my installation document. If you have question regarding installation procedure, Let me know
Mohammedbhai, can I use your installation document in my website http://www.eir.me?
Yes please