Get the disk health status with SMART monitor tools on Debian and Ubuntu Linux

Disk SMART status

Every current disk includes a built-in monitoring feature known as SMART that keeps track of faults. On Linux, there is a software package called smartmontools that may be used to query the SMART status of the disk to see if it will fail soon. Installation apt-get install smartmontools Usage First we need to know the ... Read more

Get a list of all virtual hosts which are defined in all apache configuration files

Have you ever looked in the apache config files to see where a website's virtual host is defined? The apache2ctl script has a useful option that could come in good here. When you execute the command, it should look like this: apache2ctl -S You'll obtain a list of all virtual hosts and default servers in ... Read more

Linux Basics: The gunzip command explained (with examples)

Linux Gunzip Examples

The gunzip command is a widely used command for uncompressing files which are made using the gzip utility. It decompresses files with the.gz or .tgz file extension. The command removes the compressed file. After decompression, the files retain their original extension. Gzip is a popular file compression algorithm that keeps the file’s original mode, ownership, ... Read more

How to download and extract a .deb package on Ubuntu or Debian Linux

Download .deb package

Sometimes you require a certain file from a Debian .deb package. For example, because you accidentally deleted a file. Or because the package's installation is faulty and it can't be restored without first adding the missing file. This FAQ explains how to extract the contents of a.deb file downloaded from the Debian or Ubuntu repository. ... Read more