Home

Řešené otázky k testu LPI

image

Contents

1. 482 483 484 485 486 487 488 489 490 491 492 493 494 What would the following command search for find size 25k e All files inside the current directory and all included subdirectories which are exactly 25 KBytes big In what section of your XF86Config file would you enter the directive to use a particular font server e Section Files Which of the following directories have to be placed on the root partition e sbin e dev e lib After unpacking the sourcecode of a GNU software package you want to compile and install it on your system Which of the following lines could be used e configure make make install You want to deinstall a deb packet foobar from your system What would be a proper command e dpkg r foobar What command would you use to get a list of all installed files coming from a debian packet named foobar e dpkg L foobar In which file will you find a listing of all used IO Ports of your computer e proc ioports Which command is NOT usable to install debian packages e dinst How could you describe the following commandline foo gt bar 2 gt amp 1 e The command foo writes its STDOUT and STDERR into the file bar What would the following command result in cp find size 12k tmp e All files in the current directory and in all included subdirectories which are smaller than 12 KByte will be copied to tmp What command is used to connect lines of diffe
2. e unset FOO What would the following command result in cp find size 12k tmp e All files in the current directory and in all included subdirectories which are smaller than 12 KByte will be copied to tmp What command is used to count the number of lines words and characters inside a textfile just the command no options ewe What would the following command result in cp home foo bar home bar foo foo e The files home foo bar and home bar foo are copied into the directory foo 439 440 441 442 443 444 445 446 447 448 449 450 451 452 You ve started three jobs in the background Now you would like to bring a particular one of them into the foreground again How could you do it e Get the list of jobs using the jobs command and then use fg jobID What command sends signals to processes just the command no options e kill What statement concerning the following wildcard is correct A Z e All files beginning with an uppercase letter followed by one While monitoring the integrity of the filesystems you detect that there are no more free inodes left on the home partition although there are many megabytes free space What could be the reason e user has created lots of very small files Consider an unmounted partition dev hdc7 should be mounted on usr local The following entry in etc fstab exists dev hdc7 usr local ext2 defaults 1 2 Which command cou
3. 236 237 How would you assign the result of the calculation 5 4 to the enviroment variable SUM in the bash shell e let SUM 5 4 Which command would copy the whole directory tree including all subdirectories under home foo to tmp e cp r home foo tmp How could you get the number of all accounts on your system including administrative and system accounts e wc l etc passwd What would the following command result in cp home foo bar home bar foo foo e The files home foo bar and home bar foo are copied into the directory foo How could you start the command foo in the background e foo amp What is a zombie process e A process which has already done its work but couldn t die due to other reasons What tool could you use to change the nice value of a running process e renice e top Which of the following regular expressions fits all words starting with an uppercase letter and ending with an d using grep e b A Z d b What statement concerning the following wildcard is correct A Z e All files beginning with an uppercase letter followed by one Which of these commands could you use to show one page of output at a time e less e more How could you monitor the amount of free blocks on dev hda3 e df dev hda3 Consider a mounted partition dev hdc7 is mounted on mnt Which commands could be used to unmount this filesystem e umount mnt e umount dev hdc7 How could you generate a report
4. home What disk partitioning program do you have access to by default in almost all Linux distributions e fdisk What command do you use in fdisk to look at the current partition list ep What file system label in fdisk is a Linux swap partition 38 39 40 Al 42 43 44 45 46 47 48 49 50 51 e 82 What file system label in fdisk is a Linux native partition e 83 What types of packages might you not choose for a file server that you would for a desktop e Console games e Sound e XFree86 What service would you turn on to ensure that no one overruns their allotted space on the file server e quotas At what file system level can the quota tool be used e Individual partitions In what file do you assign quotas to a partition e etc fstab What files do you have to create to properly activate quotas on a file system e quota group e quota user What command do you type to edit quota assignments e edquota What file would you edit on the server to set up NFS shares e etc exports Which of the following are valid NFS share statements e Projects domain com rw e Projects domain com rw e Projects ro server rw no_root_ squash e Projects domain com rw domain org ro Which file on the server would you edit to set up Samba shares e etc smb conf Which of the following are valid lines from a Samba statement e public yes e hosts allow 192 168 e dont de
5. 9 tmp Which command shows you how much space in Megabytes is available on all mounted partitions e df m You ve bought a new harddisk and installed it in your Linux box as master on the second IDE channel After partitioning it into two primary partitions and creating filesystems on both partitions you want to ensure that both new partitions will be mounted automatically on bootup What is to do e Add an entry for dev hdc1 and dev hdc2 to etc fstab The user foo has got a userquota of 20 megabyte in his home directory Now you want to give him 40 megabyte instead What is to do e Use the command edquota foo What would the following command result in cp find size 12k tmp e All files in the current directory and in all included subdirectories which are smaller than 12 KByte will be copied to tmp The textfile foo has got 30 lines of text How could you extract the lines 11 to 20 to STDOUT e head n 20 foo tail n 10 e tail n 20 foo head n 10 What would the following command result in echo date H M gt file e The current time Hours and Minutes will be written into file What is the result of the following command cd foo e The current directory is changed to the home directory of the user foo How would you suspend a running foreground job e Ctrl Z What is a daemon process e A process without own terminal How can you describe the function of the following commands foo bar gt gt foobar
6. GNU C libraries Which of the following kernels would you choose for a production machine e 5 2 61 e 6 4 16 Where should you install the kernel source e usr srce linux What program would you use if you needed to add an incremental update to the source e patch What command builds the old kernel configuration file to use as a base 67 68 69 70 71 72 73 74 75 76 77 78 e make oldconfig Which of the following are tools you can use to create the new kernel configuration file e menuconfig e config e xconfig What command builds the kernel itself e make bzImage Where do you have to move a copy of the new kernel e boot What should the new kernel be named e vinlinuz version What program has to be reconfigured before you can boot to a new kernel e LILO What of the following commands would you use to power the machine down e shutdown e halt e init 0 What do you type at the LILO prompt if the machine does not boot properly to try to fix it regardless of which distribution you are using rescue e linux single If everything on the new server works properly what account will you avoid logging in on except when absolutely necessary e root Which of the following might be solved by a simple reboot e LIL e LI e LI eL To see if httpd is currently running from a root login which of the following command combinations would you use e ps aux more e ps aux gre
7. ICMP What would you type to determine the current network status e netstat r If you have an IP address and want to know the domain name associated with it which command would you use e nslookup Which permission bits must be turned on to run a shell script by just typing its name e executable Which package allows for secure telnet connections e ssh Which command is often used to prepare a downloaded package before compiling it e configure What is the first item run after LILO begins the boot process not including the path e rc sysinit 136 137 138 139 140 141 142 143 144 145 146 147 148 149 Which kernel configuration options do you almost always change when compiling a custom kernel e joystick support e processor speed e amateur radio support e old CD ROM drive support Which command do you use to load a module into the kernel manually e insmod Which hard drive BIOS setting would fix the 1024 cylinder problem in some cases e LBA Which commands could you use to create a boot disk e dd e mkbootdisk Which portions of the file system need to be cleaned out regularly so they don t overrun the rest of the file system e tmp e var log Which command combination would you use to join the text of two files into a third file e cat filel file2 gt file3 What is the default Linux shell e bash What is the netmask for a class C IP address e 255 255 255 0
8. If a program locks up or hangs what is one way that might get you out of it e Ctrl C Who do the first three items in a permission grouping refer to e owner Which log file should exist if you want to track failed logins to try to detect attempted breakins e btmp Which program could you use to edit text files without needing to open them e sed Which of the following formats will list all files in the series file01 through file09 e file file 0 9 0 9 e file Which command extracts an unused module from the kernel e rmmod 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 Which command would you use to disable a printer e Ipc Which of the following is the print daemon e Ipd Which file contains printer configuration information e etc printcap Which of the following is not a valid Ipc command e remove Which of the following is used to add a document to the printer queue e lpr With what command s do you use the format printername to specify the printer e Ipq Which group should own the print spool directory e wheel Which of the following is a valid entry in a printer definition in etc printcap one that is not the or last line in the definition e sh Which of the following is used to list what is within the print queue e Ipq Which of the following is not a valid variable to define in a etc printcap statement e lq What command is ofte
9. a listing of all used IRQs of your computer 551 552 553 554 555 556 557 558 559 e proc intrerrupts You detect a VIA USB controler in your computer Which USB module would you load to use this controler e usb uhci What is the best way to get a running foreground job in the background e Suspend the job using Ctrl Z and restart it in the background using bg What command offers you a snapshot of the current processes just the command no options e ps When do you need to run the lilo command e After every modification of the lilo configuration file e After installing a new kernel with a new name in boot e After overwriting the old kernel in boot with a new one What would the following command result in echo date H M gt file e The current time Hours Minutes will be written into the file You want to install the tarball foobar tar bz2 What command would unpack the achive e tar xjf foobar tar bz2 e bzcat foobar tar bz2 tar xf What set of scripts is included in a debian packet e preinst postinst prerm postrm Which of the following programs can be used to configure your X Server e xf86config e XF86Setup Which of the following commands copies the contents off all files in the current directory into the file allfiles e cat gt allfiles e cat gt gt allfiles
10. a particular searchstring without opening it with an interactive editor e sed e grep dev ____ ist the first logical partition of the master on the second IDE channel e hdc5 How could you monitor the amount of free inodes on dev hda3 e df i dev hda3 You have created a new directory named foo and now you have copied the two files bar and foobar into this new directory Now you mount a floppy onto foo using the command mount dev fd0 foo What happens to the two files foobar and foo if you would use the commands rm rf foo and then umount foo e Nothing They are still there 466 467 468 469 470 471 472 473 474 475 476 477 478 479 What command is used to change the permission mode of a file e Chmod What would be the default file permission modes for new files if you set umask to 022 e 644 What command is used to change group membership of a file e chown and chgrp You create a hard link bar which points to the file foo If you remove the file foo what happens e The link exists and it is possible to have access to it s content Which directories are forced to be located on the root partition e proc e dev e etc You want to activate graphical login on your Linux box so everybody can use a secure X11 What would you do to start this service immediatly e Enter the number of the displaymanager runlevel in the entry of the default runlevel in etc inittab What
11. file foobar deb This file is located in home bob Which command would you use to install this file e dpkg i home bob foobar deb Which command would you use to list all rpm packets installed on your system e rpm qa Which of the following statements are true e A harddisk with more than 1024 cylinders should be used in LBA mode e LBA mode does not change the capacity of a harddisk The isapnp command uses a configuration file named isapnp conf How do you create this file e Using the pnpdump command Which flag would you use with setserial to enable 115 KBit for a serial port e spd_vhi Which is the partition ID of a Linux Swap Partition e 82 Enter the full path of the LILO configuration file e etc lilo conf You want to compile and install a GNU software package but you want to change the default installation target Which file would you edit e Makefile Which programm is used to maintain the file etc ld so cache e ldconfig You want to install a RPM packet file foobar rpm on a debian system What command would you use to convert the rpm file into debian deb format e alien to deb foobar rpm What command is used to reconfigure a formerly installed debian packet Enter just the name without path and options e dpkg reconfigure Which command would change the owner of all files and subdirectories under home foo to foobar e chown R foobar home foo e chown recursive foobar home foo What command is used to get
12. from one computer to another The only media available for transport are floppy disks Unfortunately the size of the file is about 10 Megabytes Which of the following commands could you use to solve the problem e split b 1440k foo You have to move the whole directory tree home foo to oldusers What command would you use e mv home foo oldusers What command offers you an ongoing look at processor activity in real time including options if needed e top or procinfo f 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 How many extended partitions could you create on one physical harddisk e 1 Which command shows you how much space in Megabytes is available on all mounted partitions e df m What is the proper way to force the init process to read it s configuration file e kill HUP 1 If you type the command man passwd would you get the manpage for the file etc passwd or the program usr bin passwd e You get the manpage for usr bin passwd What command is used to cut a big file into many smaller files just the command no options e split Where could you configure the behavior of the syslog daemon e etc syslog conf How could you describe the following commandline foo bar e The command bar is only processed if the command foo leaves with an error The __ _ _ _ command starts processes with less priority e nice What comm
13. gets its input from the file bar and if its exitcode is not 0 the command foobar will be executed How could you describe the following command line foo gt bar 2 gt amp 1 e The command foo writes its STDOUT and STDERR into the file bar What command is used to get the last lines of a text file just the command no options e tail Which of the following commands could you use to copy all regular files in the current directory to tmp e cp tmp Which statements concerning the tool renice are true e A normal user may only change the nice values of his own processes e Once a nice value is increased a normal user may not decrease it even if it is his own process e root can change the nice values of all processes of one user with a single command What command would you use to show all partitions on all hard drives e fdisk l What ist the numeric value of the permission mode drwxr xr T e 1754 Which of the following statements concerning locate is true e locate can find any file in the system which was created before the last call of updatedb Which of the following commands results in mailing the content of the current directory to Bob e ls mail Bob How could you describe the following command line foo amp bar amp foobar e The commands foo and bar are started in the background foobar is started in the foreground Which would be the command to delete the enviroment variable FOO from the current environment in the bash shell
14. its content bar also in the new shell e You have to type the command export FOO before you start the new shell How could you describe the following commandline foo bar foobar e The commands foo bar and foobar are processed one after another You ve defined an enviroment variable FOO with the content bar and now you start a new shell typing bash Which of the following statements is true e If you type echo FOO you see an empty line as result Which of the following commands could be used to search for a particular term inside a textfile without opening the file e sed e grep What would be the result of the following command cp tmp e All files in the current directory which have one or more dots anywhere inside their names but not at the beginning would be copied to tmp Which command would change the owner of all files and subdirectories under home foo to foobar e chown R foobar home foo e chown recursive foobar home foo What command would you use to copy all files inside the current directory which names end with a number to tmp 252 253 254 255 256 257 258 259 260 261 262 263 264 265 e cp 0 9 tmp What is the number of the first logical partition on dev hda e dev hda5d How could you check the integrity of a non mounted filesystem dev hdb7 even if it has a valid cleanflag e fsck f dev hdb7 Under the bash shell which is the
15. of the user quota of home e repquota home In the directory home foo exists a file named bar which is a symbolic link to etc services If you would copy the link to tmp using the command cp d home foo bar tmp what would happen e The destination tmp bar is a symbolic link to etc services What would the following command search for find perm 4000 238 239 240 241 242 243 244 245 246 247 248 249 250 251 e All files with a permission of at least 4000 Which commands will give you information about how much disk space each file in the current directory uses e ls la e ls What would be the result of the following command init 3 e The system switches to runlevel 3 What is the command to built a new manpage index database e mandb What command would send the output of cmd1 to the input of cmd2 e cmdl cmd2 What is described by the PS1 and PS2 enviroment variable e The normal prompt and the following prompt of the shell Having booted into runlevel 3 how would you change the runlevel 5 without rebooting e telinit 5 The file etc syslog conf contains the following line crit var log warn e All messages of all facilities with priority crit are written into the file var log warn You ve defined an enviroment variable FOO with the content bar and now you want to start a new shell typing bash What of the following is neccesary to ensure that the variable FOO has
16. s content Which of the following commands displays the comments from a bash script Select all that apply e sed n p etc profile e grep etc init d http State the syntax to direct the standart output of cmd1 directly into the standart input of cmd2 e cmdl cmd2 Which of the following answers creates an environment variable VAR1 present in the environment of a bash child process e VARI fail export VARI Name the full path and name of the file that holds most of the information on sytem user groups e etc group 293 294 295 296 297 298 299 300 301 302 303 304 305 306 Which of the following directories must be part of the root filesystem Select all that apply e etc e lib Name the facility that independently executes commands on a periodic basis for multiple users e cron Alex is currently working in a directory containing only one file Afilel What is displayed after the following commands are entered in bash MYVAR Is echo MYVAR MYVAR MYVAR MYVAR e Is ls MYVAR Afilel What does the amp character do when placed at the end of a command e Select one It causes the process to be placed into the background Which one of the following commands could be used to change all uppercase characters to lowercase in the middle of a pipe e tr What is the PID of init el Which one of the following outcomes results from the following co
17. the man command does not find the new pages What could be the reason e The manpage index database has to be rebuilt How could you inhibit a valid user on your system to login but offer him a possibillity to fetch his mail with POP3 e Use bin false as his login shell in etc passwd The file etc syslog conf contains the following line crit var log warn 266 267 268 269 270 271 272 273 274 275 276 277 278 279 e All messages of all facilities with priority crit or any higher priority are written into the file var log warn How could you read the contents of the enviroment variable PATH in the bash shell e echo PATH Which of the following commands could be used to turn all characters inside a textfile into uppercase without opening the file in an editor e tr e sed Many server processes allow the root user to force them to read their configfiles while running How is this done e Send them the SIGHUP signal Which statements are true e A less nice value means higher priority e Only root can use negative nice values Under the bash shell when a command is running pressing control Z will usually do e suspend the foreground task How could you monitor the amount of free inodes on dev hda3 e df i dev hda3 What is the effect of the following command foo amp e The command foo is started in the background In the directory home foo exists a file named bar wh
18. to edit to add the new machine to the NFS mount rules on docserver e etc exports What line might you add to explicitly give the new machine named officel120 read write NFS access to the NFSmounts Projects DocGroup directory e NFSmounts Projects DocGroup officel20 rw Back to the new user s machine where you need to configure local printing What file would you edit to accomplish this e etc printcap What files and directories do you need to create for an InkJet printer to function properly e var spool lpd ij log e var spool lpd ij What permissions have to be set on the print spool e rwxrwxr x What permissions must be set on the printer log file e r rw rw Who should own the printer directories and files e root What groups should the printer directories and files belong to e daemon e lp What command would you use to print a file to the ij default printer e lpr Pij e lpr What protocol is used to share printers and files across a multi OS network e SMB 24 25 26 27 28 29 30 31 32 33 34 35 36 37 What would you type to find out what SMB shares are being offered on the network e smbclient L What line would you enter in etc fstab to mount the SMB share d StaffManuals on the Windows 98 machine HR to the local directory StaffManuals e HR STAFFMANUALS StaffManuals smb auto rw 0 1 What Web server is typically used to
19. Re en ot zky k testu LPI 26 b ezna 2010 1 A new person has just been hired You need to install a new Linux only machine for them configure it with their user information and integrate it into the LAN such that they have access to the services necessary to complete their work What must you do before procuring the machine for this user e Consult the Linux Hardware Compatibility List e Consider the type of work the user needs to do e Consult the distribution s Hardware Compatibility List 2 While assembling the machine what considerations specific to Linux installations must be kept in mind e If you were not the one choosing the hardware be sure any modems involved are Winmodems 3 Once the machine is assembled what BIOS adjustments need to be made in modern machines before attempting the installation e If no boot disks are necessary change the boot order so the CD ROM drive is checked first e If there are Plug and Play devices that could not be disabled with jumpers shut off Plug and Play in the BIOS e Disable the Automode serial port setting which automatically assigns COM ports to serial ports 4 What are the base partitions that you should install at the very least on an end user machine e e swap e boot 5 During the Linux installation process what hardware issues must be configured correctly to avoid the risk of damaging the hardware e The monitor s range of operation 6 When the installe
20. and is used to create a new filesystem on dev hda2 e mkfs dev hda2 What statement about the du command is true e Disk Usage shows the amount of diskspace used by the named directories You want to force a user to create files with a permission mode of 600 How would you set the umask e umask 077 What would be the result of the following command In bin bin2 e Nothing but an error message Can t hardlink to a directory Which directory contains the essential commands needed on bootup e bin You can give options to the kernel e using the append command in etc lilo conf e appending the options to the kernel name while using the Bootmanager User foo has left our company and you want to remove his account and all his files in his home directory Which of the following commands would do this e userdel r foo You want to set an environment variable named foo so that every user can use this variable after login What would be a good place to define this variable e etc profile 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 The file etc syslog conf contains the following line crit var log warn What is the result of this setting e All messages of all facilities with priority crit or any higher priority are written into the file var log warn How can you describe the function of the following commands foo lt bar foobar e The command foo
21. day in the Linux world e Apache If the new employee makes a staff home page for internal use where would the Web admin put this page if the Web server saw it as Staff and the Apache storage defaults were kept in place e home httpd html Staff Because a user s machine is on the network what file should you edit to ensure that unneeded network daemons won t be listening for connections e etc inetd conf Now that the user s machine is set up you need to install a new anonymous FTP server for the technical support department What is a commonly used server used for this function e wu ftp What are common concerns surrounding anonymous FTP access that allows uploads e People might put illegal files on the system e It is important to always watch for security updates to FTP servers e People might exploit weaknesses and break out of the public area to access other portions of the file system Typically where is the default base anonymous FTP directory e home ftp Where typically is the upload directory in anonymous FTP e home ftp pub incoming Another new machine arrives but this one is for the server room It has several large hard drives installed What will be one issue to keep in mind when creating the boot partition on this machine e The 1024th cylinder problem Because this is a server machine which of the following partitions might you want to create during the installation e var e usr e tmp e
22. dules when the system detects a newly connected USB device e hotplug e usbmgr Which directory contains a majority of system configuration files Enter the whole path e etc Which of the following programs are valid display managers for X11 e gdm e kdm e xdm You started an X application with the parameter display foo 0 but you get the message Can t open display What is the reason e you must run the command xhost foo before the above command You are working with vi writing a textfile Being in command mode you want to move the cursor 7 characters right Enter the necessary command e 7l Which is the Partition ID of a Linux Native Partition e 83 When do you need to rerun the grub install command e Only the first time after installing GRUB Which statements concerning the program gzip are true e gzip changes its behaviour when it is renamed to gunzip e After compressing a file with gzip the uncompressed file is removed e gzip is used to compress just a single file 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 You have just installed the new program foobar manually This program uses shared libraries which are installed to usr local foobar lib What is neccesary to do after the installation so that the libraries can be used e edit etc ld so conf to add the new library path and then run ldconfig You want to install the debian package
23. e The command foo redirects its output to the command bar which writes its output to foobar If foobar exists the results will be appended 209 210 211 212 213 214 215 216 217 218 219 220 221 222 The user bertha has marked an important line of one of her textfiles with an asterix But now she forgot the name of the file How could you find this file assuming it is located in berthas home directory e grep home bertha While monitoring the integrity of the filesystems you detect that there are no more free inodes left on the home partition although there are many megabytes free space What could be the reason e A user has created lots of very small files You have created a new directory named foo and now you have copied the two files bar and foobar into this new directory Now you mount a floppy onto foo using the command mount dev fd0 foo What happens to the two files foobar and foo if you would use the command rm rf foo and then umount foo e Nothing They are still there What permissions need the files etc passwd and etc shadow e rw r 1r rw What would be the default file permission modes for new files if you set umask to 027 e 640 How could you watch the contents of a logfile even if the logfile is growing while you re watching e tail f logfile How could you get the information about the group membership of user foo e groups foo Ho
24. eld in etc fstab The file foo has a permission mode of rw is owned by user bar and belongs to group foobar Which of the following commands would allow members of the group foobar to read the file e chmod a r foo e chmod r foo e chmod g r foo What would be the default file permission modes for new files if you set umask to 022 e 644 You get an error message concerning the USB every time you boot your system Your system works perfectly exept USB Now you want to get information from a Linux guru named bob foo bar org He asks you to send him the boot messages via email How could you send him the necessary boot information of your system e dmesg mail bob foo bar org You want remove the file file Which of the following answers are correct e rm file e rm file Which would be the command to delete the enviroment variable FOO from the current enviroment in the bash shell 195 196 197 198 199 200 201 202 203 204 205 206 207 208 e unset FOO How would you add the directory usr2 bin to the enviroment variable PATH in the bash shell e PATH PATH usr2 bin The __ command starts processes with less priority e nice How could you display any line of text from the file foo which starts with an upcase letter e grep A Z foo What command would you use to copy all files inside the current directory which names begin with a number to tmp e cp 0
25. etc modules conf 181 182 183 184 185 186 187 188 189 190 191 192 193 194 You want to activate graphical login on your Linux box so everybody can use a secure X11 What would you do to start this service every time from now on e Enter the number of the displaymanager runlevel in the entry of the default runlevel in etc inittab How could you get informations about all manpages which content the word foo in their short description e apropos foo What command would you use to create a new group named foo e groupadd foo Where could you configure the behavior of the syslog daemon e etc syslog conf A high nice value of a process means e The priority of the process is lower than normal How many primary partitions could you create and use with Linux on one single harddisk e4 Which command shows you how much space is available on all mounted partitions e df How could you describe the following commandline foo amp amp bar e The command bar is only processed if the command foo leaves without error You want to enable all of your users to use about 20 megabyte of diskspace in their home directories and about 5 megabyte in tmp What action concerning the partitioning is necessary e Every partition with userquotas have to have the file a quota user on their root e home and tmp each have to be on a own partition e Every partition with userquotas need the entry usrquota in the options fi
26. ich is a symbolic link to the file foobar in the same directory created with the command In s foobar bar If you would copy the link to tmp using the command cp d home foo bar tmp what would happen e The destination tmp bar is a symbolic link to tmp foobar How could you get a list of all running processes e top e ps ax How can you describe the function of the following commands foo bar gt foobar e The command foo redirects its output to the command bar e The command bar writes its output to the file foobar What section of the online user s manual and command reference holds administrative not user com mands e Section 8 What two commands will display the status of processes on a LINUX system e ps and top What do the device file dev hdb6 represent e A logical partition on an IDE disk drive Which command will display the last lines of text file file1 280 281 282 283 284 285 286 287 288 289 290 291 292 e tail filel In the bash shell entering the command has the same effect as which one of the following e Ctrl P and Enter Which following commands can be used to check an ext2 filesystem Select all that apply e fsck dev hda5 e fsck ext2 dev hdad e e2fsck dev hdad Name the command that displays pages from the online user s manual and command reference e man In response to the df command the system reports a Use of 98 for the filesystem mou
27. inals in console mode e Alt F Which keyboard combination changes virtual terminals when in the GUI e Ctrl Alt F Which file would the superuser edit to set when weekly automated system jobs occur e etc crontab Which command would a user type to edit his or her automated jobs e crontab e Which file would the superuser edit to set all user login defaults e etc profile Which section of the file system is held entirely in RAM e proc If a user tends to enter the GUI by typing startx which file would you edit to change that user s default desktop environment 122 123 124 125 126 127 128 129 130 131 132 133 134 135 e xinitre What type of etc printcap item would you use to define which script or program all jobs going to a specific printer should pass through first e if Which command lets you set the system time e date What should you keep around in case of a machine crash e boot disk e backups Which of the following strings fit in the pattern d d e did e dad Which of the following strings fit in the pattern d d e deed e dried e drained e did Which character signals programs such as vi more and less that you want to search for characters e If you wanted to add a new file to the all new user home directories for accounts you create in the future where would you put it e etc skel Which protocol do ping packets travel with e
28. ing wildcard meets the point A 0 9 e All files beginning with the letter A followed by a number What device is described by the following special file dev hdb2 e The second primary partition of the slave on the first IDE channel Which command shows you how much space in Kilobytes is available on all mounted partitions e df k How could you get the information what kind of quota is activated for user foo e quota foo How could you help users to create files with serious file permissions e Use a serious umask setting in the user s profile User Bertha is member of different groups How could you ensure that her default group is foobar e Ensure that the GID of foobar is placed in her etc passwd entry You create a hard link bar which points to the file foo If you remove the file foo what happens e The link exists and it is possible to have access to it s content User Mike has created a file with important content last week But now he doesn t remember the filename or location of this file The only thing he remembers is that the filename contains the word Urgent How could you help him e locate Urgent How can you describe the function of the following commands foo xargs bar e The command bar is started with the output of the command foo as parameters You have built a new kernel and the necessary module for your soundcard Where could you enter the irq dma and ioport settings for this card e In etc conf modules or
29. is provided by the jobs command e A list of all jobs started by the current shell including JobIDs 338 339 340 341 342 343 344 345 346 347 348 349 350 351 Which of the following tools could be used to search a textfile for a particular searchstring without opening it with an interactive editor e grep e sed What set of files would be affected by the following wildcard foo bar e foo bar foo lbar foo 2bar e foo lbar foo 2bar foo Fbar What command would you use to show all partitions on all harddrives e fdisk l The user foo has reported problems creating files in his home directory He has got a user quota of 40 megabyte but a quick check of his directory shows only 20 megabyte in use What may be the reason e He has probably many small files and his file limit is exceeded What would be the result of the following command In bin bin2 e Nothing but an error message What is a X server e the program which administrates the graphical IO using the X11 protocol What is the meaning of the SCSI Address 1 5 0 e The device with SCSI ID 5 on the second SCSI Bus LUN 0 Which file would you edit so that the displaymanager ist started automaticly at boottime e etc inittab You want to run a x application on the computer foo but it should display on the screen of computer bar What parameter for the application is needed to realize this e display bar 0 Which flag would you use w
30. ith setserial to enable 115 KBit for a serial port e spd_vhi Which of the following directories have to be placed on the root partition e dev e lib e sbin When do you need to rerun the grub install command e Only the first time after installing GRUB You want to compile and install a GNU software package but you want to change the default installation target Which file would you edit e Makefile You have just installed the new program foobar manually This program uses shared libraries which are installed to usr local foobar lib What is neccesary to do after the installation so that the libraries can be used e edit etc ld so conf to add the new library path and then run ldconfig 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 You want to install the RPM package file foobar rpm This file is located in home bob Which command would you use to install this file e rpm i home bob foobar rpm You are the system administrator of a RedHat box After checking your system you found a file named foobar What command would you use to get the information from which rpm packet this file was installed e rpm qf foobar Which of the following statements are true e A harddisk with more than 1024 cylinders should be used in LBA mode e LBA mode does not change the capacity of a harddisk You want to install a ISA Plug and Play Card into your computer Which s
31. k With a umask of 027 how is the initial mode set for a newly created file e 0640 Consider the following script stored in a file with proper modes for execution for v1 in al a2 do echo v1 done Which one of the following best represents the output produced on a terminal by this script e No output is produced because the script has an error Which one of the following commands verbosely extracts file from a tar archive on a magnetic tape device e tar xvf dev st0 Alex wants to protect himself from inadvertently overwriting files when copying them so he wants to alias cp to prevent overwrite How should he got about this Select one e Put alias cp cp i in bashre Which one of the follwing utilities ouputs a text file with line numbers along the left margin e nl The following line comes from the etc fstab Which of the statements is accurate given the contents of this line Choose all that apply dev fd0 mnt fd0 vfat noauto users 0 0 e The filesystem is on the floppy disk e Users are permitted to mount and unmount the filesystem Which of the follwing expression is an accurate statement regarding this regular expression 1 8A Za z e It matches 9 0 and other nonletter and nonnumber characters Monica consults the etc passwd file expecting to find encrypted passwords for all the users on her system She sees the following jdoe x 500 500 home jdoe bin bash bsmith x 501 501 home bsmith bin tcsh Which of the follo
32. kind of information would you find in the manual section 8 e about system administration commands usually only for root Which shell would you use for a POP3 only account on your system e bin false The group foo has a password Who needs to know this password e Any user who is not member of the group foo but wants permission to a file belonging to this group You get a mail from user bart in which he tells you that he can t execute a self written shell script named foo This script is placed in the directory home bart and the user s current working directory is home bart too The ls 1 command shows the script and the user has execute permission What would probably be the reason of the problem e The PATH variable doesn t include the entry You detect a Compaq USB controler in your computer Which USB module would you load to use this controler e usb ohci Which command would display the list of all running background jobs e Jobs You want to enable all of your users to use about 20 megabyte of diskspace in their home directories and about 5 megabyte in tmp What action concerning the partitioning is necessary e Every partition with userquotas need the entry usrquota in the options field in etc fstab e Every partition with userquotas have to have the file quota user on their root e home and tmp each have to be on a own partition Enter the commant to create a link Just the command no options eln 480 481
33. ld you use to mount the filesystem e mount dev hdc7 e mount dev hdc7 usr local e mount usr local What is the meaning of the following file permission mode of the file foobar rwsr xr x 1 foo bar 12345 Oct 29 14 51 foobar e Everybody who executes this file does this under the EUID of foo EUID Effective User ID What command changes the default permission mode for newly created files Just the command no options e umask How could you change the ownership of the file foobar to user foo e chown foo foobar The files foo and bar points to the same content One of them was created as a hard link to the other How could you detect which of the two is the original file and which is the link e There is no way to differ between file and link Which of the following statements concerning the locate command is true e locate can find any file in the system which was created before the last call of updatedb What command would you use to read the kernel bootup messages Just the command no options e dmesg What command would cleanly reboot your Linux box e shutdown r now e init 6 e reboot What is the meaning of the MANPATH variable e stores a list of all directories which contain manpages User Paul has forgotten his password He asks you the administrator to help him What could you do to help him 453 454 455 456 457 458 459 460 461 462 463 464 465 e Create a ne
34. mmand chmod g s home software directory e The SGID bit will be set for home software in order to keep group memberchip of the directory consistent for all files created Which one of the following commands is equivalent to the following command for user jdoe whose home dirctory is home jdoe chmod 754 filel e chmod u rwx g rx o r home jdoe filel What command and single required option creates a symbolic link in a Linux ext2 filesystem e In s What command can display the contents of a binary file in a readable hexadecimal form e od Which one of the following commands copies files with the txt extension from dirl into dir2 while preserving file attributes such as dates e cp p dirl txt dir2 Which one of the following file globs matches Linux and linux but not linux com and not Tur boLinux e Lljinu A process with PID 4077 is misbehaving on your system As superuser you enter the following command kill 4077 However nothing changes as a result What can you do to terminate the process e kill 9 4077 Which one of the following key sequences is used to put a noninteractive text mode program that is attached to the terminal into the background to allow it to continue processing e Ctrl Z and then enter the bg command 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 What basic command is used to create hard disk partition e fdis
35. most appropriate place to set environment variables that apply to all users e etc profile You want your users to be able to mount the CD Rom on dev hdc What is the right way to enable them e Add the entry user noauto to the options of the filesystem in etc fstab What is the meaning of the sticky bit applied to a directory e A user with write permission in this directory may not remove any file inside the directory if he is not the owner of the file to remove How could you read the current umask setting e umask You create a symbolic link bar which points to the file foo If you remove the file foo what happens e The link exists but any access would lead to an error How could you get the following information Which GID has the default group of user foo e grep foo etc passwd cut d f4 You have two program files named foo One of them is located in usr local bin and the other in usr X11R6 bin How can you find out which of the both commands would be used when you just type the command foo e which foo You can give options to the kernel e using the append command in etc lilo conf e appending the options to the kernel name while using the bootmanager You want your Linux box to shutdown this evening for a technical review How could you manage this shutdown so that no user stays unwarned e Just use shutdown h time where time is the time of shutdown After installing a new package which contains manpages
36. n used to test a printer without testing the print daemon at the same time e print Which of the following files do you edit to configure the genral logging for lpd e usr spool printer log conf Which of the following is used to manage printers and queues and move print jobs within queue e Ipq Which of the following can be used to start lpd automatically at boot time e etc services What command is used to print a PostScript file Consider all potential circumstances Choose all correct answers e lpr What unit is the maximum job size set in e bits 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 What printcap definition variable would you use to make sure a page of user idendification information is not printed before each print e sh Which of the following are quick checks to see why your print job isn t going through Choose all correct answers a Is the print daemon running e Is the printer on e Are the cables firmly in place Which of the following is a valid print filter file type Choose all correct answers e usr spool printer log conf Which command sequence ingoring issues of flags and values would you use to ge the job number for a specific job on the default printer and then cancel that job e Ipc lpr What do you type when invoking the print daemon if you want it to log information e Ipd l What statement concerning the follow
37. nted on home Which one of the following best describes the significance of this information e Files on home are consuming 98 persent of the home filesystem Of the following directories which one is the most important to back up on a routine basis e etc Carolyn has a text file named quest _ list containing 12 lines She executes the following command What is the result split 4 quest_ list gl e The of guest_ list are evently divided among new files glaa glab and glac Which one of the following commands would be best suitet to mount a CD ROM containing a Linux distribution without depending on any configuration files e mount t iso9660 dev cdrom mnt cdrom An ext2 filesystem is configured with user quotas enabled The soft limit is set at 100 MB per user the hard limit is set at 110 MB per user and the grace period is seven days User bsmith already owns 90 MB of the data stored on the filesystem What happens when bsmith writes a new file of size 30 MB e The write will fail and the file will be truncated permanently User jdoe a member of the finance group owns a text file with group owner finance and mode 0077 Which statements are true regarding access to view the contents of the file assuming the directory that contains it has mode 0777 Select all that apply e Everyone in the finance group can view the file s content exept jdoe e jdoe can first change the protection mode of the file and then view the file
38. oo oldusers Which statements are true e A less nice value means higher priority 367 368 369 370 371 372 373 374 375 376 377 378 e Only root can use negative nice values Which command would change the owner of all files and subdirectories under home foo to foobar e chown recursive foobar home foo e chown R foobar home foo Which of the following directories may be placed outside the root partition e home e boot e var How can you describe the function of the following commands foo tee bar foobar e The command foo redirects its output to the command tee which writes it into the file bar and sends the same further to the command foobar You want to install the RPM package file foobar rpm This file is located in home bob Which command would you use to install this file e rpm i home bob foobar rpm Which command would you use to check the signature of a rpm packet e rpm checksig filename You want to install the tarball foobar tar gz What command would unpack the achive e tar xzf foobar tar gz e zcat foobar tar gz tar xf Which of the following commands could be used to turn all characters inside a textfile into uppercase without opening the file in an editor e tr e sed Consider a mounted partition dev hdc7 is mounted on mnt Which command could be used to unmount this filesystem e umount dev hdc7 e umount mnt Which of the following
39. ould you type to mount an MS DOS formatted floppy without relying on etc fstab shortcuts e mount t vfat dev fd0 mnt floppy Which file system type would you use to mount a data CD ROM e iso9660 Which command creates a soft link e In s Which commands would you use to search for files in the file system e which e find e locate Which commands format could you use to search for a file when you have no idea where in the file system it s located but you do have a portion of the file name to go on e find fragment e locate fragment 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 e find name fragment Which command updates the locate database e locate u e usr bin updatedb Which log file would you look in to find problems during the boot process e var log messages Which of the following are popular X desktop environments e xdm e gdm e kdm Which command works on all distributions to remove a user account e userdel What does the user deletion command not remove e Files outside the user s home directory Which command format can locate the ex user s files within the file system e find user UID e find user username e find user UID Which driver do you need to use a tape drive for backups e ftape Which command must you use before removing removable media e umount Which keyboard combination changes virtual term
40. p httpd e ps aux Which command would you use to see only the last ten lines of a file e tail Which command would you use to see which devices are currently mounted onto the file system e df 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 Which commands could you use to delete a directory e rm rf e rmdir Which command would you use to list the jobs in the print queue e Ipq Which command would you use in vi s command mode to delete the current character e X Which command works to configure the X server regardless of distribution e XF86Setup Which standard can you consult to help you find your way around a Linux system you ve never used e FSSTND Which networking tool can you use to assign IP addresses to machines during the installation process e DHCP Which command can you use to create an empty file without opening it in an editor e touch What kind of firewall would you use to prevent people from knowing how many machines are behind the firewall e Proxy Which of the following are passwords that would pass a Crack security check e aMbfRc e tooc00l e 5y2n3xlw Which of the following is the umask for the permission set rwxr xr x e 022 Which of the following files must be created or edited in order to institute quotas on the home partition e etc fstab e home a quota group What would you do if you forgot the root password and were not logged into the
41. programs could be used to load necessary modules when the system detects a newly connected USB device e Usbmgr e Hotplug You are working with vi writing a textfile After leaving insert mode with Esc you want to save and exit What command is valid e x Which file would you edit so that the displaymanager ist started automaticly at boottime e etc inittab You started an X application with the parameter display foo 0 but you get the message Can t open display What is the reason e you must run the command xhost foo before the above command 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 Which of these programs is not a X client e startx You need to set the system wide colors and fonts for the XTerm application Where is the best place to do this e usr lib X11 app defaults Xterm The commands mwm twm After step and olvwm are e X window managers The XF86Config file contains e Configuration information for the X server The entry 0 local usr X11R6 bin X must be inserted into what file to enable XDM on the console display e etc X11 xdm Xservers You want to start an X session after logging in using the text interface on the console What commands can you use e Xinit e Startx When defining the commands in an xinitrc file the last command started must be e The window manager in the foreground XDM is used to e Authenticate users and
42. r asks where to install LILO where would you install it on a user s machine e The MBR 7 Because this is a desktop machine you would probably set it to boot into the GUI Where would you look to find which runlevel is this equivalent to in this distribution e etc inittab 8 What file might you edit if you needed to add additional information to get individual pieces of hardware to boot properly e etc conf modules e etc modules conf 9 Once the machine is installed and properly booting into the GUI by default what command would you use in a terminal window to change the machine to command line mode for administrative purposes e init 10 11 12 13 14 15 16 17 18 19 20 21 22 23 What two commands would you use to create the user login at the command line without any special scripts e passwd e useradd Now that you have added the user you need to add them to the special group created for their project team What file would you edit to do this e etc group Now you need to have the machine automatically NFS mount the remote project group partition What file would you edit to do this e etc fstab What line might you add to etc fstab to automatically NFS mount the remote directory NFSmounts Projects DocGre on the machine docserver with read write access e docserver NFSmounts Projects DocGroup Project nfs rw auto 0 0 What file do you have
43. rent textfiles to one line using common fields to determine which lines fit together just the command no options e join You have to move the whole directory tree home foo to oldusers What command would you use e mv home foo oldusers What is the effect of the following command fg 4 e The job with the JobID 4 is fetched into the foreground What command offers you an ongoing look at processor activity in real time just the command no options e top Which statements concerning the tool renice are true e root can change the nice values of all processes of one user with a single command e A normal user may only change the nice values of his own processes 495 496 497 498 499 500 501 502 503 504 505 506 507 e Once a nice value is increased a normal user may not decrease it even if it is his own process How can you detect which PCI devices are connected to your computer e Using the lspci command Which of the following tools could be used to search a textfile for a particular searchstring without opening it with an interactive editor e grep e sed What command is used to unmount mounted filesystems Just the command no options e umount What is the numeric value of the permission mode drwxr xr T e 1754 What command is used to change ownership of a file Just the command no options e chown Which of the following programs could be used to load necessary mo
44. ribute allows a process to take on the ownership of the executable files owner e SUID What is appended to the beginning of a command line in order to modify the execution priority of the resulting process e nice How are the cat and tac commands related select one e cat displays files an tac does the same but in reverse order With regard to the use of regular expressions to match text in a file describe a metacharacter e They are special control characters used in the regular expression How many IDE devices can be installed and simultaneously used in a typical Intel based system e 4 Which one of the following would be a consequence of a filesystem running out of inodes e No writes would be possible on the filesystem until existing files were deleted Consider the following line of console output excerpted from among other lines of output Which one of the commands produced it dev hda8 1 9G 559M 1 2G 30 home e df h How can you configure your system at shutdown time to supress fsck upon the next boot Select one e shutdown f Which one of the following is true about the LILO boot loader e It can start the Windows NT Loader Which one of the following statements correctly describes the gt and gt gt symbols in the context of the bash shell e gt writes standard output to a new file and gt gt appens standart output to an existing file Which command is NOT usable to install debian packages e dinst What information
45. root account already e Boot into single user mode Http packets travel under which protocol e TCP Which command can you use to start building a configuration file for the ISA slot Plug and Play hardware in a Linux machine e pnpdump Which command can you use to load ISA slot Plug and Play configuration data during boot time luvedena spr vn odpov je UDP 94 95 96 97 98 99 100 101 102 103 104 105 106 e isapnp You have a vi session open in command mode and want to look at a man page but don t want to have to change terminals What would you type to be able to look at the man page without having to close the vi session e Ctrl Z You have your vi session in the background and are finished looking at that man page What do you type to bring the vi session back up e fg You have a non text file that you want to print Which program might you need to run it through before sending it to the print queue e ghostscript What should be on the first line of any bash shell script e bin bash Which command would you use to verify that you can reach a known machine from the current machine e ping Which of the following extensions refer to files that are compressed in some manner e Z e gz e tgz Which two commands would you use open a tgz file e gunzip e tar xvf Which command would you use if you thought part of the file system was corrupt e fsck What w
46. scend root What must you do after changing any standalone daemon s configuration files e Restart the daemon What package would you use to ensure that routine tasks happen on a regular timed basis e cron What service typically handles email on a Linux LAN 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 e sendmail What file do you initially edit when setting up sendmail on a modern Linux system e sendmail mc What program would you likely use to edit the sendmail configuration file e vi What command would you have to type in vi before being able to add text to the sendmail configuration file e i What command would you type in vi when finished adding text to the sendmail configuration file e ESC What colon command would you type in vi to exit and save the sendmail configuration file e wq When the sendmail m4 file is ready what does it need to be converted to e sendmail cf What file would you edit to customize how the machine s log files are handled e etc syslog conf What might you type to see what processes are running on the server e ps e ps aux e top What command would you use to stop one of the processes if it didn t have an init script to do it for you e kill What is the last resort command for stopping a process e kill 9 You need to compile a new kernel for the server What packages do you probably need to have installed e GNU C e make e
47. start an X session What command is not used for configuring the X environment e XInstall sh What command sorts its input stream in alphabetic order just the command no options e sort What would be the result of the following command cp tmp e All files in the current directory which have one or more points anywhere inside their names would be copied to tmp What information is provided by the jobs command e A list of all jobs started by the current shell including JobIDs How could you get a list of all running processes e ps ax e top What tool could you use to change the nice value of a running process e renice What statement concerning the following wildcard is correct A Z e All files beginning with an uppercase letter 394 395 396 397 398 399 400 401 402 403 404 405 406 407 What is the Partition System ID of a regular Linux Partition just the two digits e 83 After an awful lot of work checking filesystem integrity in single user mode you change back again to multi user mode What single command could you use to mount all partitions at the right places Use the command and options e mount a You want to enable all of your users to use about 20 megabyte of diskspace in their home directories and about 5 megabyte in tmp What action concerning the partitioning is necessary e One partition for home is enough You can symlink tmp to home
48. t to install the debian package file foobar deb This file is located in home bob Which command would you use to install this file e dpkg i home bob foobar deb Which command would you use to get a list of all files inside the rpm packet foobar rpm in home bob e rpm ql p home bob foobar rpm Which directory contains manpages e usr man e usr local man e usr doc man You want to run an X application on your local machine but it should display itself on the first display server of foo The command is xapplication display Don t use screennumbers e foo 0 You are working with vi writing a textfile Being in command mode you want to move the cursor 7 lines down Enter the necessary command e 7j In which file will you find a listing of all used DMA channels of your computer e proc dma Which program is used to determine which shared libraries are used by a particular other program e ldd What command changes tabs to spaces just the command no options e expand You want to connect a X11 Terminal to your Server But everytime you try to connect your terminal screen keeps black What files on the server would you edit to solve the problem e etc X11 XF86Config e etc X11 xdm xdm config You want to configure an X11 server For that purpose you have to enter various information about your hardware Which informations are necessary to configure the server e keyboard e monitor In which file will you find
49. tep is necessary to use this card with Linux e Use isapnp and pnpdump How could you describe the following commandline foo amp bar amp foobar e The commands foo and bar are started in the background foobar is started in the foreground What command would you use to get a list of all installed debian packages on your system e dpkg l How could you get the information how many kilobytes are used by the directory home foo including all subdirectories e du s home foo What would the following command search for find perm 4000 e All files with a permission of at least 4000 How could you display all lines of text from the file foo which are not empty e grep v foo You want to install a Linux Server without keyboard What of the following is necessary to avoid error messages during startup e Configure the CMos Setup Halt on to All but keyboard How can you detect which ISA Plug and Play Cards are installed on your computer e Use the pnpdump command In the directory home foo exists a file named bar which is a symbolic link to etc services If you would copy the link to tmp using the command cp home foo bar tmp what would happen e The destination tmp bar is a regular file with the same content as etc services What would be the default file permission modes for new files if you set umask to 022 e 644 You have to move the whole directory tree home foo to oldusers What command would you use e mv home f
50. the first lines of a textfile just the command no options e head You want to deinstall the packet foobar from your RedHat box But you are not sure if some other packets depend on this packet What command would you use to get this information 523 524 525 526 527 528 529 530 531 532 533 534 535 536 e rpm q whatrequires foobar You want to install a Linux Server without keyboard What of the following is necessary to avoid error messages during startup e Configure the CMos Setup Halt on to All but keyboard Which command would copy the whole directory tree including all subdirectories under home foo to tmp e cp r home foo tmp What command is used to display a textfile in reversed order last line first first line last just the command no options e tac What would the following command result in cp home foo bar home bar foo foo e The files home foo bar and home bar foo are copied into the directory foo How could you start the command foo in the foreground e foo While monitoring the integrity of the filesystems you detect that there are no more free inodes left on the home partition although there are many megabytes free space What could be the reason e A user has created lots of very small files What is the numeric value of the permission mode rwxr sr e 2754 You want to force a user to create files with a permission mode of 600 How
51. tmp later e Every partition with userquotas have to have the file quota user in their root directory e Every partition with userquotas need the entry usrquota in the options field in etc fstab How could you change the group membership of the file foobar to group foo e chgrp foo foobar In the directory home foo exists a file named bar which is a symbolic link to etc services If you would copy the link to tmp using the command cp d home foo bar tmp what would happen e The destination tmp bar is a symbolic link to etc services What would the following command search for find perm 4000 e All files with a permission of at least 4000 What is the default configuration file for the Linux loader Enter the whole path and filename e etc lilo conf How could you ensure that no user can login or work on the system while you manualy repair a filesystem e Switch to runlevel 1 What file is used to define most of the used enviroment variables like PATH or MANPATH at login time for every user Enter the whole path and filename e etc profile You ve defined an environment variable FOO with the content bar and now you start a new shell typing bash Which of the following statements is true e If you type echo FOO you see the word bar as a result What would the following command result in echo date H M gt file e The current time Hours Minutes will be written into the File You want to transport a file named foo
52. w could you detect if the file foo and bar are hardlinked together or not e The command Is i foo bar shows the used inodes of foo and bar If they are the same they are linked together You as a normal user have created a new file named foo inside tmp But if you try to find this file using the command locate there is no result What is the reason e locate only searches the system database The command will work after the next run of updatedb What command shows you what groups you are belonging to e groups You get a mail from user bart in which he tells you that he can t execute a self written shell script named foo This script is placed in the directory home bart and the user s current working directory is home bart too The ls 1 command shows the script and the user has execute permission What would probably be the reason of the problem e The PATH variable don t includes the entry How could you create a directory foo bar if foo does not exist e mkdir p foo bar What means the following construct inside a regular expression A Z A Z e A non uppercase letter followed by either an or an uppercase letter You want all messages from the kernel with a priority of warn or higher to be displayed on your 10th virtual terminal What line in etc syslog conf would guarantee this e kern warn dev tty10 223 224 225 226 227 228 229 230 231 232 233 234 235
53. w password for him using the command passwd paul and tell him his new password The group foo should get its own administrator so that you as the root user are not forced to add the new group members The group administrator is the user bar who already is member of foo He should be able to add and remove group members What command would you use for that purpose e gpasswd A bar foo Which directory contains a set of template configuration files to be copied in an newly created user directory Enter the whole path e etc skel How could you describe the following command tail f var log messages e It displays every new line of the file var log messages while this file is growing How could you describe the following commandline foo amp bar e This isn t a valid commandline How would you assign the content of the enviroment variable PATH to the environment variable MYPATH in the bash shell e MYPATH PATH Which command would change the owner of all files and subdirectories under home foo to foobar e chown R foobar home foo e chown recursive foobar home foo What command is used to display a textfile in reversed order last line first first line last e tac How could you try to stop a hung process which refuses to accept keyboard input e Ctrl C e kill 9 PID e kill PID What command starts processes with higher or lower priority e Nice Which of the following tools could be used to search a textfile for
54. wing is true Select one e The passwords are in the etc shadow Name the briefest form of the command to initiate a change to runlevel 5 e init 5 Where does The Linux System Administrators Guide originate e The Linux Documentation Project What does the sticky bit do e It prevents files from being deleted by nonowners except root What variable holds the list of directories searched by the shell to find executable programs e PATH Which one of the following commands displays the full path and name of the executable program myprog that the shell would execute if myprog were entered as a command e which myprog Alex executes the runlevel command and gets 3 5 as the response What does this tell Alex Select one e The system was in runlevel 3 and is now in runlevel 5 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 Which one of these files determines how message are stored using syslogd e etc syslog conf What does the pr command do e It paginates text files Dave has a Linux system with an interrupt conflict caused by his 3c509 network card Dave s kernel is fully modular How could Dave instruct the system to use interrupt 11 for his network adapter e Add options 3c509 irq 11 to etc conf modules What is contained in directory sbin Select the single best answer e Commands of interest mainly to the administrator What ext2 filesystem att
55. would you set the umask e umask 077 Which command would you use to set the speed of a serial interface e setserial Which directory contains a majority of system configuration files Enter the whole path e etc Most linux systems offer a display manager runlevel What statement about this runlevel is true e X11 is started automaticly an offers a login window You want to run a x application on the computer foo but it should display on the screen of computer bar What parameter for the application is needed to realize this e display bar 0 You are working with vi writing a textfile Being in command mode you want to move the cursor 7 characters left What command could you use e 7h Which of the following directories may be placed outside the root partition e tmp e boot e usr 537 538 539 540 541 542 543 544 545 546 547 548 549 550 When do you need to rerun the grub install command e Only the first time after installing GRUB You want to install the tarball foobar tar gz What command would unpack the achive e tar xzf foobar tar gz e zcat foobar tar gz tar xf You have just installed the new program foobar manually This program uses shared libraries which are installed to usr local foobar lib What is neccesary to do after the installation so that the libraries can be used e edit etc ld so conf to add the new library path and then run ldconfig You wan

Download Pdf Manuals

image

Related Search

Related Contents

02_Trimless Frame  infos viandes fraîches et produits transformés nfosi n es s vian s vs n  GSM Module - Bosch Security Systems  Current EFOSC2 Manual  L`Hebdo  Gebrauchsanleitung Manual Mode d`emploi  取扱説明書  Smeg UK26PXNF3 freezer  Pour un bilan de l`application du règlement P-6 - Presse  Page 1 Page 2 Page 3 豊富なバリエーション表示 ※データはゲイト  

Copyright © All rights reserved.
Failed to retrieve file