By default, Ubuntu uses DHCP in order to get an IP address. If you need a static IP instead, you need to update your interface […]
File and Partition Recovery in Linux
If you need to recover files and/or partitions on Linux, TestDisk and PhotoRec may be useful. Both are very powerful and free tools that run […]
Mount a USB Hard Drive to Ubuntu Server
Unlike on the Ubuntu Desktop edition, USB devices are not automatically mounted on Ubuntu Server. You will have to do it manually. Luckily it’s quite […]
Cannot start DB2 instance after installation on Linux
You just installed DB2 as non-root user on Linux and when you attempt to start your instance with the db2start command, you get the following […]
Global substitute in vi
To search and replace a string globally in the vi editor, use the following syntax: :%s/search_string/replacement_string/g
dos2unix alternative
If you need to convert a DOS text file to a UNIX text file, and the dos2unix command is not available on your platform, you […]
Exclude files and directories from tar
The example below shows how you can exclude file “somefile.txt” and directory “subfolder6” from the tar command:
Single command line to tar and gzip
Although there are several ways to achieve this, the way I most often tar and gzip files using a single command line is as follows: […]
How to block ads on jailbroken iPhone/iPod Touch
If you have a jailbroken iPhone or iPod Touch, it is quite simple to block many advertisement sites from being displayed either in your Safari […]
Mount an ISO image
In order to mount an ISO image in Linux, so that you can access its contents, use the following command. You may need to change […]