Posts Tagged ‘unix’

Get the system time from the terminal

Monday, January 30th, 2012 | Life, Tech

Wondering what your system date/time is? Easy!

date

It’s that obvious ;). Don’t mistake it with the command “time”, which won’t return you what you want.

i386 or x86_64 architecture?

Tuesday, January 24th, 2012 | Life, Tech

Wondering if you’re running i386 or x84_64? No problem, there is quick command which will return this information to you.

uname -i

Uncompress a .tar.gz file

Sunday, December 25th, 2011 | Life, Tech

Need to uncompress a .tar.gz file from the terminal? No problem.

tar xvzf filename.tar.gz

Installing Git on CentOS 4 cPanel

Sunday, December 25th, 2011 | Life, Tech

If you’re trying to install Git on CentOS with cPanel, you’ll probably be running into the problems where you can’t get hold the RPM because cPanel excludes all Perl modules. But that is a whole different problem to if you are running CentOS 4.

CentOS 4 doesn’t actually have the RPMs for Git at all. But luckily, it’s actually really easy to install on a cPanel server because cPanel should come will all the dependencies you need.

So, all you need to do is head over to the Git website, download the latest source (I tried it with v1.7.8.1) and compile it – no problems, no worries.

wget http://git-core.googlecode.com/files/git-1.7.8.1.tar.gz
tar xvzf git-1.7.8.1.tar.gz
cd git-1.7.8.1
./configure
make
make install