Command to find inode:
----------------------
find . -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
command to remove file:
-----------------------
nohup find /u02/app/oracle/product/11.2.0/dbhome_2/rdbms/audit -type f -name "*.aud" -mtime +7 -exec rm -f {} \; &
nohup find /u02/app/oracle/product/11.2.0/dbhome_4/rdbms/audit -type f -name "*.aud" -mtime +7 -exec rm -f {} \; &
nohup find /u02/app/oracle/product/12.1.0/dbhome_2/rdbms/audit -type f -name "*.aud" -mtime +7 -exec rm -f {} \; &
nohup find /u02/app/oracle/product/12.1.0/dbhome_2/rdbms/audit -type f -name "*.aud" -mtime +7 -exec rm -f {} \; &
[root@server1 ~]# df -ih /u02
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/xvdg 5.7M 5.2M 501K 92% /u02
[root@server1 ~]# pwd
/root
[root@server1 ~]# cd /u02
[root@server1 u02]# cd app
[root@server1 app]# find . -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
5505547 ./oracle
3 .
[root@server1 app]# df -ih /u02
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/xvdg 5.7M 5.2M 505K 92% /u02
[root@server1 app]# cd /u02/app/oracle/product
[root@server1 product]# ls
11.2.0 12.1.0 12.2.0 nohup.out oem13
[root@server1 product]# find . -printf "%h\n" | cut -d/ -f-2 | sort | uniq -c | sort -rn
2427032 ./12.1.0
1920579 ./11.2.0
930820 ./12.2.0
130574 ./oem13
6 .
[root@server1 product]#