Operating Systems

Linux Tip: Undo the Annoying colors on Linux Terminals

When on command prompt, if you have noticed, the directories and files with different permissions are shown in different colors. Sometimes its very annoying when the colors match the backgroud color you have chosen for the terminal software, but here is how you undo it : 

Just type ‘unalias ls ‘ or include this in your .profile /.bash_profile

Unix/Linux: Sharing Oracle owned directories/files with other users using ACL

Nobody wants to give 777 permissions to users on a production environment, I also wanted to keep few application users away from my oracle server software and so I installed a separate oracle client for them and provided permissions on the same to a specific user/group.  Also the Oracle generated files like datapump exports/traces can have ownership as oracle:dba and non dba gorup users cant access it. But using ACL, we can give appropriate permissions to users without having to give permissions to world. (Another way is to add the 2 users in one group and set group level permissions but this may not always be feasible)

Unix/Linux:How to use rsync: to synchronise 2 servers. [& ssh no password]

scp does not provide an option to "Not-Overwrite" a file if already exists on the destination server. So finally I implemented the rsync, its very simple and straigt forward.

This can be used mainly when you want to take incremental backup of filesystems or keep servers in sync etc. With a simple wrapper, this can be setup a a cron job as well.

Prerequisites:

Syndicate content