Friday, September 28, 2007

pwck, grpck

pwck for checking correctness of passwd file

grpck for checking correctness of group file

Thursday, September 27, 2007

copy files by date

scp files created in DIR_NAME on a particular date to TARGET_COMPUTER

find DIR_NAME -mtime "{DATE}" -exec scp {} TARGET_COMPUTER \;

process states

use top command to know the status of a process

state of the process:
S-sleeping,
R-running,
T-stopped or traced,
D-uniterruptable sleep,
Z=zombie.

driver module for NIC card

Get full details of driver module for NIC card using "ethtool eth#

eth# could be eth0 or eth1 or eth2 ...

Enhanced mem support upto 64 GB

PAE is an Intel-provided memory address extension that enables support of
greater than 4 GB of physical memory upto 64 GB for most 32-bit (IA-32) Intel Pentium
Pro and later platforms.

Details at http://en.wikipedia.org/wiki/Physical_Address_Extension

To execute a PAE-enabled kernel add
swiotlb=force
to bootloader file grub.conf and reboot.

Get day of a date

# date -d 2007-09-26 +%A

Wednesday, September 26, 2007

lshw command RHEL4

lshw" is a small tool to extract detailed information on the hardware configuration of the machine

rhel4 x86_64 'thru' apt-get

apt-get install for RHEL4 64 bit architecture

#rpm -ivh http://apt.sw.be/redhat/el4/en/x86_64/dag/RPMS/apt-0.5.15lorg3.2-1.el4.rf.x86_64.rpm

#vi /etc/apt/sources.list.d/os.list (add following mirrors)
repomd http://apt.sw.be redhat/el4/en/x86_64/dag/
repomd http://remi.collet.free.fr rpms/el4.x86_64/

#apt-get update
#apt-cache search pkg
#apt-get install pkg
#apt-get remove pkg

replace pkg by package name

php-dom

php dom module rpm for RHEL4 is implemented thru php-xml rpm

Thursday, September 20, 2007

Welcome Linux fans

I am an Open source fan and would love to enrich my knowledge with others' and others with mine thru this platform Post anything related to Linux..