Ads by Google
Get This Adsense Pop-up Window


Friday 18 March 2016

Redhat Linux 9.0 Admin upwork Test Answer

1. Which of the following files contains the IP address of the gateway?
Answers:
  1. /etc/sysconfig/network
  2. /etc/resolv.conf
  3. /etc/sysconfig/network-scripts/ifcfg-eth0
  4. /etc/sysconfig/network-scripts/gateway
2. Which of the following commands will format the /test partition?
Answers:
  1. ext2online -j /test
  2. mke2fs /test
  3. mke2fs -j /test
  4. ext2online /test
3. Which command is used to set a quota for user Debbie. The path is /test, the size of quota is 5MB and soft limit is 4MB. The user is not allowed to use more than 5MB.
Answers:
  1. setquota Debbie 4MB 5MB 0 0 /test
  2. setquota Debbie 4096 5120 0 0 /test
  3. setquota Debbie 0 0 4096 5120 /test
  4. setquota -s Debbie 4096 5120 0 0 /test
4. Which is the correct command to start the daemon of the printserver?
Answers:
  1. service printer start
  2. service cupsd start
  3. service cupd start
  4. service cups start
5. What problems will be faced during reboot, when the permissions of /tmp are 655, and the default permissions are 1777?
Answers:
  1. Xserver will not start
  2. System will not boot properly
  3. Device driver will not work
  4. man pages will not work
6. Which entry is not required in /etc/sysconfig/network ?
Answers:
  1. NETWORKING=YES
  2. HOSTNAME=stationx.example.com
  3. NAMESERVER=192.168.0.x
  4. NISDOMAIN=rhct
7. In which mode can LVM be created during installation?
Answers:
  1. CUI only
  2. GUI only
  3. Both CUI and GUI
  4. None of the above
8. Which entry does not belong to ifcfg-eth0 ?
Answers:
  1. DEVICE=eth0
  2. BOOTPROTO= static/dhcp
  3. HOSTNAME=stationx.example.com
  4. IPADDR=192.168.0.x
  5. ONBOOT=yes
9. Which statement correctly creates a Volume Group, named vg0, when there are two partitions /dev/hda6 and /dev/hda7 of 150 MB each, totalling 300MB?
Answers:
  1. vgcreate -n vg0 /dev/hda6 /dev/hda7
  2. vgcreate -l vg0 /dev/hda6 /dev/hda7
  3. vgcreate vg1 /dev/hda6 /dev/hda7
  4. vgcreate vg0 /dev/hda6 /dev/hda7
10. How can ext3 filesystem be converted to ext2 filesystem if the partition is /dev/hda7 ?
Answers:
  1. tune2fs -O ^has_journal /dev/hda7
  2. tune2fs -o ^has_journal /dev/hda7
  3. tune2fs -a ^has_journal /dev/hda7
  4. tune2fs -A ^hasjournal /dev/hda7
11. What is proc file system?
Answers:
  1. Physical partition created during installation
  2. Virtual file system
  3. It is the swap partition
  4. None of these
12. A new swap partition is created and entered correctly in /etc/fstab. How will it be mounted?
Answers:
  1. # swapon -s
  2. # swapon -a
  3. # swapon -m
  4. # swapon -A
13. What does the entry id:3:initdefault: define in the /etc/inittab file?
Answers:
  1. The system will boot by default in 3rd run level
  2. The system will boot by default in graphical mode
  3. The system will boot by default in single user run level
  4. The system will boot but not in 3rd run level
14. What is the correct format for kickstart installation through NFS, when the NFS IP is 192.168.0.254, and the file path on the server is /kickstart/ks.cfg ?
Answers:
  1. Linux kickstart=nfs:192.168.0.254/kickstart/ks.cfg
  2. Linux ks=nfs:192.168.0.254/kickstart/ks.cfg
  3. linux ks=nfs:192.168.0.254:/kickstart/ks.cfg
  4. linux kickstart=nfs:192.168.0.254:/kickstart/ks.cfg
15. How much space does the IPL (Initial Program Loader) take on the disk?
Answers:
  1. 511 MB
  2. 512 Bytes
  3. 512 MB
  4. 446 Bytes
