Disk management in Linux

Tuesday, April 20th, 2010

If you need to manage your disk or just check the disk space usage of a Linux powered computer, here are some suggestions for both graphical and command line interfaces. Desktop applications for disk management: File mangers: in a modern Linux desktop environment checking disk usage is a trivial task. The file ...

CLI search and replace in multiple files

Thursday, March 11th, 2010

Here is a quick tip about how to find and replace a text in multiple files, from CLI. In this example you have some text files (.txt) with urls like "http://example.com, http://another-example.com...". What you are trying to do is to replace all "http" references with "https". You can find all text files ...

PHP CLI increase memory limit

Saturday, October 3rd, 2009

When running a PHP script from command line interface (CLI), a higher memory limit may be required in order for the script to be successfully executed. This can be achieved using the "-d" or "--define" option in the command. According to the manual: This option allows you to set a custom ...