Weblog Archives

You are currently browsing the archives for the Shell tag.

The If-Modified-Since HTTP Header

The “If-Modified-Since” HTTP header is sent from an agent (browser/bot) to the web server in order to know if the requested page has been changed since its last visit. The server responds with a 200 code (Ok) if the page has been modified or with a 304 code (Not modified) if the page has not [...]

System Information using the console

There are some really useful commands that can give information about the system directly from the console. Some of them are:

HTTP headers

Ever had the need to see what headers a remote web site sends back to you when you request a page with your browser?

Search for a string in multiple files

There are times you need to search for a particular string or pattern in multiple text files. This is when grep proves to be a really handy tool. Type:

Another way to create a text file

You can create a multiline text file without using any text editor. This is done like this:

Change the console resolution

The default console resolution can be changed by passing the “vga=value” parameter from GRUB. You can do this at the boot screen or by editing the /boot/grub/grub.conf file. For example:

Change console font in Fedora

Ever had the need to change the console font in fedora? I did because using the default font greek characters were completely unreadable. So, here is how to do it.

A powerful command, SED

SED is powerful. It can, besides many other things, substitute, append, remove characters or groups of characters or whole lines in a text file or the console output. You may find it difficult to use, but here is an excellent web page that will help you get going:

A mass downloader…

I was reading the Lynx man page the other day and I came across the –dump option. The output of: