- Unlock Linux User account “Account locked due to n failed logins”
[root@proddb1 ~]# su – oracle
Account locked due to 10 failed logins
pam_tally2 -r -u oracle
[root@proddb1 ~]# pam_tally2 -r -u oracle
Login Failures Latest failure From
oracle10 07/29/20 12:16:24 pts/5
reset password by executing passwd oracle
2. Command to delete files in a folder greater than 5 days
find /backup/ -name “*.gz” -type f -mtime +5 -exec rm {} \;
3. CPU Core check
grep “model name” /proc/cpuinfo
CPU Core Count
cat /proc/cpuinfo | grep “cpu cores” | uniq
cpu cores : 4
4. Zip command
zip tar command
tar -cvzf auto_backup.tar.gz fulldp_daily.dmp
unzip tar command
tar -zxvf backup.tar.gz
5. Linux Soft link [ln – make links between files]
ln -s /u04/mithuntest/ /u02/mithuntest
/u04/mithuntest –> where actual data
/u02/mithuntest –> soft link name
[oracle@asltestdb u02]$ ls -l
lrwxrwxrwx 1 oracle oinstall 16 Dec 9 12:07 mithuntest -> /u04/mithuntest/