How to Update GRUB

Submitted by str on Sun, 07/26/2015 - 11:07

Sometimes, after updating my Ubuntu Server or running sudo apt-get -f install, I have a message: The link /vmlinuz.old is a damaged link and you may need to re-run your boot loader[grub] To solve this warning, run this command: sudo update-grub

How to Install Google Chrome in Ubuntu Using Terminal

Submitted by str on Thu, 07/16/2015 - 14:12

By default, Google Chrome is not installed in Linux. Here's how to install:

  1. Download the latest current stable version of Google Chrome (64 bit)
  2. wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  3. Install
  4. sudo dpkg -i google-chrome-stable_current_amd64.deb

In case of any error in the installation, run also this command: sudo apt-get -f install

Fast Way of Deleting Large Number of Files

Submitted by str on Tue, 08/28/2012 - 11:23

In some cases that you have hundred of thousands or even million of files in a directory that you want to delete, you will encounter this error:
/bin/rm: Argument list too long.

The problem is when you type command like rm -rf *, * is replaced with the list of all files, and usually the memory buffer allocated to shell is small to accomodate let's say million of file names.

To solve this issue, I usually use this simple command:

find . -type f -delete

How to Know the Make of Your Retina Display: Samsung or LG?

Submitted by str on Mon, 08/27/2012 - 12:34

Image retention and burn-in issues are widely <a href="https://discussions.apple.com/message/18669644#18669644">reported</a&gt; with the new Retina displays of MacBook Pro. Generally, it seems happening with displays manufactured by LG. While displays made by Samsung are OK. Samsung display are also brighter, and seem to display colors with more accuracy.

How to know the make of your display installed in your MacBook Pro?