Certified Linux Administrator 11 v2

Description

Examen de certificaciòn SLES 11 Administrator
Giovanni Gonzalez Moreno
Quiz by Giovanni Gonzalez Moreno, updated more than 1 year ago
Giovanni Gonzalez Moreno
Created by Giovanni Gonzalez Moreno over 9 years ago
55
0

Resource summary

Question 1

Question
You want to disable the network device eht0. Which command can you use?
Answer
  • ifconfig halt eth0
  • ipconfig eth0 halt
  • ip link set eth0 down
  • ip param set eth0 halt

Question 2

Question
You wonder which installed RPM package the /etc/exports file belongs to. Which command will give you the desired information?
Answer
  • rpm -f /etc/exports
  • rpm -qf /etc/exports
  • rpm -ql /etc/exports
  • rpm --provides /etc/exports

Question 3

Question
Which is the main configuration file for logrotate?
Answer
  • /etc/logrotate
  • /etc/logr.conf
  • /etc/cron/logrotate
  • /etc/logrotate.conf

Question 4

Question
You want to delete all data on the second hard drive (/dev/hdb). Which command accomplishes this?
Answer
  • rm /dev/hdb
  • dd if=/dev/zero of=/dev/hdb bs=100k
  • dd of=/dev/zero if=/dev/hdb bs=100k
  • dd if=/dev/zero of=/dev/hdb count=1 bs=1024

Question 5

Question
You want to copy the mytext file from your computer to the /tmp/ directory on the remote computer da20.digitalairlines.com. Which command would you use to accomplish this?
Answer
  • ssh mytext da20.digitalairlines.com:/tmp
  • scp da20.digitalairlines.com:/tmp mytext
  • scp mytext da20.digitalairlines.com:/tmp
  • sftp mytext da20.digitalairlines.com:/tmp

Question 6

Question
Which statement about a differential backup is correct?
Answer
  • The use of differential backups is limited to backups on tape roboters.
  • To restore a differential backup, you need tha last differential backup only.
  • To restore a differential backup, you need the last full backup and the last differential backup that was made since the last full backup.
  • The amount of data that needs to be backed up with each differential backup depends only on the amount of data changed since tha last differential backup.

Question 7

Question
Which statement about the Set User ID bit on executable files is correct?
Answer
  • The SUID bit has no security implications.
  • The SUID bit on executables has no effect; it is only relevant when set on directories.
  • The SUID bit makes it more difficult to exploit any potential vulnerabilities in the program.
  • The SUID should only be set when really needed and only on applications that are well tested

Question 8

Question
You are viewing the manual page of crontab, but it does not caontain the information you are looking for. You suspect there is another crontab manual page. Which command could you use to find out if another crontab manual page exists? (Choose 2)
Answer
  • man a crontab
  • whatis crontab
  • man -k crontab
  • man --next crontab
  • man --showall crontab

Question 9

Question
You want to know which files are contained in the hugin-0.6.1-2.2.i586.rpm RPM package, which has not yet been installed. Which command will give you this information?
Answer
  • rpm -f hugin-0.6.1-2.2.i586.rpm
  • rpm -qpf hugin-0.6.1-2.2.i586.rpm
  • rpm -qpl hugin-0.6.1-2.2.i586.rpm
  • rpm --provides hugin-0.6.1-2.2.i586.rpm

Question 10

Question
You created a script (/root/bin/backup.sh) that backups up your files when executed. Using cron, you want to executed ths script once every Saturday at 3:00 pm. Which line would you have to enter after invoking crontab -e in a terminal window?
Answer
  • 15 0 * * 6 /root/bin/backup.sh
  • 0 15 * * 6 /root/bin/backup.sh
  • 0 15 * 6 * /root/bin/backup.sh
  • 15 0 * * 6 root /root/bin/backup.sh

Question 11

Question
While in insert mode, how do you save a file and close vi?
Answer
  • Press Esc and :q
  • Press Esc and :w
  • Press Esc and :wq
  • Press Esc and :zz

Question 12

Question
You want to install the ethereal RPM package that is available on the SUSE Linux Enterprise Server 10 installation media. Which command install the ethereal package, and resolves dependencies as needed?
Answer
  • rpm -i ethereal
  • yast -i ethereal
  • yast -l ethereal
  • rpm -U ethereal

Question 13

Question
Which command can be used to view the inode assigned to a filename?
Answer
  • ls -i
  • fsck -h i
  • inode --list
  • cat /proc/inodes

Question 14

Question
Which lists of wireless networks are kept by NetworkManager?
Answer
  • Preferred list and avoid list
  • User list and encryption list
  • Trusted list and preferred list
  • Trusted list and untrusted list

