• warning: Creating default object from empty value in /web/sites/ on line 33.
  • warning: Declaration of views_handler_filter::options_validate(&$form, &$form_state) should be compatible with views_handler::options_validate($form, &$form_state) in /web/sites/ on line 0.
  • warning: Declaration of views_handler_filter::options_submit(&$form, &$form_state) should be compatible with views_handler::options_submit($form, &$form_state) in /web/sites/ on line 0.
  • warning: Declaration of views_plugin_style_default::options(&$options) should be compatible with views_object::options() in /web/sites/ on line 0.
  • warning: Declaration of views_plugin_row::options_validate($form, &$form_state) should be compatible with views_plugin::options_validate(&$form, &$form_state) in /web/sites/ on line 0.
  • warning: Declaration of views_plugin_row::options_submit($form, &$form_state) should be compatible with views_plugin::options_submit(&$form, &$form_state) in /web/sites/ on line 0.

Check file fragmentation in Linux

All file systems get fragmented. some more then others.

To check file fragmentation of a file under linux you use the program filefrag



Show file fragmentation of a file

Example of how the output may be

> filefrag 16 extents found

If you want more information you can add the verbose (-v) flag


Create and use an encrypted volume

This little guide will go through how to create and encrypted volume on linux. It assumes that you already have the programs necessary. Many distributions already have them installed. If you system is using apt package management you can install the necessary tools with

apt-get install cryptsetup

In this example we assume that the volume we want to encrypt is /dev/sdc, a partition sdc1 will be create were we then create a file system on.


Convert Windows text file to Linux/Unix using Perl

When writing text file on Windows and then opening them in Linux/Unix you will notice that there are some strange characters at the end of every line.

That is because windows using two characthers for the "return" character. This was useful in the DOS day. But today it is useless but windows is still using it. Nobody has given me a good reason why.

Anyway, This can be quite annoying when working on multiple platforms and if you are on Linux/Unix and have a file saved on Windows and need to convert it.

This can easily be done with a small trick with perl


Set harddrive standby timeout

If your harddrives are idle a lot it is good practice to let them enter standby mode. both to save some energy but also to protect the harddrives of one if its most dangerous enemies. Heat!

To set the harddrive idle time you need to have the command hdparm.


( Try Multi Commander, A file manager for professionals )
Syndicate content

Copyright (c) 2015 - Mathias Svensson