Linux / Unix Shell: Set Default Printer

by Vivek Gite on January 29, 2012 · 0 comments

How do I set default printer in my Bash shell under CentOS Linux or FreeBSD unix desktop operating systems?

{ 0 comments }

I‘ve installed memcached server under Linux but it is still showing old data. How do I flush the contents of a Memcached instance / server?

{ 1 comment }

Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL),CentOS and Scientific Linux (SL). How do I enable it under CentOS 6 or RHLE 6 server?

{ 0 comments }

How do I install memcached server under Red Hat Enterprise Linux 6.x server running on IBM hardware to cache query for my php based apps?

{ 2 comments }

Debian Linux Install MySQL Database Server

by Vivek Gite on January 23, 2012 · 1 comment

How do I install mysql database server under Debian Linux operating system running on HP server?

{ 1 comment }

I‘m using the date +’%D_%T’ to store Unix system date and time in a shell variable called $_now:

_now=”$(date +’%D_%T’)”
echo $_now

Outputs:
01/20/12_16:10:42

I’d like to replace / and : with _. I’m aware of the following sed command:

sed ‘s/\//_/g
> s/:/_/g’ <<<"$_now"

Outputs:
01_20_12_16_14_09

How do I specify two pattern within the same sed command to replace | and : with _ so that I can get output as 01_20_12_16_10_42?

{ 1 comment }

I made some changes to the /etc/squid/squid.conf file and issued the command /sbin/service squid restart. However, this command takes way too much time to restart the server. How do I tell squid to just reread the config file and apply new changes under Linux operating systems?

{ 2 comments }