I had 70 different domain names that I need to add in a ssl cnf file for creating a certificate request. The 70 different domain names was in a text file, one per line: domainname1.something.com domainname2.somehing.com … In order to create the alternative names list, I used this bash oneliner: teller=1; for i in `cat

Got a tip from my colleague JB! Want to refresh your terminal? Is it spring and time to freshen things up? Look at: http://ohmyz.sh/ Easy to install on Redhat: yum -y install zsh sh -c “$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)” Result in my Putty in Windows 7:

On Redhat 5 and 6 we could empty the ldap cache with this command: nscd -i group and nscd -i netgroup But in Redhat 7 this doesn’t work. Instead one have to run this command: sss_cache -E here is more about sss_cache from Redhat: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sssd-cache

We wanted to run a script every last Friday of the month. The script was set to remind people about certain issues. Friday is a nice day to be reminded of things, right? Anyway, by putting this in the /etc/crontab file, one can achieve the request: 59 11 * * 5 username [ $(date +”\%m”)