How do I determine whether a variable called spath="/srv/www/cyberciti.biz/https" contains a substring called "cyberciti.biz"?
Read the full FAQ →

{ 3 comments }

How do I convert Epoch seconds to the current time under UNIX or Linux operating systems?
Read the full FAQ →

{ 0 comments }

How do I send or set arbitrary HTTP headers using nginx web server?
Read the full FAQ →

{ 0 comments }

How do I configure UNIX or Linux system to act as TCP port forwarder without using firewall? How do I install socat ( SOcket CAT ) multipurpose relay for bidirectional data transfer under Linux?
Read the full FAQ →

{ 2 comments }

How do I read a file field-by-field under UNIX / Linux / BSD Bash shell? My sample input data file is as follows:

device1,deviceType,major,minor,permissions
device2,deviceType,major,minor,permissions
...
....
.
deviceN,deviceTypeN,major,minor,permissions

For each line I need to construct and execute a shell command as follows:
/path/to/deviceMaker --context=$1 -m $permissions $device2 $deviceType $major $minor
Read the full FAQ →

{ 5 comments }

I'm getting this message in my /var/log/cron

Mar 12 09:20:01 server2 crond[1267]: (*system*) BAD FILE MODE (/etc/cron.d/vnstat)

How do I fix this problem under Fedora / CentO / RHEL or any Linux distro?
Read the full FAQ →

{ 1 comment }

I got new server and installed phpMyAdmin. But whenever I visit the phpmyadmin url it says:

Cannot load mysql extension. Please check your PHP configuration

How do I fix this problem under CentOS / RHEL / Fedora Linux Apache web server?
Read the full FAQ →

{ 0 comments }

nixCraft FAQ PDF Collection Now Available To All