lpi 101 quarto ---------------------------------------------------------------------------- -1- quale e' l'effetto del seguent ecomando? cp /foo/bar /bar/foo /foobar copia i file /foo/bar e /bar/foo nella dir /foobar ----------------------------------------------------------------------------- -2- la prima partizione logica del master-disk sul primo-IDE-canale puo essere acceduta dal file /dev/____ hda5 ----------------------------------------------------------------------------------------------------- -3- quale dei seguenti comandi puo' essere usato per cercare il mount-count per un filesystem ext3? dumpe2fs tune2fs ---------------------------------------------------------------------------------------------------- -4- The second primary partition of the master disk on the second IDE-channel can be accessed using the /dev/____ device file. hdc2 ---------------------------------------------------------------------------------------------------- -5- volete rimuovere una dir foo non vuota, con quale comando? rm -r foo ---------------------------------------------------------------------------------------------- -6- in VI quale e' l'effetto del tasto "R" ? entra nella modalita' "replace" ----------------------------------------------------------------------------------------------- -7- You want to get the GID of the default group of user foobar, which of the following command can do the job? grep foobar /etc/passwd | cut -d: -f4 --------------------------------------------------------------------------------------------------------------- -8- You want to check the authenticity of an RPM package, which of the following command you need to use? rpm --checksig package ----------------------------------------------------------------------------------------------------------- -9- You want to replace all occurrences of the word foo with bar in the file foobar.txt, which of the following command you can use? sed 's/foo/bar/' ----------------------------------------------------------------------------------------------------------- -10- You want to remove an RPM package, which of the following command you can use? rpm -e ... rpm --erase ... ---------------------------------------------------------------------------------------- -11- Which of the following will execute the program /usr/bin/less ? less cd /usr/bin/ && ./less cd /var/log/ && ../../usr/bin/less /usr/bin/less --------------------------------------------------------------------------------------- -12- You want the list of all files contained by the uninstalled RPM package foo.rpm. Which command you use ? rpm -qpl pacchetto.rpm. Query Package List ---------------------------------------------------------------------------------------- -13- usinf "ps ef" you will display all user process in a tree-like format ------------------------------------------------------------------------------------------ -14- you can find the system log in dir: /var/log ------------------------------------------------------------------------------------------ -15- Which of the following statements about GRUB is true? grub can receive command only on tha consolle grub can launch kernel also if you did not put in its configuration --------------------------------------------------------------------------------------- -16- What is the main configuration file for the yum command? (write the full pathname) /etc/yum.conf ----------------------------------------------------------------------------------------- -17- Which of the following command can be used to copy all files or directories in your home to another directory? cp cpio ------------------------------------------------------------------------------------------ -18- which action have to do when boot a server in a rack without keyboard to avoid error messages in the BIOS swetting put the "halt on error" option to "all but keyboard" ------------------------------------------------------------------------------------------ -19- which command would you use to check the signature of an RPM package? rpm --checksig ------------------------------------------------------------------------------------------- -20- ------ filename.rpm is the command used to install the package filename on a redhat system rpm -i --------------------------------------------------------------------------------------------- -21- which of statements regarding the execution of the following file is true? -rwsr-xr-x 1 foo bar 1000 jan 26 22:14 foobar the program foobar will be executed with the effective user id of foo --------------------------------------------------------------------------------------------- -22- Which command you can use to merge the lines of two files ? paste ---------------------------------------------------------------------------------------------- -23- using sysV style init system which of the folowing runlevel cannot be used as default runlevel? 6 0 ----------------------------------------------------------------------------------------------- -24- you have an application whosw behavior depends on the env variable BAR which command lines may be used in a bash shell to configure the application? BAR=baz ; export BAR ------------------------------------------------------------------------------------------------ -25- installing new server splitting the directory tree into separate partitions to max extent for which you can do this? /boot /var ------------------------------------------------------------------------------------------------ -26- you want to watch the contents of a file while is still growing, which command you use? tail -f file ------------------------------------------------------------------------------------------------ -27- what the sixth field in the /etc/fstab file is used for? to configure the usage od fsck on the volume at boot time ------------------------------------------------------------------------------------------------ -28- You have compiled the command foobar from source; following the Filesystem Hierarchy Standard, where you must install it to make it usable from all user? (write the full path) /usr/bin ??? -------------------------------------------------------------------------------------------------- -29- Your disk is going to fill, and you need a report of the user quota occupation for /home: which command you can use? repquota /home -------------------------------------------------------------------------------------------------- -30- which of the following command would orward the outuput of foo to the input of bar ? foo | bar ---------------------------------------------------------------------------------------------------