konto usunięte

Temat: Trochę pytań z SUSE - ktoś pomoże w ustaleniu, która odp...

1. 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 ?

2. A) 0
B) 1
C) 3
D) 100
E) 1000
F) depends

1. Which command is used to enter or change the quota for user tux?

A)
B)
C) edquota -u tux
D)
E)\
2.
3.
4. Where can you set global shell environment variables for all users independent of their shell?

1. A) /etc/profile
B)
C)
D)

2.
3. What information do you need to set up an LDAP client? (choose 4)

A) LDAP version
B) LDAP base DN
C) Kind of encryption
D)
E) Adress of the LDAP server
F)
4.

5. 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)

A) title
B)
C) initrd
D) kernel
E)
F)
G)

6. Which command can you use to check an ext2/ext3 file system for a correct superblock, faulty data blocks, or faulty allocation of data blocks?

1. A)
B)
C)
D) e2fsck
E)
2.
3. You have a /temp/data directory containing the files file, file1, file2. You want to copy the file1 and file2 files to the /data-old directory that already exist. In a terminal window, which command accoplishes this?

A)
B)
C) cp /tmp/data/* /data-old
D)

4. Which command can be used to view the inode assigned to a filename?

A) ls -i
B)
C)
D)

5. In which file are global configurations for users who use bash as their login shell set?

A)
B)
C)
D) /etc/bash.bashrc

6. Which is the main configuration file for logrotate?

1. A)
B)
C)
D) /etc/logrotate.conf

2. You want to redirect both output and error messages of the find command to the find-output file.
Which command accomplishes this task?

A)
B)
C) find /etc-name “*conf” > find-output 2>&1
D)

3.
4. You have a file named file1 and you want to create a symbolic link named link-to-file1 to the file.
In terminal window, which command accomplishes what you want? (choose 2)

1. A)
B)
C) ln -s file1 link-to-file1
D)
E) cp -s file1 link-to-file1
F)

2. To which pricess does the process ID 1 alweys belong?

A) init
B)
C)
D)
E)

3. In a terminal window, which command displays the name of the directory you are currently in?

1. A)
B) pwd
C)
D)

2. What is the minimum number of partitions requires by a SLES 10 system?

A)
B)
C) 2
D)

3. When SUSE Linux Enterprise Server 10 starts, some boot messages scroll by on the screen qiuckly. What is the name of the file in /var/log/ where these messages stored?

/var/log/boot.msg

1. Which file system type supports ACLs withous a special mount option?

A)
B)
C) XFS
D)
2. The useradd command is used to create new user. Which file contains information on the primary grup. Shell and other parameters to be used by useradd when not specified on the command line?

A)
B)
C)
D) /etc/default/useradd

3. What does the following command do? tar -tzvf /tmp/backup.tgz etc/HOSTNAME

1. A)
B)
C)
D) 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

2. Which options are PAM module types that can be used in a PAM configuration file?
(choose 4)

A)
B) auth
C)
D) account
E) session
F) password

3. Which command displays CPU and input/output statistics for devices and partions?

A)
B)
C)
D)
E) iostat
F)
4. G)

5. How do you start YAST module (for instance, the sw_single module used to install software) directly from the command line? (choose 2)

A) yast sw_single
B) yast2 sw_single
C)
D)
E)

6. You have limited access to the /admin directory of the web interface of your CUPS server with the following statement in /etc/cups/cupsd.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 password?

A)
B)
C)
D) lppswd -a cupsadmin -g sys

7. You want to view the last 23 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?

A) tail -20f /var/log/messages
B)
C)
D)

8. 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 accomplishes this?

A)
B)
C) scp mytext da20.digitalairlines.com :/tmp
D)

9. You want to copy the master boot record, the partition table, and the 2 magic bytes at the beginning of /dev/hda 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)
C)
D)

10.
11. You want to create a new user account tux with the password penguin (password hash: Trzxcvqq) and a default home directory. Which command can be used to create the account with the above parameters?

A)
B)
C) useradd -m -p “Trzxcvqq” tux
D)

12. Which statement about an incremental backup is correct?

A)
B)
C)
D) The amount of data that needs to be backed up with each incremental backup depends only the amount of data changed the last incremental backup.

13. 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)
B)
C) ~/.ssh/known_hosts
D)

14. Which file can be used to send a message to users logging in on a text console?

A)
B) /etc/motd
C)
D)

15.
16. What is the difference between the /dev/st0 and /dev/nst0 devices?

A)
B) /dev/st0 is the first tape drive;
/dev/nst0 refers to the same tape drive in non-rewinding mode
C)
D)

17. You entered your quota information in /etc/fstab. What do you have to do next?

A)
B)
C)
D) Remount the file system for the quotas to be defined.

18. You are viewing the manual page of crontab, but it does not contain the informations you looking for. You suspect there is another crontab manual page.
Which command could you use to find out if another man page exist?

A)
B) whatis crontab
C) man -k crontab
D)
E)

19. Which command would you use to start the xeyes program in the background?

A) xeyes &
B)
C)
D)
E)
F)

20. Which statement about PAM are correct? (choose 3)

A)
B)
C) configuration files of PAM madules can be found in /etc/pam.d/ and /etc/security
D)
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 curent authentication mechanism

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

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

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

23. A) getfacl source > destination
B)
C)
D)

24.
25. What is the key characteristic of the root account?

A)
B) The user ID is (UID) 0
C)
D)

26. In terminal window, which command shows you the groups you are member of?

A) id
B)
C)
D)

27. You entered the following as boot option in the GRUB boot screen: nit=/bin/bash
What does the option mean?

A)
B)
C) The system is started directly in a bash shell. You are automatically logged in as a root without being asked for a password.
D)
E)
F)

28. You want to view the status (locked, valid, password, etc) of the tux account. Which command displays the desired information?

A)
B)
C)
D) passwd -S tux

29. While in insert mode, how do you save a file and close vi?

A)
B)
C) press ESC and :wq
D)

30. Which protocol is used to send messages by the ping command?

A)
B)
C)
D) ICMP
E)
F)

31.
32. The /backup/snapshot was changed to the /backup/backup_monday archive. Which command will now write new or modifie files below /home?

A)
B)
C) tar -cz -g /backup/snapshot -f /backup/backup_monday.tgz /home
D)
E)
F)

33. Which command is suitable for displaying the CPU load as a percentage?

A)
B) top
C)
D)

34. In a terminal window, your current working directory is /home/geeko. You want to change to the /tmp directory. Which command will make desired change of directiories? (choose 2)

A)
B) cd /tmp
C)
D)
E)
F) cd ../../tmp

35. From command mode in vi, what do you have to do to enter text?

A)
B) press i
C)
D)

36. Which command dispplays information about your hard device and lets you manage certain hard drive parameters?

A)
B)
C)
D)
E)
F)
G) hdparm

37. You want to disable the network device eth0. Which command can you use?

A)
B)
C) ip link set eth0 down
D)

38. Why are the noauto and users options used with /etc/fstab?

A)
B) They allow any user to mount and unmount a partition.
C)
D)

39. In the bash shell, which command can be used to create a MY_NAME variable containing the value Joe?

A) MY_NAME=Joe
B)
C)
D)

40. What action does the jobs command perform?

A)
B)
C) Lists the content of the shell's job control
D)

41. You need to find the files in the /etc directory that contain the word DocumentRoot. In terminal window, which command will help you find it?

A)
B) grep -r DocumentRoot /etc/*
C)
D)

42. What does the following command do? Tar -czvf /tmp/backup.tgz /etc/HOSTNAME

A)
B) It includes the /etc/HOSTNAME file in the newly created /tmp/backup.tgz archive
C)
D)

43. In which file is the name resoluton confugured?

A)
B) /etc/resolf.conf
C)
D)
E)

44. To preserve the command history even the shell is closed, the history is written to a file in the user's directory. Which file holds the history information of the bash shell?

A)
B) .bash_history
C)
D)
45. You want to add user tux to the southpole group without changing his primary group membership. Which command do you use for this purpose?

A)
B)
C)
D) groupmod -A tux southpole

46. As root, you entered the runlevel command. What does the following output indicate? N5
47.
A) You are in runlevel 5. A previous runlevel is not available.
B)
C)
D)

48. You have a test directory with the following permissionsL rwx------. You want to change the permissions to the following values: r-xr-xr-x. Which command accomplishes this?

A)
B) chmod a=rx test
C)
D)
49.
50. Which key combination can you use to stop a process that runs in the foreground?

A)
B) crtl + z
C)
D)

51. Which statement about sudo command is correct?

A)
B)
C) You can edit the sudo configuration file /etc/sudoers with the visudo command
D)

52. 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 option saved? (look at 95.)

A)
B) ~/.lpoptions
C)
D)

53.
54. 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?

A)
B)
C) rpm -qpl hugin-0.6.1-2.2.i586.rpm
D)

55. Which command can you use to set up limits for failed logins?

A)
B)
C)
D) faillog
E)

56. What is the correct syntax for mounting the second partition of the first SCSI hard disk?

A)
B)
C)
D)
E) mount /dev/sda2 /mnt
F)

57. Which command shows the default shell of a user?

A)
B)
C)
D) finger user

58. What is the result of the following command? Dd if=/dev/zero of=/dev/hdd bs=512 count=1
(choose 2)

A) Overwrites an existing partition table
B)
C)
D) Writes zeros in the first 512 bytes of the hard disk block
E)

59. 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?

60. A)
B)
C) find /etc -name “*conf” 2>/dev/null
D)

61. What does the following line of the sudo configuration file mean? Geeko ALL=/sbin/shutdown

A)
B) it allows the user geeko to shut down the computer
C)
D)
E)

62. Which statement about the primary (default) group of a user is correct?

A)
B)
C) The primary group membership of a user is defined in the /etc/passwd file
D)

63. Which statement about symmetric encryption is correct?
64.
A) The same key is used for encryption and decryption.
B)
C)
D)

65. While the printers seen physically okay, you are encountering problems with CUPS. What is the best place to start looking for hints on what is wrong?

66. A)
B)
C)
D) in the /var/log/cups/error_log file

67. Which statement about partitions are correct? (choose 3)

A) Extend partitions cen be subdivided into logical partitions
B) A primary partition consist of a cnotinuous range of cylinders
C) Logical partitions do not require entries in the main partition table
D)
E)
F)

68. You want to redirect the output of the ls command to the ls-output file which already exist. The output should be appended of the file; it should not overwrite the existing content. Which command accomplishes this task?

A)
B)
C)
D) ls >> ls-output

69. Which statement regarding symbolic links is true? (choose 2)

A) A symbolic link can point to a file on a different file system.
B)
C)
D) if you delete the orginal file, the symbolic link points to a non-existing file
E)

70. 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)

A)
B)
C) ln -s file1 link-to-file1
D)
E) cp -s file1 link-to-file1
F)

71. You wonder which instaled RPM package the /etc/exports file belongs to. Which command will give you desied informations?

A)
B) rpm -qf /etc/exports
C)
D)

72. When SUSE Linux Enterprise Server 10 starts, some boot messages scroll by on the screen quickly. What is the name od the file in /var/log/ where these messages are stred?

/var/log/boot.msg
73.

74. Which user authentication methods can be used with SLES 10? (choose 4)

A) NIS
B)
C)
D)
E) LDAP
F)
G) Windows Domain
H) Local (/etc/passwd)

75. What is the output of the echo '$HOME' command when user geeko (home directory /home/geeko) entr it at the bash shell prompt?

A)
B) $HOME
C)
D)

76. How large is an inode?

A)
B)
C) 128 bytes
D)

77. You have set the following permission on a test directory: rwxrwxrwx. Which statement about files in the test directory is correct?

A)
B)
C)
D) A file created in that directory has the same owning group as the owning group of a test directory

78. 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?

A)
B) lprm -P laser 1234
C)
D)

79. Which command can be used of you do not find the desired informations in a manual page, or find no manual page at all for the program?

A)
B) info program
C)
D)

80. Which statement about the /sbin/ldconfig command is correct?

A)
B)
C) The ldconfig command is used to update the software library cache.
D)

81. You would like to run command2 only if command1 did not complete successfully. Which command accomplishes this task?

A)
B) command1 || command2
C)
D)

82. Which file system type support ACLs without a special mount option?

A)
B)
C) XFS
D)

83. How do you activate an ACL when mounting a file system manually?

A)
B)
C) mount -o acl /dev/hda5 /data
D)

84. Which is the main configuration file for logrotate?

A)
B)
C)
D) /etc/logrotate.conf

85. 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)
C)
D)

86. Which range od User ID is used for normal (unprivileged) users on SUSE Linux Enterprise Server 10?

A)
B)
C)
D) 1000 and above

87. You have a /tmp/data directory containing files: file, file1, file2. You want to delete the directory and its content. In terminal window, which command accomplishes this?

A)
B) rm -r /tmp/data
C)
D)

88.
89. You want to install the ethereal RPM package that is available on the SUSE Linux Enterprise Server 10 installation media. Which command installs the ethereal package and resolves dependencies as needed?

A)
B) yast -i ethereal
C)
D)

90. You can schedule jobs to be executed by cron in several ways. Which directories are used for scripts that are to be executed at tregular intervals? (choose 2 )

A) /etc/cron.d/
B)
C) /etc/cron.daily/
D)

91. As system administrator root, you use the lpoptions command to change printer options, such a page size. To which file are these options saved?

A)
B)
C) /etc/cups/lpoptions
D)

92. In terminal window, which command can you enter to change your home directroy? (/home/geeko) (choose 2)

A) cd
B) cd~
C)
D)
E)

93. Which statement about the Set User ID bit on executable files is correct?

A)
B)
C)
D) The SUID should be set when really needed and only on applications that are well tested.

94. What is the name of the file containing the initframs? Initial ram file system

A)
B) /boot/initrd
C)
D)
E)
F)

95. In which file is the host name of Linux computer configued?
96.
97.
98. etc/HOSTNAME
99.

100. 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?

A)
B) rsync -a /home/. /backup
C)
D)

101. Which file contains informations about which user was last logged in, where the user logged in, and how long the user was logged in?

A)
B) /var/log/lastlog
C)
D)
E)

102. You would like to run command 1 and then command 2, whether or not command 1 completed successfully. Which command accomplishes this?

A)
B) command1 ; command2
C)
D)

103. Which statement about differential backups is correct?

A)
B)
C) To restore a differential backup, you need the lasst fill backup and the last differential backup thar was made since the last full backup.
D)

104. Which command would you use to start the xeyes program in the background?
105.
A) xeyes &
B)
C)
D)
E)
F)

106.
107. Which command can you use to generate an MD5-encrypted password for GRUB?

A)
B)
C) grub-md5-crypt
D)
108.

109. Which group name is stored in /etc/passwd?

A) Primary group
B)
C)
D)

110. Which file contains the configuration information of the print queues available on your CUPS server?

111. A)
B)
C)
D) The /etc/cups/printers.conf file.

112. Using the nice command, what is the highest priority root can assigne to a process?

A) -20
B)
C)
D)
E)
F)

113. Which statement about the LVMs components are correct? (choose 2 )

A)
B)
C)
D) A physical volume can be a partition or an etire hard disk.
E) A vloume group can be reduced in size by removing physical volumes.
F)

114. The /etc/sysconfig/network/ifcfg-eth-id-macaddress configuation file contais a BOOTPRO option. Which are possible values of BOOTPRO?

A) static or DHCP
B)
C)
D)

115. Which statement about CUPS Using Broadcasting configuration is correct?

A)
B) You can print to both local and network printers
C)
D)

116. Which statement about the Linux boot process are correct? (choose 3)

A)
B)
C) The kernel looks for and mount the initrd
D)
E) Linuxrc loads the modules to mount the root file system
F) The root manager loads the kernel and initrd into memory.

117. What is the type command used for?

A)
B)
C) type determines the type of a command (shell builtin, alias, file on hard disk)
D)

118. Suppose you change from your current runlevel 5 to runlevel 3. Which statement is correct?

A)
B)
C) if there is no K* link for certain service in /etc/init.d/rc5.d/ but there is an S* link in /etc/init.d/rc3.d/, the service is started
D)

119. You want to use the ip command to set a new address for your network device eth0. It is a standard class C network. The broadcast address and network route should be set accordingly.
Which command is correct?

A)
B)
C) ip addr add 192.168.0.20/24 dev eth0 brd +
D)

120. You have a text file that contains empty lines. Using grep and regular expressions, which command displays the file without the empty lines?

A)
B)
C) grep -v ^$ file
D)

121. You created a script (/root/bin/backup.sh) that backs up your files when executed. Using cron, you want to execute this script once every Saturday at 3:00 pm. Which line would you have t oenter after invoking crontab -e in a terminal window?

A)
B) 0 15 * * 6 /root/bin/backup.sh
C)
D)
E)
F)

122. Which command creates the .depend.boot, .depend.start and .depend.stop files in /etc/init.d/ ?

A)
B) insserv
C)
D)

123. You want to secure POP3 connection to a sever 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 the 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 tunnel between your host and the SSH server?

A)
B)
C) ssh -L 11110: pop3.digitalairlines.com:110 geeko@ssh/digitalairlines.com
D)

124. Which command can be used to view the inode assigned to a filename?

A) ls -i
B)
C)
D)

125. Which command can you use to create a Reiser file system on the sda6 partition?
(choose 2)

A) mkreiserfs /dev/sda6
B)
C)
D)
E) mkfs -t reiserfs /dev/sda6

126. Which part can be com bined in the syslog-ng configuration file (/etc/syslog-ng/syslog-ng.conf) to specify what information is logged? (choose 3)

A)
B)
C) Filters
D) Sources
E)
F) Destinations
G)

127. What is the purpose of the ssh-agent command?

A)
B)
C) ssh-agent is used to avoid typing the passphrase for your key on each login
D)

128. You want to boor your system to runlevel 3. Which option do you have to enter at the GRUB boot manager dialog?

A) 3
B)
C)
D)

129. Which are benefits of using LVM? (choose 4)

A)
B) You can create extremely large logical volumes
C) You can add logical vloumes in a running system
D) You can add hard disks to a volume group in a running system.
E)
F) The snapshot feature allows consistent backups in a running system

130. Fro mthe command line, which command would you use to print the document.ps file on the laser printer?

A) lp -d laser document.ps
B)
C)
D)

131. What is the correct order of steps to change the partition table usinf fdisk?

A)
B) Start fdisk > change the partition table > write the partition table to hard disk >exit fdisk > reboot
C)
D)

132. You want to delete all data on the second hard drive (/dev/hdb). Which command accomplishes this?

A)
B) dd if=/dev/zero of=/dev/hdb bs=100k
C)
D)

133. Within less, how do you search for a string downwards from where the cursor is positioned?

A)
B)
C) /string
D)

134. Routes to the directly connected network are automatically set up when a device is stored. All other routes are saved in which configuration file?

A)
B)
C)
D)
E)
F) /etc/sysconfig/network/routes

135. You entered your quota informations in /etc/fstab. What do you have to do next?

A)
B)
C)
D) Remount the file system for the quotas to be defined.

136. How can you list the ACLs (if there are any) of a file test?

A)
B)
C) getfacl test
D)

137. Which list of wireless networks are keept by NetworkManager?

A)
B)
C) trusted list and prefered list
D)

138. What is the effect of selecting the option “Enable IP Forwarding” in the routing configuration in YaST?

A)
B)
C)
D) IP packets that do not have this host as their destination are transferred from one networkconnected to the host to another network connected to this host, according to the routing table.

139. Which RAID level is described by the following sentence? This level improves the performance of Your data access; however, it does not provice redundancy.

A) RAID 0
B)
C)
D)
E)

140. Which command displays the value stored in the $MYVAR cariable?

A)
B)
C)
D) echo $MZVAR

141. You want to find out which jobs are currently queued in the laser printer queue on your CUPS printer server. Which command displays the information you need?

A)
B)
C) lpq -P laser
D)

142. Which are configuration files of syslog-ng? (choose 3)

A)
B)
C)
D) /etc/sysconfig/syslog
E)
F) /etc/syslog-ng/syslog-ng.conf
G)/etc/syslog-ng/syslog-ng.conf.in

143. Whe useradd command is used to create new users. Which file containd informations of the primary group, shell and other parameters to be used by useradd when not specified on the command line?

A)
B)
C)
D) /etc/default/useradd
144. Using the nice command, what is the highest priority a normal user can assign to a process?

A)
B)
C) 0
D)
E)
F)

145. When you connect to 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 it?

A)
B)
C) ~/.ssh/known_hosts
D)

146. Which are journaling file systems? (choose 3)

A) XFS
B)
C) ext3
D)
E)
F)
G) ReiserFS

147. Where can you set global shell environment variables for all users independent of their shell?

A) /etc/profile
B)
C)
D)