16. How should a raid device /dev/md0, with level 0, and devices /dev/hda6, /dev/hda7 be created?
Answers:
  1. mdadm -c /dev/md0 -l 0 -n 2 /dev/hda{6,7}
  2. mdadm -c /dev/md0 -l 0 -n 2 /dev/hda6 /dev/hda7
  3. mdadm -C /dev/md0 -l 0 -n 2 /dev/hda6 /dev/hda7
  4. mdadm -C /dev/md0 -L 0 -n 2 /dev/hda{6,7}
17. The command which configures devices is:
Answers:
  1. kudzu
  2. netconfig
  3. kudu
  4. netstat
18. Which of the following commands enables ip forwarding permanently?
Answers:
  1. Echo “1” > /proc/sys/net/ipv4/ip_forward
  2. Open the file /etc/sysctl.conf and insert net.ipv4.ip_forward=1 in the file
  3. Open the file /etc/sysctl.conf and insert net.ipv4_forward=0 in the file
  4. Open the file /etc/sysctl.conf and insert net.ipv4.icmp_echo_ignore_all=1 in the file
19. How is an LVM of 200MB named lv0 created within the volume group vg0?
Answers:
  1. lvcreate -l 200MB lv0 vg0
  2. lvcreate -L 200MB lv0 vg1
  3. lvcreate -L 200MB lv0 vg0
  4. lvcreate -L 200MB vg0 lv0
20. Which of the following repquota command option is used to Report all quotas, even if there is no usage?
Answers:
  1. -a
  2. -v
  3. -t
  4. -n
21. Which file contains the configuration of the network card?
Answers:
  1. /etc/sysconfig/network-scripts/ifcfg-eth
  2. /etc/sysconfig/hwdata
  3. /etc/sysconfig/ntwork-scripts/hwdata
  4. /proc/sys/net/hwdata
22. What types of files does /proc filesystem consist of?
Answers:
  1. Pseudo Files
  2. System Binaries
  3. Temporary Files
  4. User Home Directories
23. A new partition /dev/hda6 has been created. How will it be formatted with ext3 file system (one block=1024 bytes, inode size=one inode every 2 blocks)?
Answers:
  1. mke2fs -b 2048 -i 2048 -j /dev/hda6
  2. mke2fs -b 1024 -i 1024 -j /dev/hda6
  3. mke2fs -b 1024 -i 2048 -j /dev/hda6
  4. mke2fs -b 2048 -i 4096 -j /dev/hda6
24. How should a cron job that prints “hello” every morning at 4:02am, be set up?
Answers:
  1. # crontab -e and insert into 02 04 * * * print “hello”
  2. # crontab -e and insert 02 04 * * * echo “hello”
  3. # crontab -e and insert into 02 04 * * * echo “hello”
  4. # crontab -e and insert into 02 4 * * * print “hello”
25. When the system is started, it shows Redhat Enterprise Linux. When the enter key is pressed, it shows the grub prompt. The present working directory is either / or /boot. How can you find the /boot partition at the grub prompt?
Answers:
  1. GRUB> find /boot/grub.conf
  2. GRUB> find /grub/grub.conf
  3. GRUB> find /grub/stage1
  4. GRUB> find /grub/stage2
26. During Linux installation, in which mode can RAID be created?
Answers:
  1. Only in graphical mode
  2. Only in CUI mode
  3. Both graphical and CUI mode
  4. None of the above
27. In which of the following locations are boot messages stored?
Answers:
  1. /var/log/dmessg
  2. /var/lag/dmesg
  3. /var/log/dmesg
  4. /var/log/messages
28. Which entry is specified in /etc/resolv.conf ?
Answers:
  1. IP address of own machine
  2. Nameserver IP address
  3. Router machine IP
  4. NIS domain IP
29. How can kernel-2.6.9-5 rpm be installed?
Answers:
  1. # rpm -U kernel-2.6.9-5.rpm
  2. # rpm -ivh kernel-2.6.9-5.rpm
  3. # rpm -IVH kernel-2.6.9-5.rpm
  4. # rpm -install kernel-2.6.9-5.rpm
30. What should be the command to view the details of raid device /dev/md0 ?
Answers:
  1. # mdadm –detail /dev/md0
  2. # mdadm -s /dev/md0
  3. # cat /proc/mdstat
  4. # mdstat –details /dev/md0
31. When VGs (Volume Groups) are created, where are the VG information files stored?
Answers:
  1. /etc/lvm/
  2. /etc/lvm/backup/
  3. /tmp/lvm/backup
  4. /etc/
