Recover or Reinstall the GRUB Bootloader

If GRUB is overwritten or removed after installing another operating system, you can usually restore it from a Linux live USB or CD. Boot into the live Linux environment and open a terminal. In this example, the installed Linux root partition is /dev/sda2 and GRUB will be installed to /dev/sda. Change these device names to … Read more

Download Files from a Directory with wget

To download all files in the directory using WGET in Linux, the following command can be used wget -H -r –level=1 -k -p http://www.tldp.org/HOWTO/Serial-Programming-HOWTO/ -r, –recursive Specify recursive download. -l, –level=NUMBER Maximum recursion depth (inf or 0 for infinite). -k, –convert-links Make links in downloaded HTML point to local files. -p, –page-requisites Get all images, … Read more

Adding sequence to a table

This TIP can be used to add a sequence in a column for a table The syntax for creating a sequence is  CREATE SEQUENCE sequence_name    MINVALUE value    MAXVALUE value    START WITH value    INCREMENT BY value    CACHE value; The steps are –create table with a column create table tickets3(s_no  integer); — create a sequence , Option 1CREATE … Read more

How to use the copy command in Oracle SQL

How to use the copy command in Oracle SQL Syntax: COPY {FROM database | TO database | FROM database TO database} {APPEND|CREATE|INSERT|REPLACE} destination_table [(column, column, column, …)]USING query where database has the following syntax: username[/password]@connect_identifier Copies data from a query to a table in a local or remote database. COPY supports the following datatypes:     … Read more

Difference between UNIX and LINUX

Most of you might have wondered what the difference between UNIX and Linux is. Here is some of the useful information.   UNIX Vs Linux.   Most common difference: UNIX is propriety system while Linux is an       Open Source system.   2.      Technical a)      In UNIX ‘Development’ is targeted toward specific audience and platform. … Read more

Establishing LAN among Linux machines

03uAIg.html Linux Sharing Service: NFS Disclaimer: 1.Tried and tested on Slackware 10.0. 2.The configuration specified in this article is for LAN sharing between two Linux machines. For more than two machines you will have to make changes accordingly. On a network with Linux and Unix computers, the two common sharing services are the Network File … Read more

Easy And Better Ways To Install Programs

EASY AND BETTER WAYS TO INSTALL PROGRAMS Packages come in two formats in Gnu/Linux rpm packages. Source packages. Its not always easy and convenient to install programs either from source or from already compiled rpm packages. Installing with rpm is easier since they are precompiled and they take less time but they are version and … Read more

Reading a foreign file system

File systems are defined in the kernel. The kernel supports many file systems, but they need to be compiled in, or compiled as a module. When you compile a file system in the kernel, all you need to do is use mount with the -t option and the right file system type. If you have … Read more