« Posts tagged linux

*nix commands I can’t do without

Unix/Linux/*nix survival 101

Let me start with the obvious: I’m definitely not a unix guru by any means. I do however use it on a daily basis for basic build/development oriented tasks, so I know enough to get by. Since my friend just installed his first ever linux distribution (CentOS, Huzzah!), I thought I’d write something up on some common unix commands that help me get through the day.

grep [command flags] [search text] [filename]

grep (global | regular expression | print) is the file text search command. Give it a regular expression and it will print out…

[Read the rest]

Untar a file

Short and sweet:

tar -zxvf foo.tar

this will extract the tar’d files into the current working directory.

Most tar balls will ask you to do something like the following in order to build the contents for your target platform:

./configure
make
make install

Some builds will require some kind of different variant of the above – for example the apache mod_jk build will ask you to run the following ./configure command with some additional flags:


For the impatient Apache admins:
$> cd native
$> ./configure --with-apxs=/usr/sbin/apxs (or where ever the apxs/apxs2 is)
$>


[Read the rest]