Certified Linux Administrator SUSE 11

Description

A-Level Linux Quiz on Certified Linux Administrator SUSE 11, created by Giovanni Gonzalez Moreno on 22/11/2014.
Giovanni Gonzalez Moreno
Quiz by Giovanni Gonzalez Moreno, updated more than 1 year ago
Giovanni Gonzalez Moreno
Created by Giovanni Gonzalez Moreno almost 10 years ago
78
0

Resource summary

Question 1

Question
Which user authentication methods can be used with SLES 10? (Choose 4)
Answer
  • NIS
  • WEP
  • SSH
  • PAM
  • LDAP
  • Handshake
  • Windows Domain
  • Local (/etc/passwd)

Question 2

Question
Which statements about partitions are correct? (Choose 3)
Answer
  • Extended partitions can be subdivided into logical partitions.
  • A primary partition consists of a continuous range of cylinders
  • Logical partitions do not require entries in the main partition table
  • If you use only primary partitions, you are limited to eight partitions per disk
  • SUSE Linux Enterprise Server 10 can only be installed on a primary partition.
  • To install more than one operating system on a partition, the partition has to include the entire cylinder range

Question 3

Question
You want to copy the master boot record, the partitoin 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?
Answer
  • dd if=/dev/hda of=mbr bs=512 count=1
  • dd if=mbr of=/dev/hda bs=512 count=1
  • dd of=/dev/zero if=/dev/hda bs=512 count=1
  • dd if=/dev/urandom of=/dev/hda bs=512 count=1

Question 4

Question
The /etc/sysconfig/network/ifcfg-eth-id-macaddress configuration file contains a BOOTPRO option. Which are possible values of BOOTPRO?
Answer
  • Static or dhcp
  • Master or slave
  • Onboot, ifpluged, or manual
  • ethernet, wireless, or manual

Question 5

Question
From command mode in vi, what do you have to do to enter text?
Answer
  • Press e
  • Press i
  • Press k
  • Press w

Question 6

Question
Which statement about symmetric encryption is correct?
Answer
  • The same key is used for encryption and decryption
  • Symmetric keys are generally longer than asymmetric keys
  • Asymmetric encryption is generally faster than symmetric encryption.
  • A public key and a private key are needed for symmetric encryption/decryption.

Question 7

Question
After the partittions are checked and the root file system is mounted, the /sbin/init command is executed. Which process ID is assigned to /sbin/init?
Answer
  • 0
  • 1
  • 3
  • 100
  • 1000
  • Depends

Question 8

Question
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?
Answer
  • ~/.ssh/id_dsa.pub
  • ~/.ssh/id_rsa.pub
  • ~/.ssh/know_hosts
  • ~/.ssh/authorized_keys

Question 9

Question
You want to install the xyz-software-1.2.3-5.i586.rpm package, but only if a previous versoin is already installed. Which command will do this?
Answer
  • rpm -ivh xyz-software-1.2.3-5.i586.rpm
  • rpm -evh xyz-software-1.2.3-5.i586.rpm
  • rpm -Fvh xyz-software-1.2.3-5.i586.rpm
  • rpm -Uvh xyz-software-1.2.3-5.i586.rpm

Question 10

Question
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?
Answer
  • sos program
  • info program
  • help program
  • wiki program

Question 11

Question
Which statements about PAM are correct? (Choose 3)
Answer
  • To enable authentication whit PAM, you need a smart cart reader
  • Each line a PAM configuration file contains 6 columns plus optional arguments
  • Configuration files of PAM modules can be found in /etc/pam.d/ and /etc/security/.
  • After the PAM configuration has been adjusted for an application, this application can be used by SSH
  • The /etc/pam.d/other file contains a default configuration if no application-specific file is found in /etc/pam.d/
  • PAM creates a software level with defined interfaces between applications and the current authentication mechanism

Question 12

Question
What is the difference between the /dev/st0 and /dev/nst0 devices?
Answer
  • /dev/st0 is the firts SCSI CD burner; /dev/nst0 refers to the CDROM drive
  • /dev/st0 is the firts tape drive; /dev/nst0 refers to the same tape drive in non-rewinding mode
  • /dev/st0 is the firts serial console; /dev/nst0 refers to the same serial console as a block device
  • /dev/st0 is the firts SCSI hard drive; /dev/nst0 refers to the same SCSI hard drive in read-only mode.

