How to Reboot, Logout and Shutdown Linux from Command Line

Options to Shutdown Linux

All desktop environments has menu options to shut down and reboot machines. Most times there are also keyboard shortcuts that the X or the desktop support that allow you to shut down machines. The most commonly used keyboard shortcut is Ctrl+Alt+Del. Although these menu options and keyboard shortcuts makes it easier, it is beneficial to know the command line options…

How to Make a Perfect Manhattan

Manhattan Cocktail Drink

A Perfect Manhattan is a variation of the traditional Manhattan. The major difference being in the proportion of the ingredients.¬†A traditional Manhattan¬†drink normally has a 2 to 1 or even a 3 to 1 ratio of whiskey to the sweet vermouth. In a perfect Manhattan, an equal proportion of Whiskey and the sweet vermouth is used. The extra sweet vermouth…

How to Set Locale in Linux

linux locale command

Locales are used in Linux to specify the language and the character set that should be used by the operating system. It is important to set the locale correctly, so that text can be shown and translated correctly and the characters are rendered appropriately. It is especially important if the character set include non-ASCII characters. Usually you need to set…

How to Empty or Truncate Files in Linux

man page for truncate files command

Quite often it is possible to end up with large files, especially large log files on your system. Sometimes, you want to start over by emptying the file especially if you are trying to minimize disk space. This is especially true about log files, which often contains a large amount of outdated data. This is not just relegated to log…

Vodka Drinks: How to Make a Russian Cocktail

Russian Cocktail

Russian Cocktail or Russian Martini is a not so well-known drink made with Vodka and Gin. Some of the other creamier versions, such as White Russian or Black Russian are better known drinks with the ‘similar’ name Russian than the Russian cocktail. The Russian Cocktail is a clean clear drink with plenty of richness without being creamy. It is served…

How to Make a Blue Moon Cocktail

blue moon martini

Blue Moon Martini is a classic cocktail which blends the sourness of the lemon juice with the floral qualities of Creme de Violette. It is one of the earliest cocktails that uses the now not so popular violet liqueur. It is said to have originated at the Waldorf Astoria in New York around the 1940s. Creme de Violette is a…

SEO: How to Minimize Request Size in an HTTP Request

SEO: Request Size

Every page load on the web browser involves several connections to the server usually numbering in the hundreds, each of which ideally involves a request to the server and a response from the server. In order to speed up the page load times, you will need to reduce both the number of requests as well as the size of the…

How to List Disk Partitions in Linux from Command Line

Linux disk partitions

It is very likely that the hard disk or hard drive on your machine is divided into multiple partitions, as it allows for it to be accessed independently. There are several different reasons as to why you should partition your disk and it probably is already partitioned for you if you have not done it yourself. Many times you would…