" />

mikerochford.com Being technical

20Jan/110

Verifying your Linux Distro is 64bit.

I ran into a situation that I had to verify that I was running a 64bit os. Below is a quick command line check. It checks based on the current kernel loaded.


mrochford@host1:~$ fgrep CONFIG_64BIT /boot/config-`uname -r`
CONFIG_64BIT=y
mrochford@host1:~$

22Sep/100

Run a command randomly

I wanted to run a command randomly everyday. Here is a one liner cron that I created.


echo "" | at now + `awk -vu=30 'BEGIN { srand(); printf( "%0.0f\n", rand() * u ); }'` minutes

18Nov/090

Moving a directory from one host to another using tar over ssh

tar cf - * | ssh "(cd && tar xf -)"

Tagged as: No Comments