Question 13

Question
How do you create a file called destination containing the same ACLs currently set for the file called source?
Answer
  • getfacl source > destination
  • getfacl -c source destination
  • getfacl source | cp destination
  • getfacl -x source > destination

Question 14

Question
From the command line, which command would you use to print the document.ps file on the laser printer?
Answer
  • lp -d laser document.ps
  • lpr -p laser document.ps
  • lpq -p laser document.ps
  • print -p laser document.ps

Question 15

Question
You want to find out it file from the wget package were altered since they were installed. Which command will give you this information?
Answer
  • rpm -V wget
  • rpm -v wget
  • rpm -F wget
  • rpm -qf wget

Question 16

Question
In which file is the same resolution configured?
Answer
  • /etc/dns.conf
  • /etc/resolv.conf
  • /etc/HOSTNAME
  • /etc/nameservers
  • /etc/sysconfig/network/dns

Question 17

Question
Which command can you use to set up limits for failed logins?
Answer
  • w
  • who
  • last
  • failog
  • lastlog

Question 18

Question
Which file system type supports ACLs without a special mount option?
Answer
  • ext2
  • ext3
  • XFS
  • ReiserFS

Question 19

Question
Which statement about the /sbin/ldconfig command is correct?
Answer
  • The ldconfig command is used to the link directories.
  • The ldconfig command is used to configure an LDAP connection
  • The ldconfig command is used to update the software library cache
  • The ldconfig command is used to show dynamic libraries needed by a program.

Question 20

Question
Which command displays information about your hard drive and lets you manage certain hard drive parameters?
Answer
  • siga
  • sitar
  • fdisk
  • lspci
  • iostat
  • hwinfo
  • hdparm

Question 21

Question
Which file can be used to send a message to users logging in on a text console?
Answer
  • /etc/net
  • /etc/motd
  • /etc/messages
  • /var/log/messages

Question 22

Question
What is the correct syntax for mounting the second partition of the firts SCSI hard disk?
Answer
  • mount /mnt /dev/hda2
  • mount /dev/hda2 /mnt
  • mount /dev/sdb1 /mnt
  • mount /mnt /dev/sdb1 /mnt
  • mount /dev/sda2 /mnt
  • mount /mnt /dev/sda2

Question 23

