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