When I run the command mt -f /dev/st0 status, it produces /dev/st0:inappropriate ioctl for device. How do I fix this issue?
Thursday, December 8, 2011
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
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
#top
#ps
#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
#top
#ps
Wednesday, November 10, 2010
CIFS VFS: cifs_mount failed w/return code = -101
CIFS VFS: Error connecting to socket. Aborting operation
CIFS VFS: cifs_mount failed w/return code = -101
CIFS VFS: cifs_mount failed w/return code = -101
Wednesday, November 3, 2010
how to redirect strace to text file
how to redirect strace to text file
#strace -o filename command
For example:
strace -o strace1.txt ls
Tuesday, November 2, 2010
read and edit initrd image contents
1. Make temporary directory
#mkdir /tmp/initrd
2. Copy initrd image to destination directory
#cp /source/directory/initrd-version.img /tmp/initrd
3. unzip and use cpio
#gzip -dc initrd-2.6.18-164.6.1.el5.img | cpio -ivd
#mkdir /tmp/initrd
2. Copy initrd image to destination directory
#cp /source/directory/initrd-version.img /tmp/initrd
3. unzip and use cpio
#gzip -dc initrd-2.6.18-164.6.1.el5.img | cpio -ivd
Monday, November 1, 2010
Subscribe to:
Posts (Atom)