Question
Using the rsync command, you want to mirror the directories, including any hidden files and directories within /home (not the /home directory itself) to the /backup directory. Which command accomplishes this?
Answer
  • rsync -a /home /backup
  • rsync -a /home/ /backup
  • rsync -a /home/* /backup
  • rsync -a /home/? /backup

Question 24

Question
How do you start a YaST module (for instance, the sw_single module used to install software) directly from the command line? (Choose 2.)
Answer
  • yast sw_single
  • yast2 sw_single
  • yast2 -m sw_single
  • yast --start sw_single
  • yast2 --module sw_single

Question 25

Question
You want to add user tux to the southpole group without changing his primary group membership. Which command do you user for this purpose?
Answer
  • useradd -g southpole tux
  • usermod -g southpole tux
  • groupadd -A tux southpole
  • groupmod -A tux southpole

Question 26

Question
Which file contains information about which user was last logged in, where the user logged in, and how long the user was logged in?
Answer
  • /var/log/login
  • /var/log/lastlog
  • /var/log/access
  • /var/log/messages
  • There is no log file containing this information

Question 27

Question
You entered your quota information in /etc/fstab. What do you have to do next?
Answer
  • Generate a quota report
  • Initialize the quota system
  • Configure limits for users and groups
  • Remount the file system for the quotas to be defined.

Question 28

Question
While the printers seem physically okay, you are encountering problems with CUPS. What is the best place to start looking for hints on what is wrong?
Answer
  • In the output of dmesg
  • In the /var/log/boot.msg file
  • In the /var/log/messages file
  • In the /var/log/cups/error_log file

Question 29

Question
What does the following command do? tar -czvf /tmp/backup.tgz /etc/HOSTNAME
Answer
  • It extracts the /etc/HOSTNAME file from the /tmp/backup.tgz archive
  • It includes the /etc/HOSTNAME file in the newly created /tmp/backup.tgz archive
  • It produces an error message because the options are in the wrong sequence.
  • It displays a line similar to the following, but otherwise does nothing: -rw-r--r-- root/root 23 2005-03-11 14:20 etc/HOSTNAME

Question 30

Question
You have a text file that contains empty lines. Using grep and regular expressions, which command displays the file without the empty lines?
Answer
  • grep ^$ file
  • grep [\] file
  • grep -v ^$ file
  • grep -v #$ file

Question 31

Question
Which statement regarding symbolic links is true? (Choose 2)
Answer
  • A symbolic link can point to a file on a different file system
  • A symbolic link and the file it points to share the same inode
  • If you delete the symbolic link, the original file is deleted as well
  • If you delete the original file, the symbolic link points to a non-existing file
  • With a symbolic link, you cannot see directly that is a link.

Question 32

Question
Which statement about the sudo command is correct?
Answer
  • You can edit the sudo configuration file /etc/sudo.conf directly with vi.
  • You can edit the su configuration file /etc/su.conf with the sudo command.
  • You can edit the sudo configuration file /etc/sudoers with the visudo command.
  • You can edit the sudo configuration file /etc/visudo with the sudoers command

Question 33

Question
What is the same of the file containing the initramfs?
Answer
  • /
  • /boot/initrd
  • /boot/ramfs
  • /sbin/vmram
  • /boot/vmram
  • /sbin/linuxramfs

Question 34

Question
You would like to run command2 only if command1 did not complete successfully. Which command accomplishes this task?
Answer
  • command1 ;; command2
  • command1 || command2
  • command1 >> command2
  • command1 && command2

Question 35

Question
You want to secure a POP3 connection to a server that does not support SSL. While you do not have ssh access to the POP3 server itself, you at least have SSH access to a server near the POP3 server. Given following information: POP3 server: pop3.digitalairlines.com SSH server: ssh.digitalairlines.com Your host: da10.digitalairlines.com POP3 port: 110 Local port: 11110 Which command will forward connections from the local port 11110 to port 110 of the POP3 server, using a secure tunnel between your host and the SSH server?
Answer
  • ssh -L 11110:ssh.digitalairlines.com:110 geeko@pop3.digitalairlines.com
  • ssh -L 110:ssh.digitalairlines.com:11110 geeko@pop3.digitalairlines.com
  • ssh -L 11110:pop3.digitalairlines.com:110 geeko@ssh.digitalairlines.com
  • ssh -L 110:op3.digitalairlines.com:11110 geeko@ssh.digitalairlines.com

Question 36

Question
Which command is used to enter or change the quota for user tux?
Answer
  • quotacheck
  • repquota tux
  • edquota -u tux
  • edquota -g tux
  • /sbin/quotaon tux

Question 37

Question
Which statements about the Linux boot process are correct? (Choose 3)
Answer
  • The BIOS starts the kernel
  • The initrd decompresses itself
  • The kernel looks for and mounts the initrd
  • The boot manager starts the init process.
  • linuxrc loads the modules to mount the root file system.
  • The boot manager loads the kernel and initrd into the memory

Question 38

Question
Which group name is stored in /etc/passwd?
Answer
  • Primary group
  • Effective group
  • Secondary group
  • No group name is stored there

Question 39

Question
The GRUB configuration file (/boot/grub/menu.lst) has a global section followed by sections for each operating system. Which options do you have to specify for each Linux operating system? (Choose 3)
Answer
  • title
  • color
  • initrd
  • kernel
  • timeout
  • gfxmenu
  • message

Question 40

Question
You want to use the ip command to set a new address for you network device eth0. It is a standard class C network. The broadcast address and network route should be set accordingly. Which command is correct?
Answer
  • ip address set 192.168.0.10/24 dev eth0
  • ip address add 192.168.0.10/24 dev eth0
  • ip addr add 192.168.0.10/24 dev eth0 brd +
  • ip addr add eth0 192.168.0.10/24 eth0 broadcast 192.168.255.255

Question 41

Question
Which command can you use to generate an MDS-encrypted password for GRUB?
Answer
  • genkey --md5
  • grubpass -md5
  • grub-md5-crypt
  • passwd -c --md5

Question 42

Question
The /backup/snapshot was changed to the /backup/backup_monday.tgz archive. Which command will now write new or modified below /home?
Answer
  • tar -czf -g /backup/snapshot /backup/backup_monday.tgz /home
  • tar -tz -g /backup/snapshot -f /backup/backup_monday.tgz /home
  • tar -cz -g /backup/snapshot -f /backup/backup_monday.tgz /home
  • tar -cz -newer /backup/snapshot -f /backup/backup_monday.tgz /home

Question 43

Question
Which protocol is used to send messages by the ping command?
Answer
  • NTP
  • FTP
  • TCP
  • ICMP
  • HTTP
  • LDAP

Question 44

Question
Which parts can be combined in the syslog-ng configuration file (/etc/syslog-ng/syslog-ng.conf) to specify what information is logged? (Choose 3)
Answer
  • Alerts
  • Users
  • Filters
  • Sources
  • Log Paths
  • Destinations
  • Date and Time

Question 45

Question
What is the output of the echo '$HOME' command when user geeko (home directory /home/geeko) enters it at the bash shell prompt?
Answer
  • geeko
  • $HOME
  • /home/geeko
  • $HOME: No such file or directory

Question 46

Question
Which statement about the primary (default) group of a user is correct?
Answer
  • The primary group membership of a user is defined in the /etc/group file
  • The primary group membership of a user is defined in the /etc/shadow file
  • The primary group membership of a user is defined in the /etc/passwd file
  • The primary group membership of a user is defined in the /etc/gpasswd file

Question 47

Question
In the terminal window, which command shows you the groups you are a member of?
Answer
  • id
  • gid
  • who
  • whoami

Question 48

Question
How large is an inode?
Answer
  • 256 bits
  • 64 Kbytes
  • 128 bytes
  • 1 Mbyte

Question 49

Question
You want to create the new user account tux with the password penguin (password hash: TvqBFhQWgeSho) and a default home directory. Which command can be used to create the account with the above parameters?
Answer
  • useradd -m -p "penguin" tux
  • echo penguin | useradd -m -p -tux
  • useradd -m -p "TvqBFhQWgeSho" tux
  • echo -e "peguin\npeguin" | passwd tux ; useradd -m tux

Question 50

Question
In a terminal window, which command displays the name of the directory you are currently in?
Answer
  • dir
  • pwd
  • where
  • current-dir

Question 51

Question
Which range of User IDs is used for normal (unprivileged) users on SUSE Linux Enterprise Server 10?
Answer
  • 0-100
  • 101-499
  • 500-999
  • 1000 and above

Question 52

Question
Where can you set global shell enviroment variables for all users independent of their shell?
Answer
  • /etc/profile
  • /etc/profile.all
  • /etc/bash.local
  • /etc/bash.bashrc

Question 53

Question
You have set the following permissions on a test directory: rwxrwxrwx. Which statement about files in the test directory is correct?
Answer
  • Only root can delete files in the test directory
  • Only root or the owner of a file can delete files in the test directory.
  • A file created in that directory has the same owner as the owner of the test directory.
  • A file created in that directory has the same owning group as the owning group of the test directory.

Question 54

Question
Which key combination can you use to stop a process that runs in the foreground?
Answer
  • Ctrl +X
  • Ctrl +Z
  • Ctrl + Alt +X
  • Ctrl + Backspace

Question 55

Question
You want to redirect both output and error messages of the find command to the find-output file. Which command accomplishes this task?
Answer
  • find /etc -name "*conf" 2>&find-output
  • find /etc -name "*conf" 2<&1 > find-output
  • find /etc -name "*conf" > find-output 2>&1
  • find /etc -name "*conf" > find-output 2>find-output

Question 56

Question
Which are benefits of using LVM? (Choose 4)
Answer
  • You can increase data security
  • You can create extremely large logical volumes
  • You can add logical volumes in a running system.
  • You can add hard disks to a volume group in a running system.
  • You can reduce the size of a logical volume without unmounting it
  • The snapshot feature allows consistent backup in a running system.

Question 57

Question
Within less, how do you search for a string downwards from where the cursor is positioned?
Answer
  • \string
  • ?string
  • /string
  • =string

Question 58

Question
In the bash shell, which command can be used to create a MY_NAME variable containing the value Joe?
Answer
  • MY_NAME=Joe
  • MY_NAME = Joe
  • echo Joe > MY_NAME
  • export MY_NAME = Joe

Question 59

Question
Which are journaling file systems? (Choose 3)
Answer
  • XFS
  • ext2
  • ext3
  • VFAT
  • minix
  • VFAT32
  • ReiserFS

Question 60

Question
What is the type command used for?
Answer
  • type is used to print text to a teletypewriter.
  • type displays the type of terminal (tty1, tty2) you are logged in to
  • type determines the type of a command (shell builtin, alias, file on hard disk)
  • type is used to determine the type of processor used (32-bit, 64-bit, Power)

Question 61

Question
What is the correct order of steps to change the partition table using fdisk?
Answer
  • You can't use fdisk to change the partition table.
  • Start fdisk > Change the partition table > Write the partitoin table to hard disk > Exit fdisk > Reboot
  • Start fdisk > Change the partition table > Write the partitoin table to hard disk > Exit fdisk > Load the partition table from the boot prompt.
  • Start fdisk > Change the partition table > Write the partition table to floppy disk or USB stick > Exit fdisk > Boot from floppy disk or USB stick.

Question 62

Question
You want to redirect the output of the ls command to the ls-output file which already exists. The output should be appended to he file; it should not overwrite the existing content. Which command accomplishes this task?
Answer
  • ls > ls-output
  • ls : ls-output
  • ls >> ls-output
  • ls && ls-output

Question 63

Question
You have a /tmp/data directory containing the files .file, file1, and file2. You want to delete the directory and its content. In a terminal window, which command accomplishes this?
Answer
  • rm /tmp/data
  • rm -r /tmp/data
  • rmdir /tmp/data
  • deldir /tmp/data

Question 64

Question
Which statement about a CUPS Using Broadcasting configuration is correct?
Answer
  • Only local printing is possible
  • You cant print to both local and network printers
  • Only one queue on one print server can be used for printing
  • All queues on only one CUPS server are available for printing

Question 65

Question
As system administrator root, you use the lpoptions command to change printer options, such as the page size. To which file are these options saved?
Answer
  • ~/.bashrc
  • ~/.lpoptions
  • /etc/cups/lpoptions
  • /etc/sysconfig/cups

Question 66

Question
You want to delete a certain print job from the laser print queue. Using the lpq command, you determined the job number of this job as 1234. Which command lets you delete that job?
Answer
  • lpr -P laser 1234
  • lprm -P laser 1234
  • lpremove -P laser 1234
  • lpadmin -d laser -r 1234

Question 67

Question
Which command is suitable for displaying the CPU load as a percentage?
Answer
  • w
  • top
  • nice
  • uptime

Question 68

Question
What action does the jobs command perform?
Answer
  • Lists all scheduled cron jobs
  • Lists all mail items in the mail queue
  • Lists the content of the shell's job control
  • Lists all print jobs in the print queue

Question 69

Question
Using the nice command, what is the highest priority root can assing to a process?
Answer
  • -20
  • -19
  • 0
  • 19
  • 20
  • 99

Question 70

Question
To preserve the command history even when the shell is closed, the history is written to a file in the user's home directory. Which file holds the history information of the bash shell?
Answer
  • bash_history
  • .bash_history
  • ?bash_history
  • $bash_history
Show full summary Hide full summary

Similar

Linux Essentials Tema 2
Ozelitotiktak
ESTRUCTURA DEL SISTEMA OPERATIVO: Linux/Ubuntu
Jose Ariza7727
FICHAS LINUX
remg22
Diferentes versiones de sistema operativo que existe WINDOWS VS LINUX
cris.ferherr97
Linux Essentials Tema 4
JuanmaRguez
Linux Essentials Tema 2
JuanmaRguez
Tema 11 Administración de usuarios y permisos en Linux
Ramon El Varilla
S.O. Linux
Corina Arteaga
Principios del software libre
Roxy Castle
Linux Essentials Tema 3
Jesus Reyes Real
SISTEMA OPERATIVO LINUX
bryantoledo1996