Do you know that? 41% of those who spent 20 or more hours per month prospecting earned $70+ per hour. next

Contact Email:

<< All Upwork (oDesk) and Elance Tests << Upwork (oDesk) test answers << Operating Systems category

Test answers for Redhat Linux 9.0 Admin Test 2020

(48) Last updated: February 11
Upwork (oDesk) • Operating Systems
Questions and answers are regularly updated. Answered and not answered tests questions.

This helps getting job: Hundreds of (cover letter examples , interview questions , profile samples ) • Earn on Upwork (oDesk)
Job assistance: jobs popularityfreelance rates

Popular test answers: HTML, .Net, CSS, English, SEO, Photoshop, iOS, Java, Android, Ruby, Python, JavaScript

See all 6 tests answers updated

Find Upwork (oDesk) and Elance test answers on this website:

Collapse | Expand

48 Answered Test Questions:

1. Which of the following files contains the IP address of the gateway?


• /etc/sysconfig/network

• /etc/resolv.conf

• /etc/sysconfig/network-scripts/ifcfg-eth0

• /etc/sysconfig/network-scripts/gateway

2. Which of the following commands will format the /test partition?


• ext2online -j /test

• mke2fs /test

• mke2fs -j /test

• 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.


• setquota Debbie 4MB 5MB 0 0 /test

• setquota Debbie 4096 5120 0 0 /test

• setquota Debbie 0 0 4096 5120 /test

• setquota -s Debbie 4096 5120 0 0 /test

4. Which is the correct command to start the daemon of the printserver?


• service printer start

• service cupsd start

• service cupd start

• service cups start

5. What problems will be faced during reboot, when the permissions of /tmp are 655, and the default permissions are 1777?


• Xserver will not start

• System will not boot properly

• Device driver will not work

• man pages will not work

6. Which entry is not required in /etc/sysconfig/network ?




• NAMESERVER=192.168.0.x


7. In which mode can LVM be created during installation?


• CUI only

• GUI only

• Both CUI and GUI

• None of the above

8. Which entry does not belong to ifcfg-eth0 ?


• DEVICE=eth0

• BOOTPROTO= static/dhcp


• IPADDR=192.168.0.x

• 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?


• vgcreate -n vg0 /dev/hda6 /dev/hda7

• vgcreate -l vg0 /dev/hda6 /dev/hda7

• vgcreate vg1 /dev/hda6 /dev/hda7

• vgcreate vg0 /dev/hda6 /dev/hda7

10. How can ext3 filesystem be converted to ext2 filesystem if the partition is /dev/hda7 ?


• tune2fs -O ^has_journal /dev/hda7

• tune2fs -o ^has_journal /dev/hda7

• tune2fs -a ^has_journal /dev/hda7

• tune2fs -A ^hasjournal /dev/hda7

11. What is proc file system?


• Physical partition created during installation

• Virtual file system

• It is the swap partition

• None of these

12. A new swap partition is created and entered correctly in /etc/fstab. How will it be mounted?


• # swapon -s

• # swapon -a

• # swapon -m

• # swapon -A

13. What does the entry id:3:initdefault: define in the /etc/inittab file?


• The system will boot by default in 3rd run level

• The system will boot by default in graphical mode

• The system will boot by default in single user run level

• 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, and the file path on the server is /kickstart/ks.cfg ?


• Linux kickstart=nfs:

• Linux ks=nfs:

• linux ks=nfs:

• linux kickstart=nfs:

15. How much space does the IPL (Initial Program Loader) take on the disk?


• 511 MB

• 512 Bytes

• 512 MB

• 446 Bytes

16. How should a raid device /dev/md0, with level 0, and devices /dev/hda6, /dev/hda7 be created?


• mdadm -c /dev/md0 -l 0 -n 2 /dev/hda{6,7}

• mdadm -c /dev/md0 -l 0 -n 2 /dev/hda6 /dev/hda7

• mdadm -C /dev/md0 -l 0 -n 2 /dev/hda6 /dev/hda7

• mdadm -C /dev/md0 -L 0 -n 2 /dev/hda{6,7}

17. The command which configures devices is:


• kudzu

• netconfig

• kudu

• netstat

18. Which of the following commands enables ip forwarding permanently?


• Echo "1" > /proc/sys/net/ipv4/ip_forward

• Open the file /etc/sysctl.conf and insert net.ipv4.ip_forward=1 in the file

• Open the file /etc/sysctl.conf and insert net.ipv4_forward=0 in the file

• 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?


• lvcreate -l 200MB lv0 vg0

• lvcreate -L 200MB lv0 vg1

• lvcreate -L 200MB lv0 vg0

• 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?


• -a

• -v

• -t

• -n

21. Which file contains the configuration of the network card?


• /etc/sysconfig/network-scripts/ifcfg-eth

• /etc/sysconfig/hwdata

• /etc/sysconfig/ntwork-scripts/hwdata

