Pages

Thursday, 24 September 2015

Linux Interview Questions and Answers for freshers pdf free download

6. How can we increase disk read performance in single command
blockdev command
This is sample output - yours may be different.
# Before test
$ blockdev --getra /dev/sdb
256
$ time dd if=/tmp/disk.iso of=/dev/null bs=256k
2549+1 records in
2549+1 records out
668360704 bytes (668 MB) copied, 6,84256 seconds, 97,7 MB/s

real 0m6.845s
user 0m0.004s
sys 0m0.865s

# After test
$ blockdev --setra 1024 /dev/sdb

$ time dd if=/tmp/disk.iso of=/dev/null bs=256k
2435+1 records in
2435+1 records out
638390272 bytes (638 MB) copied, 0,364251 seconds, 1,8 GB/s

real 0m0.370s
user 0m0.001s
sys 0m0.370s

7. Command used to lock user password
usermod -L username

8. How many default number of Shells available and what are their names?
SH, BASH, CSH, TCSH, NOLOGIN, KSH

9. What is the path of network (ethX) configuration files
/etc/sysconfig/network-scripts/ethX

10. How can we change speed and make full duplex settings for eth0
We can do this with below given 2 methods:
ethtool -s eth0 speed 100 duplex full
ethtool -s eth0 speed 10 duplex half
OR
mii-tool -F 100baseTx-HD
mii-tool -F 10baseT-HD

More Questions & Answers:-
Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 
Page10 Page11

No comments:

Post a Comment