Posts

change DATE on system by CLI mode

date -s "2 Nov 20011 20:30:00" or use --set in place of -s

trcshcsh shell for change password

[root@LDAP-Server openldap]# trcshcsh [root@LDAP-Server openldap]# foreach user (`cat users.list`) foreach? echo $user foreach? end [pankaj@LDAP-Server openldap]# foreach user ( `cat users.list` ) foreach? echo "============== Changing password for $user ===================" foreach? ldappasswd -s welcome -x -W -D "cn=Manager,dc=IBMISL" "uid=,ou=People,dc=IBMISL"=$user2ibm -x -W -D "cn=Manager,dc=IBMISL" "uid=$user,ou=People,dc=IBMISL" foreach? end

wget with username & password

wget https://axa.com/dl.php?file=/redhat/release_cds/RHEL-6. 1-RC-3/Server/ppc64/iso/RHEL6.1-20110510.1-Server-ppc64-DVD1.iso --user=davinder --password=P@ssw0rd123

Set default browser

http://support.mozilla.com/en-US/kb/How%20to%20make%20Firefox%20the%20default%20browser

Unable to create filesystem "getting error mkfs.ext3: inode_size (128) * inodes_count (0) too big for "

mkfs.ext3: inode_size (128) * inodes_count (0) too big for After you ran sudo fdisk /dev/sdb1 , and deleted the existing partitions by hitting the d key and creating a new one by hitting n, did you choose 'p' (primary) or 'e' (extended). If you chose 'e', re-run the command and choose 'p' instead. That should solve your problem.

Scan the LUNS

for HOST in `ls /sys/class/scsi_host/`; do echo "- - -" > /sys/class/scsi_host/$HOST/scan; done;

sdiff command rather than diff command

sdiff will give you more clear picture than diff command.