Question 15

Question
What is the effect of selecting the optoin "Enable IP Forwarding" in the routing configuration is YaST?
Answer
  • IP packets that do have this host as their destination are routed to another host.
  • IP packets that do not have this host as their destination are filtered according to the firewall rules.
  • IP packets that do have this host as their destination are dropped to protect the host from attacks.
  • IP packets that do not have as their destination are transferred from one network connected to he host to another network connected to this host, according to the routing table.

Question 16

Question
You want to boot your system to runlevel 3. Which option do you have enter at the GRUB boot manager dialog?
Answer
  • 3
  • init=3
  • boot=3
  • runlevel=3

Question 17

Question
You would like to run command1 and then command2, whether or not command1 completed successfully. Which command accomplishes this task?
Answer
  • command1 | command2
  • command1 ; command2
  • command1 > command2
  • command1 & command2

Question 18

Question
You want to find out which jobs are currently queued in the laser print queue on your CUPS print server. Which command displays the information you need?
Answer
  • lpstat -t
  • lp -P laser
  • lpq -P laser
  • lpadmin -P laser

Question 19

Question
In which is the host name of a Linux computer configured? (Hint: You do not need to include the entire path.) /etc/HOSTNAME
Answer
  • True
  • False

Question 20

Question
You want to view the status (loked, valid password, etc.) of the account tux. Which command displays the desired information?
Answer
  • passwd -L tux
  • passwd -v tux
  • passwd -p tux
  • passwd -S tux

Question 21

Question
In which file are global configurations for users who use bash as their login shell set?
Answer
  • /etc/bashrc
  • /etc/bash.cf
  • /etc/bash.conf
  • /etc/bash.bashrc

Question 22

Question
Which command displays the value stored in the $MYVAR variable?
Answer
  • less MYVAR
  • cat $MYVAR
  • echo MYVAR
  • echo $MYVAR

Question 23

Question
Which file contains the configuration information of the print queues available on your CUPS server?
Answer
  • The /etc/printcap file
  • The /etc/sysconfig/cups file
  • The /etc/cups/cups.conf file
  • The /etc/cups/printers.conf file

Question 24

Question
How can you list the ACLs (if there are any) of a file test?
Answer
  • ls -l test
  • lsacl test
  • getfacl test
  • ls -l --acl test

Question 25

Question
Routes to the directly connected network are automatically set up when a device is started. All other routes are saved in which configuration file?
Answer
  • /etc/route
  • /etc/routes
  • /etc/routes.conf
  • /etc/network/routes
  • /etc/sysconfig/routes
  • /etc/sysconfig/network/routes

Question 26

Question
What information do you need to set up an LDAP client? (Choose 4.)
Answer
  • LDAP version
  • LDAP base DN
  • Kind of encrytion
  • Synchronization frequency
  • Address of the LDAP server
  • File name of the LDAP database

Question 27

Question
What is the minimum number of partitions required by a SLES 10 system?
Answer
  • None
  • 1
  • 2
  • 4

Question 28

Question
What is the purpose of the ssh-agent command?
Answer
  • ssh-agent is a program that helps configure the ssh daemon.
  • ssh-agent is used to fecth public keys from machines within your network.
  • ssh-agent is used to avoid typing the passphrase for your key on each login.
  • ssh-agent is a program that checks for machnes in the network that have an ssh daemon running.

Question 29

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

Question 30

Question
Which command can you use to create a Reiser file system on the sda6 partition? (Choose 2.)
Answer
  • mkreiserfs /dev/sda6
  • fdisk.reiserfs /dev/sda6
  • make.reiserfs /dev/sda6
  • fdisk -t reiserfs /dev/sda6
  • mkfs -t reiserfs /dev/sda6

Question 31

Question
You have limited access to the /admin directory of the web interface of your CUPS server with the following statement in /etc/cups/cups.conf: <Location /admin> AuthType BasicDigest AuthClass Group AuthGroupName sys Order Deny, Allow Deny From All Allow From 127.0.0.1 </Location> To allow the cupsadmin user to access the /admin directory when connecting from localhost, how do you create the cupsadmin user and set his password?
Answer
  • passwd cupsadmin
  • lppasswd cupsadmin
  • passwd --cups cupsadmin
  • lppasswd -a cupsadmin -g sys

Question 32

Question
You have a test directory with the following permissions: rwx------ You want to change the permissions to the following values: r-xr-xr-x. Which command accomplishes this?
Answer
  • chmod 777 test
  • chmod a=rx test
  • chmod u=rx,a-rx test
  • chmod u+w,g+rx,o+rx test

Question 33

