The Power of Touch

The Power of Touch

If you are using Linux or some kind of Unix you may have noticed the command touch.

touch [-acm] [-r file] [-t [[CC]YY]MMDDhhmm[.SS]] file [...]

Mostly, it is used to create empty files, e.g. to create an empty file called new.txt:

touch new.txt

But it can do much more! Originally it was build to manipulate the modification and access time of files. E.g. if you want to trick make to recompile a project just touch a file:

touch project.c

Continue reading The Power of Touch

Facebooktwittergoogle_plusredditpinterestlinkedintumblrmailFacebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Flattr this!

By Πrate [CC-BY-SA-3.0 (http://creativecommons.org/licenses/by-sa/3.0)], via Wikimedia Commons

How long does it take to setup a Virtual Server?

For a new project we needed a new web server. Finally we had to choose between a dedicated server from a budget hosting company and a virtual web server from a reputable hoster.

Because we wanted to try something new, and we needed some features which a normal virtual web server does not provide. We decided to choose the budget company. Unfortunately it is situated in a neighbor state. This seems to be a bureaucratic obstacle. They could not accept our order. However, one day later they called to tell us it will be possible end of this year. We heard a lot of horror stories about this company. But after all their support was really professional and we will test it as soon as it possible.

So we went for the reputable hosting company based in our own country. Basically the same price but for a different product with less features. We have already other projects on their site so it should be no problem.
Continue reading How long does it take to setup a Virtual Server?

Facebooktwittergoogle_plusredditpinterestlinkedintumblrmailFacebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Flattr this!

SpamAssassin

SpamAssassin

If you have not known SpamAssassin yet

As it name might already say, it deals with spam (unwanted emails).

It can (and actually does quite often without your knowledge) run directly on your mail server. Which has the big advantage that the spam mails can be eliminated already on your server and you do not have to download it to your computer.

However, it is very flexible. e.g. you might also want to receive spam, which SpamAssassin has marked as such and move it manually to your trash can.

More about SpamAssassin at its homepage.

Facebooktwittergoogle_plusredditpinterestlinkedintumblrmailFacebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Flattr this!

grep as search function

use grep as search function

If you are looking for a file containing a certain string and want only the filenames as result, try:

grep -r -c theStringYouWantToFind * \
| grep -v :0

The first grep looks for your string theStringYouWantToFind in all files * and folders -r and returns how often -c the string has been found in each file.

The second grep shows only the files where the search result was higher then 0.

Facebooktwittergoogle_plusredditpinterestlinkedintumblrmailFacebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Flattr this!