List and remove all files older than 30 days
find /u01/local/logs -mtime +30 -exec ls -l {} \; find /u01/local/logs -mtime +30 -exec rm {} \;
View ArticleUnix – remove file with unseen characters
This works on AIX – Please test on other systems. If a file name is vague and can’t be removed. Ex – a file name has some hidden characters which prevents it’s removal as the name is not recognized by...
View ArticleAdd color to the Unix PS1 prompt
This has been tested on an AIX box - To customize the colour of the message on login by updating the profile called on login for a user into a unix machine update the profile with the following -...
View ArticleUnix – tar and gzip commands
tar and compress a bunch of datafiles and then untar and uncompress them cd /u02/oradata/test- (area of database files ) Now tar and compress and copy the files to backup area – /u02/oradata/test_bkup...
View Article
More Pages to Explore .....