Upwork Redhat Linux 9.0 Admin Test 2016
48 Answered Test Questions:
1. Which of the following files contains the IP address of the gateway?
Answers:
a. /etc/sysconfig/network
a. /etc/resolv.conf
a. /etc/sysconfig/network-scripts/ifcfg-eth0
a. /etc/sysconfig/network-scripts/gateway
2. Which of the following commands will format the /test partition?
Answers:
a. ext2online -j /test
a. mke2fs /test
a. mke2fs -j /test
a. 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:
a. setquota Debbie 4MB 5MB 0 0 /test
a. setquota Debbie 4096 5120 0 0 /test
a. setquota Debbie 0 0 4096 5120 /test
a. setquota -s Debbie 4096 5120 0 0 /test
4. Which is the correct command to start the daemon of the printserver?
Answers:
a. service printer start
a. service cupsd start
a. service cupd start
a. 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:
a. Xserver will not start
a. System will not boot properly
a. Device driver will not work
a. man pages will not work
6. Which entry is not required in /etc/sysconfig/network ?
Answers:
a. NETWORKING=YES
a. HOSTNAME=stationx.example.com
a. NAMESERVER=192.168.0.x
a. NISDOMAIN=rhct
7. In which mode can LVM be created during installation?
Answers:
a. CUI only
a. GUI only
a. Both CUI and GUI
a. None of the above
8. Which entry does not belong to ifcfg-eth0 ?
Answers:
a. DEVICE=eth0
a. BOOTPROTO= static/dhcp
a. HOSTNAME=stationx.example.com
a. IPADDR=192.168.0.x
a. 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:
a. vgcreate -n vg0 /dev/hda6 /dev/hda7
a. vgcreate -l vg0 /dev/hda6 /dev/hda7
a. vgcreate vg1 /dev/hda6 /dev/hda7
a. vgcreate vg0 /dev/hda6 /dev/hda7
10. How can ext3 filesystem be converted to ext2 filesystem if the partition is /dev/hda7 ?
Answers:
a. tune2fs -O ^has_journal /dev/hda7
a. tune2fs -o ^has_journal /dev/hda7
a. tune2fs -a ^has_journal /dev/hda7
a. tune2fs -A ^hasjournal /dev/hda7
11. What is proc file system?
Answers:
a. Physical partition created during installation
a. Virtual file system
a. It is the swap partition
a. None of these
12. A new swap partition is created and entered correctly in /etc/fstab. How will it be mounted?
Answers:
a. # swapon -s
a. # swapon -a
a. # swapon -m
a. # swapon -A
13. What does the entry id:3:initdefault: define in the /etc/inittab file?
Answers:
a. The system will boot by default in 3rd run level
a. The system will boot by default in graphical mode
a. The system will boot by default in single user run level
a. 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:
a. Linux kickstart=nfs:192.168.0.254/kickstart/ks.cfg
a. Linux ks=nfs:192.168.0.254/kickstart/ks.cfg
a. linux ks=nfs:192.168.0.254:/kickstart/ks.cfg
a. 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:
a. 511 MB
a. 512 Bytes
a. 512 MB
a. 446 Bytes
16. How should a raid device /dev/md0, with level 0, and devices /dev/hda6, /dev/hda7 be created?
Answers:
a. mdadm -c /dev/md0 -l 0 -n 2 /dev/hda{6,7}
a. mdadm -c /dev/md0 -l 0 -n 2 /dev/hda6 /dev/hda7
a. mdadm -C /dev/md0 -l 0 -n 2 /dev/hda6 /dev/hda7
a. mdadm -C /dev/md0 -L 0 -n 2 /dev/hda{6,7}
17. The command which configures devices is:
Answers:
a. kudzu
a. netconfig
a. kudu
a. netstat
18. Which of the following commands enables ip forwarding permanently?
Answers:
a. Echo “1” > /proc/sys/net/ipv4/ip_forward
a. Open the file /etc/sysctl.conf and insert net.ipv4.ip_forward=1 in the file
a. Open the file /etc/sysctl.conf and insert net.ipv4_forward=0 in the file
a. 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:
a. lvcreate -l 200MB lv0 vg0
a. lvcreate -L 200MB lv0 vg1
a. lvcreate -L 200MB lv0 vg0
a. 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:
a. -a
a. -v
a. -t
a. -n
21. Which file contains the configuration of the network card?
Answers:
a. /etc/sysconfig/network-scripts/ifcfg-eth
a. /etc/sysconfig/hwdata
a. /etc/sysconfig/ntwork-scripts/hwdata
a. /proc/sys/net/hwdata
22. What types of files does /proc filesystem consist of?
Answers:
a. Pseudo Files
a. System Binaries
a. Temporary Files
a. 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:
a. mke2fs -b 2048 -i 2048 -j /dev/hda6
a. mke2fs -b 1024 -i 1024 -j /dev/hda6
a. mke2fs -b 1024 -i 2048 -j /dev/hda6
a. 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:
a. # crontab -e and insert into 02 04 * * * print “hello”
a. # crontab -e and insert 02 04 * * * echo “hello”
a. # crontab -e and insert into 02 04 * * * echo “hello”
a. # 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:
a. GRUB> find /boot/grub.conf
a. GRUB> find /grub/grub.conf
a. GRUB> find /grub/stage1
a. GRUB> find /grub/stage2
26. During Linux installation, in which mode can RAID be created?
Answers:
a. Only in graphical mode
a. Only in CUI mode
a. Both graphical and CUI mode
a. None of the above
27. In which of the following locations are boot messages stored?
Answers:
a. /var/log/dmessg
a. /var/lag/dmesg
a. /var/log/dmesg
a. /var/log/messages
28. Which entry is specified in /etc/resolv.conf ?
Answers:
a. IP address of own machine
a. Nameserver IP address
a. Router machine IP
a. NIS domain IP
29. How can kernel-2.6.9-5 rpm be installed?
Answers:
a. # rpm -U kernel-2.6.9-5.rpm
a. # rpm -ivh kernel-2.6.9-5.rpm
a. # rpm -IVH kernel-2.6.9-5.rpm
a. # rpm -install kernel-2.6.9-5.rpm
30. What should be the command to view the details of raid device /dev/md0 ?
Answers:
a. # mdadm –detail /dev/md0
a. # mdadm -s /dev/md0
a. # cat /proc/mdstat
a. # mdstat –details /dev/md0
31. When VGs (Volume Groups) are created, where are the VG information files stored?
Answers:
a. /etc/lvm/
a. /etc/lvm/backup/
a. /tmp/lvm/backup
a. /etc/
32. Through which of the following commands can a corrupted initrd be recreated?
Answers:
a. mkinitrd -f -v /boot/initrd-$(uname -r)img $(uname -r)
a. mkinitrd -f -v /boot/initrd-$(uname -r).img $(uname -r)
a. mkinitrd -f -v /boot/initrd-$(uname -r).EL $(uname -r)
a. 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:
a. lvextend -L 50MB lv0 vg0
a. lvextend -l 50MB lv0
a. lvextend -I 50MB lv0 vg0
a. lvextend -L 50MB lv0
34. How can you tell which RPM the /etc/inittab file belongs to?
Answers:
a. rpm -ql /etc/initab
a. rpm -qf /etc/inittab
a. rpm -i /etc/inittab
a. 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:
a. 3 GB
a. 2 GB
a. 21/2 GB
a. 1 GB
36. How can ext2 filesystem be converted to ext3 filesystem if the partition is /dev/hda7 ?
Answers:
a. tune2fs -j /dev/hda7
a. dump2fs -j /dev/hda7
a. tune2fs -f /dev/hda7
a. mke2fs -j /dev/hda7
37. Which of the following denotes Raid level 0?
Answers:
a. Striping with parity
a. Striping with mirroring
a. Striping
a. None of these
38. While troubleshooting Xserver, which of the following steps is not required?
Answers:
a. service xfs restart
a. system-config-display
a. check permissions of /tmp
a. check /usr permissions
39. What will be the behavior of the following command:
Answers:
a. /etc/sysconfig/network
a. /etc/resolv.conf
a. /etc/sysconfig/network-scripts/ifcfg-eth0
a. /etc/sysconfig/network-scripts/gateway
2. Which of the following commands will format the /test partition?
Answers:
a. ext2online -j /test
a. mke2fs /test
a. mke2fs -j /test
a. 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:
a. setquota Debbie 4MB 5MB 0 0 /test
a. setquota Debbie 4096 5120 0 0 /test
a. setquota Debbie 0 0 4096 5120 /test
a. setquota -s Debbie 4096 5120 0 0 /test
4. Which is the correct command to start the daemon of the printserver?
Answers:
a. service printer start
a. service cupsd start
a. service cupd start
a. 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:
a. Xserver will not start
a. System will not boot properly
a. Device driver will not work
a. man pages will not work
6. Which entry is not required in /etc/sysconfig/network ?
Answers:
a. NETWORKING=YES
a. HOSTNAME=stationx.example.com
a. NAMESERVER=192.168.0.x
a. NISDOMAIN=rhct
7. In which mode can LVM be created during installation?
Answers:
a. CUI only
a. GUI only
a. Both CUI and GUI
a. None of the above
8. Which entry does not belong to ifcfg-eth0 ?
Answers:
a. DEVICE=eth0
a. BOOTPROTO= static/dhcp
a. HOSTNAME=stationx.example.com
a. IPADDR=192.168.0.x
a. 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:
a. vgcreate -n vg0 /dev/hda6 /dev/hda7
a. vgcreate -l vg0 /dev/hda6 /dev/hda7
a. vgcreate vg1 /dev/hda6 /dev/hda7
a. vgcreate vg0 /dev/hda6 /dev/hda7
10. How can ext3 filesystem be converted to ext2 filesystem if the partition is /dev/hda7 ?
Answers:
a. tune2fs -O ^has_journal /dev/hda7
a. tune2fs -o ^has_journal /dev/hda7
a. tune2fs -a ^has_journal /dev/hda7
a. tune2fs -A ^hasjournal /dev/hda7
11. What is proc file system?
Answers:
a. Physical partition created during installation
a. Virtual file system
a. It is the swap partition
a. None of these
12. A new swap partition is created and entered correctly in /etc/fstab. How will it be mounted?
Answers:
a. # swapon -s
a. # swapon -a
a. # swapon -m
a. # swapon -A
13. What does the entry id:3:initdefault: define in the /etc/inittab file?
Answers:
a. The system will boot by default in 3rd run level
a. The system will boot by default in graphical mode
a. The system will boot by default in single user run level
a. 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:
a. Linux kickstart=nfs:192.168.0.254/kickstart/ks.cfg
a. Linux ks=nfs:192.168.0.254/kickstart/ks.cfg
a. linux ks=nfs:192.168.0.254:/kickstart/ks.cfg
a. 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:
a. 511 MB
a. 512 Bytes
a. 512 MB
a. 446 Bytes
16. How should a raid device /dev/md0, with level 0, and devices /dev/hda6, /dev/hda7 be created?
Answers:
a. mdadm -c /dev/md0 -l 0 -n 2 /dev/hda{6,7}
a. mdadm -c /dev/md0 -l 0 -n 2 /dev/hda6 /dev/hda7
a. mdadm -C /dev/md0 -l 0 -n 2 /dev/hda6 /dev/hda7
a. mdadm -C /dev/md0 -L 0 -n 2 /dev/hda{6,7}
17. The command which configures devices is:
Answers:
a. kudzu
a. netconfig
a. kudu
a. netstat
18. Which of the following commands enables ip forwarding permanently?
Answers:
a. Echo “1” > /proc/sys/net/ipv4/ip_forward
a. Open the file /etc/sysctl.conf and insert net.ipv4.ip_forward=1 in the file
a. Open the file /etc/sysctl.conf and insert net.ipv4_forward=0 in the file
a. 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:
a. lvcreate -l 200MB lv0 vg0
a. lvcreate -L 200MB lv0 vg1
a. lvcreate -L 200MB lv0 vg0
a. 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:
a. -a
a. -v
a. -t
a. -n
21. Which file contains the configuration of the network card?
Answers:
a. /etc/sysconfig/network-scripts/ifcfg-eth
a. /etc/sysconfig/hwdata
a. /etc/sysconfig/ntwork-scripts/hwdata
a. /proc/sys/net/hwdata
22. What types of files does /proc filesystem consist of?
Answers:
a. Pseudo Files
a. System Binaries
a. Temporary Files
a. 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:
a. mke2fs -b 2048 -i 2048 -j /dev/hda6
a. mke2fs -b 1024 -i 1024 -j /dev/hda6
a. mke2fs -b 1024 -i 2048 -j /dev/hda6
a. 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:
a. # crontab -e and insert into 02 04 * * * print “hello”
a. # crontab -e and insert 02 04 * * * echo “hello”
a. # crontab -e and insert into 02 04 * * * echo “hello”
a. # 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:
a. GRUB> find /boot/grub.conf
a. GRUB> find /grub/grub.conf
a. GRUB> find /grub/stage1
a. GRUB> find /grub/stage2
26. During Linux installation, in which mode can RAID be created?
Answers:
a. Only in graphical mode
a. Only in CUI mode
a. Both graphical and CUI mode
a. None of the above
27. In which of the following locations are boot messages stored?
Answers:
a. /var/log/dmessg
a. /var/lag/dmesg
a. /var/log/dmesg
a. /var/log/messages
28. Which entry is specified in /etc/resolv.conf ?
Answers:
a. IP address of own machine
a. Nameserver IP address
a. Router machine IP
a. NIS domain IP
29. How can kernel-2.6.9-5 rpm be installed?
Answers:
a. # rpm -U kernel-2.6.9-5.rpm
a. # rpm -ivh kernel-2.6.9-5.rpm
a. # rpm -IVH kernel-2.6.9-5.rpm
a. # rpm -install kernel-2.6.9-5.rpm
30. What should be the command to view the details of raid device /dev/md0 ?
Answers:
a. # mdadm –detail /dev/md0
a. # mdadm -s /dev/md0
a. # cat /proc/mdstat
a. # mdstat –details /dev/md0
31. When VGs (Volume Groups) are created, where are the VG information files stored?
Answers:
a. /etc/lvm/
a. /etc/lvm/backup/
a. /tmp/lvm/backup
a. /etc/
32. Through which of the following commands can a corrupted initrd be recreated?
Answers:
a. mkinitrd -f -v /boot/initrd-$(uname -r)img $(uname -r)
a. mkinitrd -f -v /boot/initrd-$(uname -r).img $(uname -r)
a. mkinitrd -f -v /boot/initrd-$(uname -r).EL $(uname -r)
a. 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:
a. lvextend -L 50MB lv0 vg0
a. lvextend -l 50MB lv0
a. lvextend -I 50MB lv0 vg0
a. lvextend -L 50MB lv0
34. How can you tell which RPM the /etc/inittab file belongs to?
Answers:
a. rpm -ql /etc/initab
a. rpm -qf /etc/inittab
a. rpm -i /etc/inittab
a. 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:
a. 3 GB
a. 2 GB
a. 21/2 GB
a. 1 GB
36. How can ext2 filesystem be converted to ext3 filesystem if the partition is /dev/hda7 ?
Answers:
a. tune2fs -j /dev/hda7
a. dump2fs -j /dev/hda7
a. tune2fs -f /dev/hda7
a. mke2fs -j /dev/hda7
37. Which of the following denotes Raid level 0?
Answers:
a. Striping with parity
a. Striping with mirroring
a. Striping
a. None of these
38. While troubleshooting Xserver, which of the following steps is not required?
Answers:
a. service xfs restart
a. system-config-display
a. check permissions of /tmp
a. check /usr permissions
39. What will be the behavior of the following command:
# echo “1” > /proc/sys/net/ipv4/ip_forward
Answers:
a. Enables ip_forwarding permanently
a. Enables ip_forwarding temporarily
a. Disables ip_forwarding permanently
a. Disables ip_forwarding temporarily
40. Can the size of LVM be decreased?
Answers:
a. Yes
a. No
41. Can / partition on lvm device be installed during installation?
Answers:
a. Yes, it can be installed
a. This facility is only available in rhel3.0
a. / can install only one physical partition
a. None of these
42. What is the path of rc.sysinit?
Answers:
a. /etc/rc.d/rc.sysinit
a. /etc/rc/rc.sysinit
a. /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:
a. chmod 1777 /home/test
a. chmod 3777 /etc/test
a. chmod 3777 /home/test
a. chmod 3777 /homes/test
44. If /root partition is installed on /dev/hda2, what defines hda2 ?
Answers:
a. 1st hard disk 1st partition
a. 2nd hard disk 2nd partition
a. 2nd hard disk 1st partition
a. 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:
a. pvcreate pv0 /dev/hda6 /dev/hda7
a. pvcreate /dev/hda6 /dev/hda7
a. pvcreate -c pv0 /dev/hda6 /dev/hda7
a. pvcreate pv /dev/hda6 /dev/hda7
46. How many disks are required in Raid level 5?
Answers:
a. At least 2
a. At least 3
a. At least 1
a. At least 4
47. What is the full form of MBR?
Answers:
a. Memory buffer record
a. Memory boot register
a. Memory buffer register
a. Master boot record
48. If the permissions of rc.sysinit are changed from 655 to 444, what will happen during the next reboot?
Answers:
a. The system will boot but when the password is entered, “access denied” will be displayed
a. The system will not boot
a. The system will show only grub prompt during boot
a. The system will automatically restart, without showing the login prompt after the exact boot process
Answers:
a. Enables ip_forwarding permanently
a. Enables ip_forwarding temporarily
a. Disables ip_forwarding permanently
a. Disables ip_forwarding temporarily
40. Can the size of LVM be decreased?
Answers:
a. Yes
a. No
41. Can / partition on lvm device be installed during installation?
Answers:
a. Yes, it can be installed
a. This facility is only available in rhel3.0
a. / can install only one physical partition
a. None of these
42. What is the path of rc.sysinit?
Answers:
a. /etc/rc.d/rc.sysinit
a. /etc/rc/rc.sysinit
a. /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:
a. chmod 1777 /home/test
a. chmod 3777 /etc/test
a. chmod 3777 /home/test
a. chmod 3777 /homes/test
44. If /root partition is installed on /dev/hda2, what defines hda2 ?
Answers:
a. 1st hard disk 1st partition
a. 2nd hard disk 2nd partition
a. 2nd hard disk 1st partition
a. 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:
a. pvcreate pv0 /dev/hda6 /dev/hda7
a. pvcreate /dev/hda6 /dev/hda7
a. pvcreate -c pv0 /dev/hda6 /dev/hda7
a. pvcreate pv /dev/hda6 /dev/hda7
46. How many disks are required in Raid level 5?
Answers:
a. At least 2
a. At least 3
a. At least 1
a. At least 4
47. What is the full form of MBR?
Answers:
a. Memory buffer record
a. Memory boot register
a. Memory buffer register
a. Master boot record
48. If the permissions of rc.sysinit are changed from 655 to 444, what will happen during the next reboot?
Answers:
a. The system will boot but when the password is entered, “access denied” will be displayed
a. The system will not boot
a. The system will show only grub prompt during boot
a. The system will automatically restart, without showing the login prompt after the exact boot process
No comments:
Post a Comment