≡ Menu

egrep command

Debian Linux: Upgrade v6.0.x Squeeze to v7.0.0 Wheezy

Recently Debian Linux version 7.0 ("Wheezy") released. This version shipped with many new features - improvements to multimedia support, improved security through hardening flags and the OpenStack suite and the Xen Cloud Platform to name a few. How do I upgrades from Debian Linux version 6.x.x (squeeze) to the latest version 7.0.0 wheezy using command line options? How do I upgrade my Debian 6.x server to 7.x over the ssh session?
[click to continue…]

iptables: Read a List of IP Address From File And Block

How do I read a list of ip address (subnets) using a text file and block all of them using Linux iptables command?
[click to continue…]

Linux Create A Bootable USB Pen

How do I create a bootable USB pen drive to start my CentOS / Fedora Linux? How do I create a bootable USB flash pen for installation of Linux, and for creation of rescue and other special-purpose boot disks using command line options?
[click to continue…]

Linux: Parse an IP Address

How do I parse my Linux servers IP address using a Bash shell?
[click to continue…]

FreeBSD: pkg_version: corrupted record (pkgdep line without argument), ignoring

I'm using portmaster to manage my ports without external databases. However, when I run the try to run pkg_version -l '< ', I'm getting the following error:

pkg_version: corrupted record (pkgdep line without argument), ignoring

How do I fix this problem?
[click to continue…]

Troubleshooting: Apache Webserver Will Not Restart / Start

My CentOS Apache 2 (httpd) webserver will not start. It was working fine but I made few changes to httpd.conf and it is not restarting. What are some things to check in order to solve my issues?
[click to continue…]

Linux SATA Drive is Being Displayed as /dev/hda Instead Of /dev/sda

Q. My SATA drive is being displayed as /dev/hda instead of /dev/sda. How do I fix this problem and make sure I get /dev/sda and speed of SATA under Linux operating systems?
[click to continue…]

UNIX / Linux Command To Check Existing Groups and Users

How do I check the existing Linux / UNIX users and groups under Linux operating system?
[click to continue…]

Linux / UNIX View Only Configuration File Directives ( Uncommented Lines of a Config File )

Most Linux and UNIX-like system configuration files are documented using comments, but some time I just need to see line of configuration text in a config file. How can I view just the uncommented configuration file directives from squid.conf or httpd.conf file? How can I strip out comments and blank lines on a Linux or Unix-like systems?
[click to continue…]

How To Tell If Your Linux Server Uses xinetd OR inetd sever

Q. How to tell if my Linux server is using xinetd or inetd service?
[click to continue…]