[HOW TO] Hardware date and Time Using hwclock

hwclock is a program that runs under Linux and sets and queries the Hardware Clock, which is often called the Real Time Clock, RTC, or CMOS clock. This is the program that most Linux systems use to get the time from the Hardware Clock and set the System Time at boot time. This program works on ISA (Intel), Alpha, Sparc, and M68K systems with or without /dev/rtc. hwclock contains facilities for compensating...

[HOW TO] Find out the IP address assigned to eth0 and display IP only?

Q. I need to get the IP address assigned to eth0 Linux interface. How do I find out IP address only? I don't want other information displayed by Linux ifconfig command. A. For shell script or may be for other cause you may need the IP address only. You can use ifconfig command with grep and other filters. Default output of /sbin/ifconfig command is all interfaces: $ /sbin/ifconfigOutput: lo...

[HOW TO] view log files *.bz2

In a few time, you need to read log file format bz2. This article explain how to view a log file compressed in gnuzip format. Below is the command to view compressed file in bzip2 format instead :bzcat <.tar.bz2 or .bz2 compressed file>bzcat logfile.tar.bz2Again, if the log file is more then a screen full, use less to pause every screen full.bzcat logfile.tar.bz2 | lessAlternatively, use...

[HOW TO] Change SATA Hard Disk Mode from IDE to AHCI / RAID in BIOS after Installing Windows?

Today we are going to address a very common but one of the most irritating problems in this tutorial. Consider following scenario: You got a new computer system in which the SATA hard disk controller mode in BIOS settings was set to IDE ( or IDE Compatibility or Standard...