Question
How do you activate an ACL when mounting a file system manually?
Answer
  • mount --acl /dev/hda5 /data
  • mount -f acl /dev/hda5 /data
  • mount -o acl /dev/hda5 /data
  • mount --use-acl /dev/hda5 /data

Question 34

Question
You have a test directory with the following permissions: rwx------ You want to change the permissions to the following values: r-xr-xr-x. Which command accomplishes this?
Answer
  • chmod 777 test
  • chmod u=rx,a-rx test
  • chmod u-w,g+rx,o+rx test
  • chmod u+w,g+rx,o+rx test

Question 35

Question
What does the following line of the sudo configuration file mean? geeko ALL=/sbin/shutdown
Answer
  • All users are allowed to shut down the computer.
  • It allows the user geeko to shut down the computer.
  • All users (except geeko) are allowed to shut down the computer.
  • User geeko is allowed to shut down the computer with name ALL.
  • All users of the computer with the name geeko are allowed to shut down the computer.

Question 36

Question
What is the key characteristic of the root account?
Answer
  • The user name root
  • The User ID (UID) 0
  • The Security Identifier (SID)
  • The Universally Unique Identifier (UUID)

Question 37

Question
Which statement about an incremental backup is correct?
Answer
  • The use of incremental backups is limited to backups on tapes.
  • To restore an incremental backup, you need the last incremental backup only.
  • To restore an incremental backup, you need the last full backup and incremental backup that was made since the last full backup.
  • The amount of data that needs to be backed up with each incremental backup depends only on the amount of data changed the last incremental backup.

Question 38

Question
Which options are PAM module types that can be used in a PAM configuration file? (Choose 4.)
Answer
  • key
  • auth
  • card
  • account
  • session
  • password

Question 39

Question
Which command shows you the default shell of a user?
Answer
  • w user
  • id user
  • who user
  • finger user

Question 40

Question
Suppose you change from your current runlevel 5 to the new runlevel 3. Which statement is correct?
Answer
  • Nothing will happen at all.
  • If there is a K* link for a certain service in /etc/init.d/rc5.d/ but no corresponding S* link l /etc/init.d/rc3.d/, nothing will happen.
  • If there is no K* link for a certain service in /etc/init.d/rc5.d/ but there is an S* link in /etc/init.d/rc3.d/, the service is started.
  • If there is a K* link for a certain service in /etc/init.d/rc5.d/ and there is an S* link in /etc/init.d/rc3.d/, the service is stopped and started again.

Question 41

Question
In a terminal window, which command can you enter to change to your home directory (/home/geeko)? (Choose 2.)
Answer
  • cd
  • cd ~
  • cd -h
  • cd home
  • cd --homedir

Question 42

Question
You have a file named file1 and you want to create a symbolic link named link-to-file1 to the file. In a terminal window, which command accomplishes what you want? (Choose 2.)
Answer
  • ln file link-to-file1
  • ln link-to-file1 file1
  • ln -s file1 link-to-file1
  • ln -s link-to-file1 file1
  • cp -s file1 link-to-file1
  • mv -s file1 link-to-file1

Question 43

Question
Which are configuration files of syslog-ng? (Choose 3.)
Answer
  • /etc/logging
  • /etc/sysconfig/log
  • /etc/log/syslog-ng
  • /etc/sysconfig/syslog
  • /etc/log/syslog-ng.conf
  • /etc/syslog-ng/syslog-ng.conf
  • /etc/syslog-ng/syslog-ng.conf.in

Question 44

Question
The useradd command s used to create new users. Which file contains information on the primary group, shell and other parameters to be used by useradd when specified on the command line?
Answer
  • /etc/profile
  • /etc/passwd
  • /etc/shadow
  • /etc/default/useradd

Question 45

Question
What does the following command do? tar -tzvf /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 /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 46

Question
As root, you entered the runlevel command. What does the following output indicate? N5
Answer
  • You are in runlevel 5. A previos runlevel is not available.
  • You are in runlevel 5. A previous runlevel was 3 (network).
  • You are in runlevel 3 (network). The system is changing now to runlevel 5.
  • You are currently in no runlevel. The system is changing now to runlevel 5

Question 47

