ESXi: Use partedUtil – deletion of disk device partitions

How to use ESXi partedUtil deletion of disk device partitions? If you came along the ESXi issue, unable of adding datastore (check fig.1 error), most likely your device disk is not entirely clean when it comes to partitions. In order to overcome this…

Linux: Gentoo to GRUB2 Migration

Linux Gentoo is now by default installing GRUB2 instead of GRUB, LILO is considered Legacy, yet still accessible emerge package. Install of GRUB2 on /dev/sda grub2-install –grub-setup=/bin/true /dev/sda grub2-mkconfig -o Generating grub.cfg … Found linux image: Found initrd…

Generate Random ASCII Art in shell

How to generate random ascii art in shell: wget -qO – | sed -n ‘/<pre>/,/<\/pre>/p’ | sed -n ‘/<table*/,/<\/table>/p’ | sed ‘1d’ | sed ‘$d’ You may consider daily cron to put the output in the motd file: /etc/motd…

GNU: Fix Search History Backwards

To search backward in the history for a particular string, type C-r. Typing C-s searches forward through the history. The problem with Ctrl-S however is that sometimes collides with XON/XOFF flow control (in Konsole for instance). The searching is…

Tools: Grep

OR $ grep “1\|2” 1.txt 1 2 $ grep -E “1|2” 1.txt 1 2 grep -E “^1$|2” 1.txt 1 2 grep -e 1 -e 2 1.txt 1 2 egrep “1|2” 1.txt 1 2 AND grep -E ‘1.*2’ 2.txt 1 2…