Linux

Create random filenames with random content

I wanted to test filesystem checking on a large XFS filesystem and needed to fill the filesystem. The task was to create files on random with different file size and names placed in different folders. The script I found on the Internet does exactly that #!/bin/bash # Created by Ben Okopnik on Wed Jul 16 […]

Read More
Linux

Give DD a progress bar

This is a short description on how you can get a progress bar to your dd command or other commands as well using the command pv. pv is a shell pipeline element to meter data passing through and can be installed using aptitude in Ubuntu. # aptitude install pv As an example I create a […]

Read More
Linux

Blocking Unwanted Connections with a Hosts File

You can use a HOSTS file to block ads, banners, 3rd party Cookies, 3rd party page counters, web bugs, and even most hijackers. This is accomplished by blocking the connection(s) that supplies these little gems. This is a simple script that downloads a new hosts file for your operating system and redirects all requests for […]

Read More