Question
You need to find the files in the /etc directory that contain the word DocumentRoot. In a terminal window, which command will help you find it?
Answer
  • discover DocumentRoot /etc
  • grep -r DocumentRoot /etc/*
  • search -r DocumentRoot /etc/*
  • find /etc -content DocumentRoot

Question 48

Question
You can schedule jobs to be executed by cron in several ways. Which directories are used for scripts that are to be executed at regular intervals? (Choose 2.)
Answer
  • /etc/cron.d/
  • /etc/crontabs/
  • /etc/cron.daily/
  • /var/spool/cron/tabs

Question 49

Question
As a normal user, such as geeko, 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 50

Question
Which command displays cpu and input/output statics for device and partitions?
Answer
  • siga
  • sitar
  • fdisk
  • lspci
  • iostat
  • hwinfo
  • hdparm

Question 51

Question
What is the result of the following command? (Choose 2.) dd if=/dev/zero of=/dev/hdd bs=512 count=1
Answer
  • Overwrites an existing partition table
  • Creates a LVM partition of 512 blocks
  • Backs up the /dev/zero and /dev/hdd files
  • Writes zeros in the firts 512 bytes of the firts hard disk block
  • Assings the physical volume zero to the logical volume hdd

Question 52

Question
You do not want to see any error messages when using the find command; you want to see only the results. Which command accomplishes this task?
Answer
  • find /etc -name "*conf" 0>/dev/null
  • find /etc -name "*conf" 1>/dev/null
  • find /etc -name "*conf" 2>/dev/null
  • find /etc -name "*conf" 3>/dev/null

Question 53

Question
In the terminal window, your current working directory is /home/geeko. You want to change to the /tmp directory. Which command will make the desired change of directores? (Choose 2.)
Answer
  • cd tmp
  • cd /tmp
  • cd ./tmp
  • cwd /tmp
  • cd ../tmp
  • cd ../../tmp

Question 54

Question
Why are the noauto and users options used with /etc/fstab?
Answer
  • A normal user is not allowed to access this partition.
  • They allow any user to mount and unmount a partition.
  • They specify the partitions that are bootable by a user.
  • They specify the partitions that are not bootable by a user.

Question 55

Question
You have a /tmp/data directory containing the files .file, file1 and file2. You want to copy the file1 and file2 files only to the /data-old directory that already exists. In a terminal window, which command accomplishes this?
Answer
  • cp /tmp/data /data-old
  • cp /tmp/data/. /data-old
  • cp /tmp/data/* /data-old
  • cp /tmp/data/? /data-old

Question 56

Question
You entered the following as a boot option in the GRUB boot screen: init=/bin/bash What does the option mean?
Answer
  • The bash is used as the default shell.
  • Linux starts without a graphical environment.
  • The system is started directly in a bash shell. You are automatically logged in as root without being asked for a password.
  • The system is started directly in a bash shell. You are automatically logged in as default user without being asked for a password.
  • The system is started directly in a bash shell. You are automatically asked for the root password before you are logged in as root.
  • The system is started directly in a bash shell. You are automatically asked for the default user's password before you are logged in.

Question 57

Question
You want to view tha last 20 lines of the /var/log/messages file and any new lines that are subsequently added by syslog to this file. Which command would you use?
Answer
  • tail -20f /var/log/messages
  • end -20f /var/log/messages
  • less -20f /var/log/messages
  • follow -20 /var/log/messages

Question 58

Question
Which RAID level is described by the following sentence? This level improves the performance of your data access; however, it does not provide redundancy.
Answer
  • RAID 0
  • RAID 1
  • RAID 4
  • RAID 5
  • RAID 6

Question 59

Question
To which process does the process ID 1 always belong?
Answer
  • init
  • boot
  • cron
  • X server
  • kernel (vmlinuz)

Question 60

Question
Which command would you use to star the xeyes program in the background?
Answer
  • xeyes &
  • xeyes &&
  • bg | xeyes
  • xeyes -bg
  • xeyes | bg
  • xeyes > bg

Question 61

Question
Which command creates the .depend.boot, .depend.start, and .dependn.stop files in /etc/init.d/?
Answer
  • init
  • insserv
  • mkinitrd
  • mkreiserfs

Question 62

Question
Whch command can you use to check an ext2/ext3 file system for a correct superblock, faulty data blocks, or faulty allocation of data blocks?
Answer
  • df
  • du
  • fdisk
  • e2fsck
  • reiserfsck

Question 63

Question
Which statements about the LVM components are correct? (Choose 2.)
Answer
  • A volumen group is aprt of a logical volume.
  • Logical volumes are grouped in a master group.
  • A volume group always consist of one physical volume.
  • A physical volume can be a partition or an entire hard disk.
  • A volume group can be reduced in size by removing physical volumes.
  • The operating system accesses the volume groups like conventional physical partitions.

Question 64

Question
When SUSE Linux Enterprise Server 10 starts, some boot messages scroll by on the screen quickly. What is the name of the file in /var/log/ where these messages are stored? /var/log/boot.msg
Answer
  • True
  • False
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
SISTEMA OPERATIVO LINUX
bryantoledo1996
Linux Essentials Tema 3
Jesus Reyes Real