Sometimes it can be useful with a simple CGI to show the contents of a directory, or run a command with some parameters. If you are a programmer you probably will think at a elegant and practical solutions in Java, Ruby or PHP, but for a system administrator may be convenient to make a simple […]
Record your terminal with Script
The script command is part of the util-linux-ng package and so should be available already installed in any distribution, or you should be able to easily add it. What’s script ? From his man page: Script makes a typescript of everything printed on your terminal. It is useful for students who need a hardcopy […]
Pcal – calendar from command line
Thanks to a message on identi.ca I ve saw this program usable from the command line that allows you to easily create custom desk calendars, marked with the dates that interest you and with the ability to add pictures to one (or more) special days. I’m talking of pcal shipped with anothe calendar programming lcal […]
6 Tricks with awk
Awk has always been for me a source of great hatred and love, isan incredibly powerful command with which it is possible to build real programs. In this article I will give you 6 examples ready for use with your preferred terminal. AWK is a data driven programming language designed for processing text-based data, either in files or data streams. It is an example of a programming language that extensively uses the string datatype, associative arrays (that is, arrays […]
Open files in Linux
I had recently problems with servers running application server Java and suddenly began to see strange errors like “broken pipe” or exausted resources, this is often due to the high number of open files that a modern server can bind especially compared to the default Linux systems that is still standing at 1024. Let’s see […]