Interview Questions and Answers Part-5


http://ark-library.blogspot.in/2015/08/index-of-redhat-linux-certified_28.html





 

1. /dev is the location for


1. Device drivers
2. Device files.
3. Kernel modules

2. Which daemon is necessary for NFS

1. nfsd
2. mountd
3. lockd
4. statd

3. Which command is used to create the snap of logical volume

1. lvcreate
2. lvchange
3. lvdisplay
4. lvscan

4. Which file is used for configurations of DNS servers ip in client machine

1. /etc/resolv.conf
2. /etc/resolve.conf
3. /etc/dns/resolv.conf
4. /etc/dnsclinents.conf

5. Command used to view all the mounted partitions along with accessible permissions

1. df h
2. mounts
3. cat /proc/mounts
4. fdisk –l

6. Configuration file to set runlevels

1. /etc/inittab
2. /etc/init/rc.d

7. Which command shows partition id and type in unix

1. fdisk -l
2. df -h
3. /proc/part

8. Command used to show default routing table

1. netstat -nr
2. netstat –in

9. Default shell in linux

1. Bash
2. Csh

10. Which file is responsible to allow host for remote access

1. /etc/hosts
2. /etc/host
3. /etc/hosts.allow
4. /etc/hosts.deny

11. Command to see last 5 commands run from history

1. last
2. history -5

12. Command to modify the secondary group for existing user in Rhel 5

1. useradd
2. usermod
3. useradd –g
4. modprobe

13. You have a user user1 and you want to add him to sysusers as a secondary group of users

1. usermod –G sysusers user1
2. usermod –g sysusers user1
3. usermod –G sysusers user1

14. The file which can be used to link across filesystems

1. Softlink
2. Hardlink
3. FIFO
4. Socket

15. Command to display the Shell Environment variables in linux

1. shell
2. env
3. echo set
4. bash

16. How to change a runlevel of a service If you want to forcefully umount the File system directory /data of /dev/sdb1

1. runlevel
2. chkconfig
3. service
4. all of the above

17. You want to forcefully umount the Filesystem directory /data of /dev/sdb1

1. fuser -l /data
2. fuser –l /data /dev/sdb1
3. umount –f /data
4. fuser –km /data
5. none

18. Which option is used with e2fsck utility option used to autorepair the file system without prompting

1. e2fsck –c
2. e2fsck –n
3. e2fsck –p
4. e2fsck –r


ANSWER IN BELOW FORMAT :
Ques No. Answer
1 2
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

No comments:

Post a Comment