How do I convert Epoch seconds to the current time under UNIX or Linux operating systems?
{ 0 comments }
FAQ tagged as:
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?
{ 5 comments }
I want to get an alert when my disk is full under UNIX and Mac OS X? How do I set a a specified threshold and run the script via cron?
{ 22 comments }
I type the following command:
ps -auxf | sort -nr -k 4 | head -10
And I get the output along with warning message:
Warning: bad syntax, perhaps a bogus ‘-’? See /usr/share/doc/procps-3.2.7/FAQ
How do I fix this problem?
{ 0 comments }
Q. When I run make install clean for php5-extensions port, I’m dumped with the following error:
=> Please update your ports tree and try again.
*** Error code 1
Stop in /usr/ports/sysutils/php5-posix.
*** Error code 1
How do I fix this problem?
{ 0 comments }
Q. How do I kill a process called inetd or foo and restart the same so that configuration file get updated?
A. Both UNIX and Linux supports POSIX reliable signals and POSIX real-time signals. Each signal has a current disposition, which determines how the process behaves when it is delivered the signal.
Generally following command is used
kill [...]
{ 0 comments }
Q. I’ve migrated from Windows NT to Linux workstation. Most documents refer to a command line shell. Can you explain me command line shell?
A. A shell allows you to type the commands such as date or clear. There are many shell available. BASH (bourne again shell) is default shell for most Linux distributions.
It also known [...]
{ 2 comments }