Convert unix timestamp to date
# date -d @1221256800 “+%Y-%m-%d %T” 2008-09-13 00:00:00 Convert a date (YYYYMMDD) to unix timestamp # date -d “20080913” +%s 1221256800
A chronological documentation test project, nothing serious, really!
# date -d @1221256800 “+%Y-%m-%d %T” 2008-09-13 00:00:00 Convert a date (YYYYMMDD) to unix timestamp # date -d “20080913” +%s 1221256800
This post describes how to disable IPv6 on a Redhat (RHEL5) installation. I haven’t had the time to test it on other version of Redhat. Edit /etc/sysconfig/network and change NETWORKING_IPV6=no Edit /etc/modprobe.conf and add these lines alias net-pf-10 off alias ipv6 off Stop the ipv6tables service # service ip6tables stop Disable the ipv6tables service # […]
This post describes how to allow users in the wheel group to use the sudo command without being prompted for the root password Edit /etc/sudoers Uncomment the line %WHEEL ALL=(ALL) NOPASSWD: ALL Add a user to the wheel group # gpasswd -a username wheel This does also work on Fedora and other Redhat based distributions.
man – an interface to the on-line reference manuals. man is the system’s manual pager. Each page argument given to man is normally the name of a program, utility or function. The manual page associated with each of these arguments is then found and displayed. A section, if provided, will direct man to look only […]
By default after a kernel panic Linux just sits there and waits for a user to hit the restart button. That can be a bad thing if it’s a remote server. Checking if enabled To check if its enabled try this: # cat /proc/sys/kernel/panic 0 The returned 0 is the time the kernel will wait […]