Day: January 8, 2010

du one liner

Here is a CLI du command one liner to list all of the files and folders in a directory nicely sorted by size. This is handy for when someones /var or /usr directory is full and causing issues on the server; du -sk ./* | sort -nr | awk ‘BEGIN{ pref[1]=”K”; pref[2]=”M”; pref[3]=”G”;} { total…


Clone Your Ubuntu installation

From ubuntugeek.com If you want to create a system that is similar to a different system you have already set up, it can be difficult to remember each and every package you had installed.This method works best when you are exporting to and importing from the same distribution and, specifically, the same release for example,…


Domain Expiration Check Shell Script

From www.cyberciti.biz I’ve already written about a shell script to check / monitor domain renew / expiration date here. Now I’ve modified matt’s domain-check script to support additional C/TLDs .in, .biz, .org and .info domains. I’ve also added 5 seconds delay to avoid whois server rejecting query. This script checks to see if a domain…


Shutdown via CLI

To shutdown linux from the command line, open an ssh connection to the server and by adding this function to roots’ .bashrc file vim /root/.bashrc file insert quit () { poweroff -d } save and quit the file. Now all you have to do is type quit from the command line and voila! server is…


Transfer files via netcat

From; http://www.linux.com/archive/articles/114093 http://www.g-loaded.eu/2006/11/06/netcat-a-couple-of-useful-examples/ In the simplest terms, netcat is a utility that reads and writes data across the network. The netcat utility, or just nc, works on the same principle as the cat utility, but over the network. This can be very useful in a number of situations, such as testing remote services, or for…


Free VPN access to the web

From itshidden.com ItsHidden.com is the ultimate FREE surfing privacy service on the Internet with huge capacity and no complicated software to install, you already have everything you need on your computer right now! We are now also proud to launch our new paid service for more demanding uses! * ItsHidden.com is fast and reliable with…


Linux Shtuff Posts

Hi, When I started this blog, I started it for my own benefit so I could remember those little tweaks or fixes which escape memory at crucial times when a needed repair or a new issue arose that I had never dealt with before. When I would research these issues, I would come across great…


How to choose a Linux distribution

From www.ghacks.net The new year is here and you have made a resolution to give Linux a try. A noble resolution and one that will be met, initially, with much confusion. Why? Linux isn’t like Windows where your choice is limited to a single release with different features (depending upon how much you want to…