Linux/Unix Commands

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
  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

How to find files in Linux

Submitted by str on Tue, 09/12/2006 - 10:30

This is how to find files in Linux assuming you know some little detail about it.

To find "myfile.txt" in the current directory and any subdirectory under the current one.

find -name 'myfile.txt'

To find for any file named "myfile.txt" on the root and all subdirectories from the root.

find / -name 'myfile.txt'

To find for any file beginning with "file" in the current directory and any subdirectory.

find -name 'file*'

To find for any file that is larger then 1000k.

find -name '*' -size +1000k

Xaraya and Drupal Cron Setup

Submitted by str on Mon, 09/04/2006 - 10:48
  1. Create a text file

    vi crons.txt
  2. Write your cron job on the first line, it should read something like this:

    For Drupal:

    0 * * * * lynx

    For Xaraya:

    0 * * * * lynx

    Select one, as what you need; and line break is only at the end of the cron job.