≡ Menu

man page

Linux Date Command: Convert Named Stats Dump Date

The rndc stats commands created /var/named/chroot/var/named/data/named_stats.txt file under RHEL 5.x or CentOS 5.x BIND 9 server. However, date is not is correct format. The date is in the following format:
grep 'Dump' /var/named/chroot/var/named/data/named_stats.txt
outputs:

+++ Statistics Dump +++ (1263408025)
--- Statistics Dump --- (1263408025)
+++ Statistics Dump +++ (1263408071)
--- Statistics Dump --- (1263408071)
+++ Statistics Dump +++ (1268304218)
--- Statistics Dump --- (1268304218)
+++ Statistics Dump +++ (1268304248)
--- Statistics Dump --- (1268304248)

How do I convert date (e.g., 1263408025) in a human readable format?
[click to continue…]

Truncate Large Text File in UNIX / Linux

How do I truncate or shrink large text file under UNIX / Linux operating systems?
[click to continue…]

Linux/UNIX: Configure OpenSSH To Listen On an IPv6 Address

How do I enable OpenSSH SSH server to listen on an IPv6 address under Linux or UNIX operating systems?
[click to continue…]

Linux iptables: Port Redirection Example

How do I redirect 80 port to 8123 using iptables?
[click to continue…]

Ksh Read a File Line By Line ( UNIX Scripting )

How do I read a file line by line using KSH shell scripting under UNIX like operating systems?
[click to continue…]

UNIX / Linux: Find All Empty Files

How do I find out all empty file under Linux and UNIX operating systems?
[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…]

How To Extract a Single File / Directory from Tarball Archive

Q. How do I extract a single file or directory form a tarball under UNIX / Linux shell prompt? How do I restore a single file from /dev/st0 tape device?
[click to continue…]

UNIX / Linux Find File Owner Name

Q. How do I find out the name of file / directory owner under UNIX / Linux operating systems?
[click to continue…]

Reconfiguring FreeBSD Ports – Remove OPTIONS config For Any Port

While building Apache port I was presented with a menu from which I selected certain build options. However, certain option giving out error as follows:
===> apache-2.2.8 mod_mem_cache requires WITH_THREADS.
*** Error code 1

All I wanted to do is disable mod_mem_cache and build Apache again. Unfortunately, it is not allowing me to clear out configuration option. How do I remove all selected options and allow me to start over again?
[click to continue…]