• /proc/sys/net/hwdata

22. What types of files does /proc filesystem consist of?


• Pseudo Files

• System Binaries

• Temporary Files

• 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)?


• mke2fs -b 2048 -i 2048 -j /dev/hda6

• mke2fs -b 1024 -i 1024 -j /dev/hda6

• mke2fs -b 1024 -i 2048 -j /dev/hda6

• 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?


• # crontab -e and insert into 02 04 * * * print "hello"

• # crontab -e and insert 02 04 * * * echo "hello"

• # crontab -e and insert into 02 04 * * * echo "hello"

• # 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?


• GRUB> find /boot/grub.conf

• GRUB> find /grub/grub.conf

• GRUB> find /grub/stage1

• GRUB> find /grub/stage2

26. During Linux installation, in which mode can RAID be created?


• Only in graphical mode

• Only in CUI mode

• Both graphical and CUI mode

• None of the above

27. In which of the following locations are boot messages stored?


• /var/log/dmessg

• /var/lag/dmesg

• /var/log/dmesg

• /var/log/messages

28. Which entry is specified in /etc/resolv.conf ?


• IP address of own machine

• Nameserver IP address

• Router machine IP

• NIS domain IP

29. How can kernel-2.6.9-5 rpm be installed?


• # rpm -U kernel-2.6.9-5.rpm

• # rpm -ivh kernel-2.6.9-5.rpm

• # rpm -IVH kernel-2.6.9-5.rpm

• # rpm -install kernel-2.6.9-5.rpm

30. What should be the command to view the details of raid device /dev/md0 ?


• # mdadm --detail /dev/md0

• # mdadm -s /dev/md0

• # cat /proc/mdstat

• # mdstat --details /dev/md0

31. When VGs (Volume Groups) are created, where are the VG information files stored?


• /etc/lvm/

• /etc/lvm/backup/

• /tmp/lvm/backup

• /etc/

32. Through which of the following commands can a corrupted initrd be recreated?


• mkinitrd -f -v /boot/initrd-$(uname -r)img $(uname -r)

• mkinitrd -f -v /boot/initrd-$(uname -r).img $(uname -r)

• mkinitrd -f -v /boot/initrd-$(uname -r).EL $(uname -r)

• 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 ?


• lvextend -L 50MB lv0 vg0

• lvextend -l 50MB lv0

• lvextend -I 50MB lv0 vg0

• lvextend -L 50MB lv0

34. How can you tell which RPM the /etc/inittab file belongs to?


• rpm -ql /etc/initab

• rpm -qf /etc/inittab

• rpm -i /etc/inittab

• 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?


• 3 GB

• 2 GB

• 21/2 GB

• 1 GB

36. How can ext2 filesystem be converted to ext3 filesystem if the partition is /dev/hda7 ?


• tune2fs -j /dev/hda7

• dump2fs -j /dev/hda7

• tune2fs -f /dev/hda7

• mke2fs -j /dev/hda7

37. Which of the following denotes Raid level 0?


• Striping with parity

• Striping with mirroring

• Striping

• None of these

38. While troubleshooting Xserver, which of the following steps is not required?


• service xfs restart

• system-config-display

• check permissions of /tmp

• check /usr permissions

39. What will be the behavior of the following command:

# echo "1" > /proc/sys/net/ipv4/ip_forward


• Enables ip_forwarding permanently

• Enables ip_forwarding temporarily

• Disables ip_forwarding permanently

• Disables ip_forwarding temporarily

40. Can the size of LVM be decreased?


• Yes

• No

41. Can / partition on lvm device be installed during installation?


• Yes, it can be installed

• This facility is only available in rhel3.0

• / can install only one physical partition

• None of these

42. What is the path of rc.sysinit?


• /etc/rc.d/rc.sysinit

• /etc/rc/rc.sysinit

• /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?


• chmod 1777 /home/test

• chmod 3777 /etc/test

• chmod 3777 /home/test

• chmod 3777 /homes/test

44. If /root partition is installed on /dev/hda2, what defines hda2 ?


• 1st hard disk 1st partition

• 2nd hard disk 2nd partition

• 2nd hard disk 1st partition

• 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?


• pvcreate pv0 /dev/hda6 /dev/hda7

• pvcreate /dev/hda6 /dev/hda7

• pvcreate -c pv0 /dev/hda6 /dev/hda7

• pvcreate pv /dev/hda6 /dev/hda7

46. How many disks are required in Raid level 5?


• At least 2

• At least 3

• At least 1

• At least 4

47. What is the full form of MBR?


• Memory buffer record

• Memory boot register

• Memory buffer register

• Master boot record

48. If the permissions of rc.sysinit are changed from 655 to 444, what will happen during the next reboot?


• The system will boot but when the password is entered, "access denied" will be displayed

• The system will not boot

• The system will show only grub prompt during boot

• The system will automatically restart, without showing the login prompt after the exact boot process