Saturday, December 17, 2011

when we mounting chroot /mnt/sysimage we are getting below error, chroot: cannot run command '/bin/sh' :No such file or directory

# ls /bin/sh 

If the command returns no file or directory again, then run

# ls /bin/bash

If this command returns the path of /bin/bash then recreate the symlink from /bin/sh to /bin/bash as such:

# ln -s /bin/sh /bin/bash

Thursday, December 8, 2011

Why do I get this error '/dev/st0: inappropriate ioctl for device'

When I run the command mt -f /dev/st0 status, it produces /dev/st0:inappropriate ioctl for device. How do I fix this issue?

Tuesday, December 6, 2011

How do I open doc files from command line in linux

Doc files can be opened following default tools.

1. gnome-open
2. oowriter
3. xdg-open

For example:

#gnome-open test.doc
#oowriter test1.doc
#xdg-open test2.doc

Tuesday, May 10, 2011

How to measure linux performance

Check with dd command in unix/linux systems... for example

#time dd if=/dev/zero of=/dev/null bs=1024k count=10000000
10000000+0 records in
10000000+0 records out
10485760000000 bytes (10 TB) copied, 359.587 seconds, 29.2 GB/s

real    5m59.615s
user    0m4.403s
sys     5m54.958s