twitter
Test Your Linux Skills - Part 1

 

Q1: Which statements about partitions are correct? (Choose 3.)

A) Extended partitions can be subdivided into logical partitions.
B) A primary partition consists of a continuous range of cylinders.
C) Logical partitions do not require entries in the main partition table.
D) If you use only primary partitions, you are limited to eight partitions per disk.
E) SUSE Linux Enterprise Server 10 can only be installed on a primary partition.
F) To install more than one operating system on a partition, the partition has to include the entire cylinder range.


Q2: You want to copy the master boot record, the partition table, and the 2 magic bytes at the beginning of /dev/had to a file so you can restore it later. Which command accomplishes this?

A) dd if=/dev/hda of=mbr bs=512 count=1
B) dd if=mbr of=/dev/hda bs=512 count=1
C) dd of=/dev/zero if=/dev/hda bs=512 count=1
D) dd if=/dev/urandom of=/dev/hda bs=512 count=1

Q3: The /etc/sysconfig/network/ifcfg-eth-id-macaddress configuration file contains a BOOTPRO option. Which are possible values of BOOTPROTO?

A) static or dhcp
B) master or slave
C) onboot, ifpluged, or manual
D) ethernet, wireless, or manual

Q4: From command mode in vi, what do you have to do to enter text?

A) Press e
B) Press i
C) Press k
D) Press w

Q5: Which statement about symmetric encryption is correct?

A) The same key is used for encryption and decryption.
B) Symmetric keys are generally longer than asymmetric keys.
C) Asymmetric encryption is generally faster than symmetric encryption.
D) A public key and a private key are needed for symmetric encryption/decryption.

 

 

 

Q6: After the partitions are checked and the root file system is mounted, the /sbin/init command is executed. Which process ID is assigned to /sbin/init?

A) 0
B) 1
C) 3
D) 100
E) 1000
F) Depends

Q7: When you connect to an ssh server with your ssh client, the public key of the server is compared to the keys stored in a file on the client computer. Which file is this?

A) ~/.ssh/id_dsa.pub
B) ~/.ssh/id_rsa.pub
C) ~/.ssh/known_hosts
D) ~/.ssh/authorized_keys


Q8: You want to install the xyz-software-1.2.3-5.i586.rpm package, but only if a previous version is already installed. Which command will do this?

A) rpm -ivh xyz-software-1.2.3-5.i586.rpm
B) rpm -evh xyz-software-1.2.3-5.i586.rpm
C) rpm -Fvh xyz-software-1.2.3-5.i586.rpm
D) rpm -Uvh xyz-software-1.2.3-5.i586.rpm

Q9: Which commands can be used if you do not find the desired information in a manual page, or find no manual page at all for a program?

A) sos program
B) info program
C) help program
D) wiki program

Q10: Which statements about PAM are correct? (Choose 3.)

A) To enable authentication with PAM, you need a smart cart reader.
B) Each line in a PAM configuration file contains 6 columns plus optional arguments.
C) Configuration files of PAM modules can be found in /etc/pam.d/ and /etc/security/.
D) After the PAM configuration has been adjusted for an application, this application can be used by SSH.
E) The /etc/pam.d/other file contains a default configuration if no application-specific file is found in /etc/pam.d/.
F) PAM creates a software level with defined interfaces between applications and the current authentication mechanism.

 

Q11: What is the difference between the /dev/st0 and /dev/nst0 devices?

A) /dev/st0 is the first SCSI CD burner; /dev/nst0 refers to the CDROM drive.
B) /dev/st0 is the first tape drive; /dev/nst0 refers to the same tape drive in non-rewinding mode.
C) /dev/st0 is the first serial console; /dev/nst0 refers to the same serial console as a block device.
D) /dev/st0 is the first SCSI hard drive; /dev/nst0 refers to the same SCSI hard drive in read-only mode.

Q12 : How do you create a file called destination containing the same ACLs currently set for the file called source?

A) getfacl source > destination
B) getfacl -c source destination
C) getfacl source | cp destination
D) getfacl -x source > destination

Q13: From the command line, which command would you use to print the document.ps file on the laser printer?

A) lp -d laser document.ps
B) lpr -p laser document.ps
C) lpq -p laser document.ps
D) print -p laser document.ps

Q14: You want to find out if files from the wget package were altered since they were installed. Which command will give you this information?

A) rpm -V wget
B) rpm -v wget
C) rpm -F wget
D) rpm -qf wget

Q15: In which file is the name resolution configured?

A) /etc/dns.conf
B) /etc/resolv.conf
C) /etc/HOSTNAME
D) /etc/nameservers
E) /etc/sysconfig/network/dns

 

Want to see the answer. Click Here
Send your feedback & quries at 
info@nextstep4it.com
Advertise With Us-Click Here

Newsletter Subscription