32. Through which of the following commands can a corrupted initrd be recreated?
Answers:
  1. mkinitrd -f -v /boot/initrd-$(uname -r)img $(uname -r)
  2. mkinitrd -f -v /boot/initrd-$(uname -r).img $(uname -r)
  3. mkinitrd -f -v /boot/initrd-$(uname -r).EL $(uname -r)
  4. mkinitrd -f -v /boot/initrd-$(uname -r)img $(uname -r).EL
33. What should be done to extend a 200MB LVM named lv0 by 50MB. A volume group named vg0 of 100MB is available free, lv0 is mounted on /test ?
Answers:
  1. lvextend -L 50MB lv0 vg0
  2. lvextend -l 50MB lv0
  3. lvextend -I 50MB lv0 vg0
  4. lvextend -L 50MB lv0
34. How can you tell which RPM the /etc/inittab file belongs to?
Answers:
  1. rpm -ql /etc/initab
  2. rpm -qf /etc/inittab
  3. rpm -i /etc/inittab
  4. rpm -e /etc/inittab
35. There are 3 disks of 1 GB each, with mean total 3 GB. If a raid level 5 is implemented, what will be the size of the raid device?
Answers:
  1. 3 GB
  2. 2 GB
  3. 21/2 GB
  4. 1 GB
36. How can ext2 filesystem be converted to ext3 filesystem if the partition is /dev/hda7 ?
Answers:
  1. tune2fs -j /dev/hda7
  2. dump2fs -j /dev/hda7
  3. tune2fs -f /dev/hda7
  4. mke2fs -j /dev/hda7
37. Which of the following denotes Raid level 0?
Answers:
  1. Striping with parity
  2. Striping with mirroring
  3. Striping
  4. None of these
38. While troubleshooting Xserver, which of the following steps is not required?
Answers:
  1. service xfs restart
  2. system-config-display
  3. check permissions of /tmp
  4. check /usr permissions
39. What will be the behavior of the following command:
# echo “1” > /proc/sys/net/ipv4/ip_forward
Answers:
  1. Enables ip_forwarding permanently
  2. Enables ip_forwarding temporarily
  3. Disables ip_forwarding permanently
  4. Disables ip_forwarding temporarily
40. Can the size of LVM be decreased?
Answers:
  1. Yes
  2. No
41. Can / partition on lvm device be installed during installation?
Answers:
  1. Yes, it can be installed
  2. This facility is only available in rhel3.0
  3. / can install only one physical partition
  4. None of these
42. What is the path of rc.sysinit?
Answers:
  1. /etc/rc.d/rc.sysinit
  2. /etc/rc/rc.sysinit
  3. /etc/init.d/rc.sysinit
43. Sticky bit and suid are to be set on /home/test. Which command should be used to give rwx permissions to each user, group and others?
Answers:
  1. chmod 1777 /home/test
  2. chmod 3777 /etc/test
  3. chmod 3777 /home/test
  4. chmod 3777 /homes/test
44. If /root partition is installed on /dev/hda2, what defines hda2 ?
Answers:
  1. 1st hard disk 1st partition
  2. 2nd hard disk 2nd partition
  3. 2nd hard disk 1st partition
  4. 1st hard disk 2nd partition
45. /dev/hda6 and /dev/hda7 are two partitions of 150MB each. What is the correct statement to create physical volumes?
Answers:
  1. pvcreate pv0 /dev/hda6 /dev/hda7
  2. pvcreate /dev/hda6 /dev/hda7
  3. pvcreate -c pv0 /dev/hda6 /dev/hda7
  4. pvcreate pv /dev/hda6 /dev/hda7
46. How many disks are required in Raid level 5?
Answers:
  1. At least 2
  2. At least 3
  3. At least 1
  4. At least 4
47. What is the full form of MBR?
Answers:
  1. Memory buffer record
  2. Memory boot register
  3. Memory buffer register
  4. Master boot record
48. If the permissions of rc.sysinit are changed from 655 to 444, what will happen during the next reboot?
Answers:
  1. The system will boot but when the password is entered, “access denied” will be displayed
  2. The system will not boot
  3. The system will show only grub prompt during boot
  4. The system will automatically restart, without showing the login prompt after the exact boot process

No comments:

Post a Comment

Blog Archive