































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
This document serves as a valuable study guide for the testout linux pro exam. It presents a series of questions and answers covering various linux commands, including navigation, man pages, vi editor, aliases, environment variables, and input/output redirection. the q&a format facilitates self-assessment and reinforces understanding of key concepts. This resource is particularly useful for students preparing for linux-related certifications or those seeking to improve their linux command-line proficiency.
Typology: Exams
1 / 39
This page cannot be seen from the preview
Don't miss anything!
1.1.7 You have an executable file named ni that allows you to save a snapshot of your network information with the date and time into a log file. The file is in the /root directory, and /root is the current working directory. How would you run the executable file? (select two) - ans/root/ni ./ni 1.1.7 Which of the following options is the standard shell for most Linux computers? - ansBourne-again shell (bash) 1.1.7 What would you enter at the command prompt to display the present working directory?
1.3.6 After opening a file in vi, you want to switch from command mode to command line mode. What key should you enter? - ans: 1.3.6 You made a few changes to the /boot/grub/grub.conf file and now you need to exit out of insert mode, save the changes, and quit. What should you do? (Select two. Each answer is a required part of the solution.) - ansPress Esc Type :wq 1.3.6 What are two methods to exit vi from command mode? (Select two. Each answer is an independent solution.) - ansType ZZ Type :wq 1.3.6 The inital vim mode used when vim is started. It has commands that cut and replace text, and it is the mode vi uses to enter the other modes. - ansCommand mode The vim mode that works with the file system. Use it to save files after editing them. - ansCommand line mode The mode that vim uses to write and edit text in the file. - ansEdit mode 1.3.6 What command would you enter while in vi command mode to find the term Sam? - ans/Sam 1.3.6 While in command mode, you copied a whole line of text to memory. You navigated to a different location in the file, and now you need to place the line of text. What command should you use? - ansp 1.3.6 What command would you enter while in vi command mode to copy an entire line of text? - ansyy 1.3.6 Which of the following commands will cut an entire line from a file while in vi command mode? - ansdd 1.3.6 You are editing a text file with vi and need to open a new line above the one you are currently working on. What key should you press to accomplish this? - ansO While in vi command mode what does "k" do? - ansMove the cursor up a line While in vi command mode what does "h" do? - ansMove the cursor one space to the left While in vi command mode what does "l" do? - ansMove the cursor one space to the right. while in vi command mode what does "j" do? - ansMove the cursor down a line. 1.4.4 Which of the following commands will create a shortcut to the tail - f /var/log/messages command? - ansalias sysmesg="tail - f /var/log/messages" 1.4.4 Which command will display a list of the currently defined aliases on the system? - ansalias 1.4.4 What commonly predefined alias is configured to run the ls - l command? - ansll 1.4.4 You must do which of the following to define a persistent alias? - ansAdd the command defining the alias to the appropriate shell configuration file. 1.4.4 The user mbrown has a directory named logs in her home directory that is regularly updated with new log files when certain system events occur. She runs the following commands several times a week to check this directory: cd /home/mbrown/logs ls - al She wants a persistent alias named logcheck to be created to run these two commands. What command would you enter into her shell configuration file to create this persistent alias? - ansalias logcheck="cd /homembrown/logs;ls - al" 1.5.5 You need to set the COMP variable to the value 1745. Which command will set the variable so it is available to other shell programs? - ansexport COMP=
ls - l /usr/bin >> /tmp/list.txt - ansThe contents of the /usr/bin directory will be redirected into a file called /tmp/list.txt, inserted after previous contents of the file. 1.7.8 You are trying to debug a shell script that has the command ls - s in it. You suspect an error is occurring here and want to send the results of the operation (successful or error) to a file named Friday in order to examine it later. What command should you use? - ansls - s > Friday 2>& Learn more about 1.7.8 Which of the following commands give the same results as cat < turbo? Already know - anscat turbo 1.7.8 Which of the following commands sorts the contents of wordlist1 and wordlist2 and sends the result to standard output? - anscat /usr/wordlist1 /usr/wordlist2 | sort already know 1.7.8 Which symbol uses the output of one command as the input of another command? Already know - ans| (pipe symbol) 1.7.8 Which command reads from standard input and writes to standard output and files? - anstee 1.7.8 Which of the following commands displays the contents of wordlist 1 and wordlist then sorts the combined contents, then sends the results to the monitor and a file named sortedwordlist? - anscat /usr/wordlist1 /usr/wordlist2 | sort | tee sortedwordlist 1.7.8 Which command overcomes the 128 KB shell command size restriction by breaking up long list of arguments? - ansxargs 1.7.8 Which of the following commands redirects standard output to the standard error? Learn more - anscat txtfile 1>& 1.8.11 You need to create the directory /var/oracle/database/9i. Only the directory /var exists. From the root of the filesystem, which command will create the directory path? - ansmakdir - p /var/oracle/database/9i 1.8.11 In the /var directory is a directory called backup. You need to delete the directory backup and any file. You change directory focus to /var. Which command will delete the directory backup and its files? Already know - ansrm - rf backup 1.8.11 You need to make an expanded listing of all the files in the /etc. Which command will produce the listing? Already know - ansls - al /etc 1.8.11 You need to view the contents of the /home/jerrys directory. What would you enter at the command prompt to show all the contents, including hidden files and directories? Already Know - ansls - a /home/jerrys 1.8.11 Which of the following command copies the entire /temp directory with all of its files, sub-directories, and files in the sub-directories to the /home/gshant directory. (Select two. Each answer represents an independent solution.) Already Know - anscp - r /temp /home/gshant cp - R /temp /home/gshant 1.8.11 The /home/gshant/smp directory is empty and needs to be removed. You change directories to /home/gshant. What would you enter at the command prompt to remove the smp directory? Already Know - ansrmdir smp
1.8.11 The /home/gshant/smp directory contains several files. The directory and files need to be removed. You change directories to /home/gshant. What would you enter at the command prompt to remove the smp directory and the files it contains? Already Know - ansrm - r smp 1.9.11 Which of the following commands can combines multiple files into a single text stream? Already Know - anscat 1.9.11 You are logged in as root. You have the file, letter.doc, on a CD in the first compact disk drive. Which command will copy the file from the CD to you home directory? Already Know - anscp /mnt/scd0/letter.doc /root 1.9.11 Which command would you use to rename the /home/pmallory/reports file to reports.bak? Already Know - ansmv /home/pmallory/reports /home/pmallory/reports.bak 1.9.11 Which command would you use to move a file from one location to another? Already Know - ansmv 1.9.11 Which command prints the attributes of a /boot/grub/grub.conf file? - anslsattr /boot/grub/grub.conf 1.9.11 Which of the following commands will change the /home/gshants/smile file's modification and last accessed times to the current time? - anstouch /home/gshants/smile 1.9.11 What would you enter at the command prompt to display a file's type? - ansfile 1.9.11 You want to view the contents of a directory, but the output of the ls - l command scrolls beyond the limit of one console window. Which of the following commands would allow you to see the full listing of the directory? Already Know - ansls - l | less 1.10.6 Which of the following would be the result of the command ln - b ~/file1 /data/file1? - ansa copy of the file ~/file1 would be placed in /data. 1.10.6 You previously created symbolic links in your home directory to a set of files in the /data directory using the ln - s command. The system administrator just deleted those files. What happens to the links that you created? - ansThe symbolic links would still exists in you home directory but they would now be broken. How to tell if a file is a symbolic link? - ansYou can tell if a file is a symbolic link if you see a lower-case L (l) used as the first character in the permission string. or if you see the - > character following a filename. How to tell if a file is a hard link? - ansIf a file is a hard link it will use duplicate file inodes, and the first character in the permission string will be a hyphen (-) 1.11.3 What is the full path to the directory that contains data files that change constantly, including email, print jobs, and proxy cache files? - ans/var 1.11.3 Which path represents the root directory? - ans/ 1.11.3 Under the Filesystem Hierarchy Standard (FHS), what is the full path to the directory that contains the device files for a Linux system? - ans/dev 1.11.3 Under the Filesystem Hierarchy Standard (FHS), which directory contains information about the system state and processes? - ans/proc 1.11.3 Which directory is the home directory for the root user account? - ans/root 1.11.3 Which two statements best describe the purpose of the Filesystem Hierarchy Standard (FHS)? - ansDuring installation, software can predict where to place configuration files.
2.1.4 What is the full path to the directory that contains user data for all standard users on the system? - ans/home 2.1.4 Most Linux distributions will propose to create the root (/) and swap partitions by default. To prevent user files and system log files from filling up the / partition, which 2 additional partitions are you most strongly recommended to create? (Select two.) - ans/var /home 2.1.4 You have a Linux system with 8 GB of RAM installed. You plan to use this as a server system. How much space should you plan for the swap file - ans8 GB You only need 1x time the amount of swap space for a server system 2.1.4 You are installing Linux on an old computer with an old BIOS, and you are planning out the partitions of the hard disk drive. Which of the following directories should exist in the first 1024 cylinders of the hard disk drive? - ans/boot 2.1.4 Which of the following directories must remain on the same partition? (Select three.) - ans/lib /bin /etc 2.2.4 For which of the following directories should you create separate partitions? (Select two.) - ans/var /home 2.2.4 Which partition functions as virtual memory? - ansswap 2.2.4 During installation you need to make sure there is plenty of hard disk space allocated to the partition that is going to hold the entire Linux operating system. What is the mount point for this partition? - ans/ 2.2.4 When manually partitioning your hard drive during installation, which directory, or mount point, should be configured with its own partition in order to keep users from using too much hard drive space (and potentially bringing the Linux system down)? - ans/home 2.2.4 When manually partitioning your hard drive during installation, which directory, or mount point, should be configured with its own partition in order to keep log files from using too much hard drive space (and potentially bringing the Linux system down)? - ans/var 2.2.4 as which user is it bad practice for Linux administrators to regularly login as to do non- administrative tasks? - ansroot 2.3.4 Which command should you use to convert encoding from one type to another? - ansiconv 2.3.4 Which environment variable overrides all other locale settings and sets all locales to the same setting? - - ansLC_ALL 2.3.4 What is the full path to the directory that contains the locale configuration files on a Linux system? - ans/usr/share/locale 2.3.4 You are piping the data from the cat command to another program, but the data is garbled. You believe the locale is corrupting the output. Which variable setting should you change to avoid the problem described above? - ansLANG=C specifies personal name format. This includes things like whether the surname comes first or last. - ansLC_NAME is used as an override for LC_MESSAGES - ansLANGUAGE is a special variable for overriding all other settings. It sets all locales to the same setting. - ansLC_ALL
defines all locale settings at once, while allowing further individual customization via the LC_* - ansLANG 3.1.3 What is the core process for a systemd-based Linux system? - anssystemd 3.1.3 Which system component verifies the hardware and passes control of the computer to the boot loader? - ansBIOS 3.1.3 What is the correct order for the boot phases of a Linux computer? - ans1st BIOS 2nd Boot loader 3rd OS Kernel 4th Init 3.1.3 In which boot process stage is the root partition mounted? - ansOS Kernel 3.1.3 You have a system with more than one Linux operating system installed. During the system's bootup process, which component loads a splash screen, thus allowing you to choose which operating system you want to run? - ansThe secondary boot loader 3.1.3 Which of the following has a process ID (PID) of 1? - ansThe initial process 3.1.3 Which component is responsible for loading and executing the initial process? - ansOS Kernel 3.2.6 You have GRUB2 installed on your workstation.You need to make changes to the boot menu. Which files and scripts can you edit to modify the menu entries and behavior of the boot menu? (Select two.) - ans/etc/default/grub /etc/grub.d/40_custom 3.2.6 You have compiled a new kernel using rpm. When you reboot, the new kernel is not the default selection on the boot menu. You use GRUB 2 boot loader. What might you need to do to fix the problem? - ansedit the /etc/default/grub file directly to indicate the new kernel should be the default 3.2.6 You have a dual-boot system with Linux and Windows operating systems. You need to configure the GRUB 2 boot loader to display the menu for 12 seconds before it automatically boots the default operating system. - ansEdit the timeout parameter in the /etc/default/grub file to say GRUB_TIMEOUT=12. 3.2.6 What is the full path and filename of the GRUB 2 file that is used for editing the default behavior of the boot loader menu? - ans/etc/default/grub 3.2.6 Which directory contains the configuration file for GRUB 2? - ans/boot/grub2/ or /boot/grub/ it depend on the distribution 3.2.6 After updating the settings in the etc/default/grub file, you need to make sure the changes are written to the grub.cfg to take effect. What would you enter at the command prompt to write the changes to the grub.cfg file? - ansgrub2-mkconfig - o /boot/grub2/grub.cfg 3.2.6 You are editing the /etc/default/grub file. Which option should you use to set the default operating system? - ansGRUB_DEFAULT= 3.2.6 Which of the following commands will help you to determine which version of GRUB is installed on your Linux system? - ansgrub-install - V grub-install --version 3.2.6 The GRUB 2 configuration file (non-editable) - ansgrub.cfg The GRUB2 directory for script files - ans/etc/grub.d/ The GRUB2 configuration file (editable) - ans40_custom The script that identifies kernels on the root device and creates menu entries - ans10_linux The script file that allows menu entries to be modified - ans/boot/grub2/grub.cfg
3.4.6 You are working on a Linux distribution that uses systemd. Which file in the /usr/lib/systemd/system/ directory is used to start services that support multiple users, networking, and is text-based? - ansmulti-user.target 3.4.6 After making changes to the configuration of the anaconda.service, you must make those changes take effect. Which single command do you enter to make this service use the new configuration? (Note: There is no reload option with this service.) - anssystemctl restart anaconda.service 3.4.6 What would you enter at the command prompt to find out if the cups.service is running?
4.1.3 If you are using the XFree-86 version of X server, what command do you run to create a proposed configuration file for your new video board? - ansXFree- 86 - configure 4.1.3 You are using XFree86 for your X server graphical environment. The X server is configured and working, and you want to make changes to the mouse and keyboard settings. Which graphical utility can you run to make these changes? - ansxf86cfg 4.1.3 You have installed a new monitor on your system and you want to start using an XFree86 graphical environment. You have been using the command line and text-based utilities up to this point. Which utility can you use to configure a graphical environment on your system? - ansxf86config 4.1.3 Which X Windows System element is the main component of the system? - ansX server 4.1.3 Which component of the X Window System controls the placement and appearance of windows on a Linux computer? - answindow manager 4.2.4 What does LightDM create on you Linux system? - ansA desktop environment 4.2.4 What is the name of the file you create in the /etc/lighdm/ directory to configure customized settings for the LightDM Display Manager? - anslightdm.conf Files in this directory contain the default configuration settings for LightDM. Files in this directory should not be edited. - ans/usr/share/lightdm/lightdm.conf.d/ files in this directory are used to override the LightDM configuration settings - ans/etc/lightdm/lightdm.conf.d/ the lightdm.conf file can be created in this directory to customize the settings for LightDM. - ans/etc/lightdm/ 4.3.4 What is another term for keyboard accessibility options on a Linux system - ansAccessX 4.3.4 Which users benefit from the sticky keys accessibility option - ansUsers who have difficulty pressing multiple keys at the same time. 4.3.4 You have a user who has difficulty typing. She is constantly pressing keys multiple times by accident. Which keyboard accessibility option should you enable? - ansBounce keys 4.3.4 You have a user who has difficulty using the mouse. Which keyboard accessibility option should you enable? - ansmouse keys 4.3.4 Which of the following statements best describes the repeat rate keyboard accessibility option? - ansRepeat rate affects how quickly the action associated with the key is repeatedly performed when the key is pressed and held down. 4.3.4 What is Emacspeak? - ansA screen reader 4.3.4 What desktop theme adjusts the background and text colors to improve readability? - anshigh contrast 4.3.4 Which type of Braille device prints a hard copy of a text document using Braille characters? - ansBraille embosser 4.3.4 Which of the following statements best describes the mouse gesture visual accessibility option? - ansA mouse gesture allows users to configure Linux to complete a specified task when the mouse is moved in a certain pattern. 4.3.4 Which of the following is generally not an alternative input method for the GNOME On-Screen Keyboard (GOK)? - ansMoving the mouse in a certain pattern. 4.3.4 Which of the following items is a free, open-source scriptable screen reader that works with the GNOME desktop? - ansOrca 5.1.8 You need to install the package apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm. Which command will perform the installation? (Select two.) - ansrpm - Uh apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm
5.2.7 When managing YUM, what is the full path to the directory where you should place .repo files? - ans/etc/yum.repos.d/ 5.2.7 What YUM command would you enter at the command prompt to download an RPM package without installing it to the system? - ansyumdownloader 5.2.7 Which yum option displays whether updates are available for RPM packages? - anslist updates 5.2.7 What YUM command would you enter at the command prompt to determine which package contains the /usr/lib/libstlport_gcc.so file? - ansyum whatprovides /usr/lib/libstlport_gcc.so 5.2.7 You have users who need to do some programming projects in the Python programming language. What YUM command do you use to find out if there is a python package available to install on the Linux server? - ansyum list python 5.2.7 You used YUM to list the python packages that are available to install. You see that there is a package available that is called python. What YUM command do you use to install this python package? - ansyum install python 5.2.7 What is the full path and file name for the DNF configuration file? - ans/etc/dnf/dnf.conf 5.2.7 You have installed a package called mathpac with DNF. After a system upgrade, the system is not working correctly. Which command should you try first to get the package to work? - ansdnf update mathpac 5.2.7 You need the DNF utility to check specific URLs for RPM repositories. Where should you add the URLs? - ansIn .repo files within the /etc/yum.repos.d/ directory 5.2.7 You need to remove an RPM package from your system. Which of the following commands could you use? - ansdnf remove 5.2.7 You have users who need to do some programming projects in the Ruby programming language. What DNF command do you use to find out if there is a ruby package available to install on the Linux server? - ansdnf list ruby 5.2.7 You used DNF to list the ruby packages that are available to install. What DNF command do you use to install this ruby package? - ansdnf install ruby 5.3.5 You have installed a package called mathpac with apt-get. After a system upgrade, the package is not working correctly. Which command is the most correct option to get the package to work? already know - ansapt-get upgrade mathpac 5.3.5 Which dpkg option installs a package recursively? - ans-R 5.3.5 Which function does dpkg --configure command perform? - ansReconfigures an unpacked package. 5.3.5 Which of the following actions does the dpkg - l (lowercase L) command perform? - ansAll packages with names that match a specified pattern are displayed. 5.3.5 What dpkg command would you enter at the command prompt to search for packages that have been partially installed on the system? - ansdpkg - C 5.3.5 What dpkg command would you enter at the command prompt to list information about a currently installed Debian package? - ansdpkg - p 5.3.5 Which dpkg option completely removes a package and its configuration files? - ans-P 5.3.5 Which command reconfigures an already installed package? - ansdpkg-reconfigure 5.3.5 Which of the following statements are true regarding the apt-get utility? (Select two.) - ansapt-get uses /etc/apt/sources.list to find information about the application repositories.
apt-get is similar to the yum utility on an RPM distribution. 5.3.5 You are working on a Debian distribution of Linux. You need to install a package, but you do not want to manually install all the dependencies for the package. Without using any command options, what command should you use? already know - ansapt-get 5.3.5 You are working on a Debian distribution of Linux. You wan to retrieve information about the Debian package database on the system. Without using any command options, what command will provide the information you need? - ansapt-cache 5.3.5 Which apt-cache option shows the missing dependencies in the package cache? - ansunmet 5.3.5 Which function does the - d option perform when using the apt-get command to install a package? - ansPackages are downloaded to the system but not installed. 5.3.5 Which apt-get option upgrades all installed packages to the latest versions using information in /etc/apt/sources.list? - ansupgrade 5.3.5 Which of the following Debian package management utilities provides the front end for APT? - ansaptitude 5.4.4 Which of the following is most likely to cause a dependency problem? - ansinstalling two different packages that both include /usr/lib/graphlib 5.4.4 Which of the following commands displays all of the shared library information for the /bin/bash executable? - ansldd - v /bin/bash 5.4.4 Which environmental variable specifies additional directories to search for library files not listed in /etc/ld.so.conf? - ansLD_LIBRARY_PATH 5.4.4 What command would you enter at the command prompt to display the shared library information for executables? - ansldd 5.4.4 which of the following commands reloads the libraries for the /bin/bash executable, but does not update the cache? - ansldconfig - N /bin/bash 5.4.4 What would you enter at the command prompt, without options, to reload the library cache every time libraries are added or removed and to update the symbolic links? - ansldconfig 5.4.4 Which command should you use to change the location of the default file used to search for libraries? - ansldconfig - f 5.4.4 What is the full path and file name for the file that contains a colon-, space-, tab-, newline-, or comma-delimited list of directories in which to search for libraries? - ans/etc/ld.so.conf 5.4.4 Which of the following methods should you use to configure dynamic librairies ona Linux system? (Select two.) - ansUse the LD_LIBRARY_PATH environment variable to specify additional directories to search for library files. Modify /etc/ld.so.conf to add the path of the libraries. Break point - ansBreak Point 5.4.4 Which directories typically hold the dynamic libraries on your system? (Select two.) - ans/usr/local/lib/ /usr/lib Dynamic library characteristics (they are not integrated into source code) - ansHave a .so or .so.version extension (.so stands for shared object).Are typically stored in /usr/lib/ and
command will change Brandon's shell to the desired setting? - ansusermod - s /bin/bash brandon 6.2.11 One of your users, Karen Scott, has recently married and now is Karen Jones. She has requested that her username be changed from kscott to kjones, but no other values change. Which of the following commands will accomplish this? - ansusermod - l kjones kscott 6.2.11 You have performed an audit and have found active accounts for employees who no longer work for the company. You want to disable those accounts. What command example will disable a user account? - ansusermod - L joer 6.2.11 What would be the outcome of the following command? userdel - r jjones - ansThe user account, jjones, would be deleted along with jjones' home directory. 6.2.11 An employee named Bob Smith, with a user name of bsmith, has left the company. You have been instructed by your supervisor to delete his user account along with his home directory. Which of the following commands would produce the required outcome? - ansuserdel bsmith;rm - rf /home/bsmith userdel - r bsmith 6.2.11 A user with an account name of larry has just been terminated from the company. There is good reason to believe that the user will attempt to access and damage the files in the system in the ver near future. Which command below will disable or remove the user account from the system and remove his home directory? - ansuserdel - r larry 6.2.11 You need to change the default homedirectory value used by the useradd utility when creating a user account. What is the full path and filename of the file you should edit? - ans/etc/default/useradd 6.2.11 What is the full path to the directory that contains a set of configuration file templates that are copied into a new user's home directory when it is created? - ans/etc/skel 6 .2.11 You nee to create a user account with these specific parameters:
6.3.10 What would you enter at the command prompt to display the primary and secondary group memberships for the gshant user account? - ansgroups gshant 6.3.10 You need to modify the group membership for the user gmyrick to add the staff group to his list of secondary group memberships. He needs to keep his existing secondary group memberships. Which command option will add gmyrick to the staff group without removing him from the other groups? - ansusermod - aG staff gmyrick 6.3.10 You have just created the lsmith user account and need to assign this new user to the secondary groups admin and acct. Enter the command you would use to add lsmith to the admin and acct secondary groups. - ansusermod - G acct,admin lsmith 6.3.10 The user emcmann has been transferred from the accounts payable department. She was assigned to several secondary groups that gave her rights to sensitive files and systems. You need to remove her from all her current secondary groups right away. Enter the command that will remove emcmann from all her secondary groups. - ansusermod - G "" emcmann If you are getting your applications and updates in RPM format, whuch distribution is your system based on? - ansRed Hat Which DNF option displays whether updates are available for RPM packages? - anslist updates 7.1.7 Type the full device file name for the second partition on the hard drive with the lowest ID number? - ans/dev/sda 7.1.7 Type the full device file name for the first partition on the hard drive with the third lowest ID number. - ans/dev/sdc 7.1.7 Which of the following deive file names represents the second local terminal on the system? - ans/dev/tty 7.1.7 What is the file path and name of the directory that contains device files for hard drives, optical drives, and USB devices? - ans/dev 7.1.7 You have put a new hard disk in your system and created two primary partitions (sdb and sdb2) and one extended partition (sdb3). You have just formatted sdb1 with ext3 and sdb2 as a swap area. When you try to format sdb3 as a swap area , you are unable to. What is the problem? - ansYou cannot format an extended partition. 7.1.7 You have added a second hard disk to your Linux system. Which of the following commands will allow you to partition the new drive? - ansfdisk /dev/sdb 7.1.7 You want to view partition information for your sda device. Which commands could you use to view the partitions defined on sda (Select two.) - ansfdisk - l fdisk /dev, then press p 7.1.7 You have a system with a single hard disk. You add a new hard drive to your system. Which of the following commands would you use to partition the new drive? - ansfdisk /dev/sdb 7.1.7 Which hexadecimal code represents an extended partition? - ans0x 7.1.7 How many logical partitions can you create on an extended partition? - ansUnlimited 7.1.7 How many partitions can you create on a single MBR hard drive? - ans 7.2.4 You have installed a new blank hard drive on you Linux system. This is the second drive on the system so it is represented in the file system by the /dev/sdb file. You need to create GUID partitions on this drive. What command do you use to start up the GUID disk management utility to create partitions on the /dev/sdb drive? - ansgdisk /dev/sdb
7.4.9 You created a swap area on sda3, but it is not activated. Which command should you use to activate the swap partition? - ansswapon /dev/sda 7.4.9 You have a Linux system with two activated swap partitions: sda3 and sdb2. Which of the following commands can you use to deactivate the sda3 swap partition? - ansswapoff /dev/sda 7.4.9 Which file system is a FAT32 file system for Linux? - ansVFAT 7.4.9 You need to create an ext4 file system on the first partition on the second hard disk drive. What command should you enter at the command prompt? - ansmkfs.ext4 /dev/sdb 7.5.7 Which of the following is not true regarding mount points? - ansMount point use the partitions represented by device files located in the /lib directory/ 7.5.7 You have partitioned and formatted a new hard disk drive, sdc. You want to mount the first partition on sdc to directory /mnt/newdisk. Which command will perform the mount correctly? - ansmount /dev/sdc1 /mnt/newdisk 7.5.7 You are preparing to mount a device local to your system. Which directory holds the device files? - ans/dev 7.5.7 Partition /dev/sdb2 is mounted to /mnt/temp. You need to unmount /dev/sdb2. Which commands would you use (Choose two.) - ansumount /dev/sdb umount /mnt/temp 7.5.7 A user is trying to access a file system mounted at /mnt/sdb1 but recieves an error No such file or directory. Which commands can you use to see the current mount points? (Choose two.) - ansdf mount 7.5.7 A number of new file systems have been added to the server and you want them to be active now. You also do not want to bring the server down. Which command makes the changes active? - ansmount - a 7.5.7 You want to mount a number of file systems each time the system is brought up. What configuration file should hold the configuration information for the file systems to be mounted? - ans/etc/fstab 7.5.7 Yesterday you created a new swap area for your system. Today, after rebooting the system, you find the swap area is not mounted. What should you do to ensure the swap area is mounted each time the system boots? - ansEdit /etc/fstab and add the swap partition. 7.5.7 Which file shows the currently mounted volumes? - ans/etc/mtab 7.5.7 You have added several new hard disks to your system. After partitioning and formatting you have modified a configuration file to mount the new file systems automatically. You want to document the change you made. What file would you document?
7.5.7 You need to configure you Linux system to allow only the root user account to mount the CD-ROM device. Which of the following options should you add to the /etc/fstab file? - ans/dev/cdrom /media/cdrom - t iso9660 ro,nouser,noauto 7.5.7 What is the full path and filename of the file that contains the file system table for a Linux system? - ans/etc/fstab 7.6.6 You are requested to help a user who reports that he has no more local storage space. You go to his system and login as root user. Which command will display the available disk space on all partitions? - ansdf df - h 7.6.6 You have created a seperate partition for the sales team and mounted it to the /sales directory. The team is about to begin a new project, and they want to make sure this is enough disk space to hold upcoming files. Which command will show you the amount of free space? - ansdf /sales 7.6.6 You are asked to help a user who is complaining that file system errors are being reported during boot up. When you reboot the user's system you see errors on sda2. You want to check the file system on sda2 and fix the errors. What can you do? - ansChange to single user mode and run fsck /dev/sda2. 7.6.6 Which command allows you to use an alternative superblock when the primary superblock has been corrupted? - anse2fsck - b 16385 /dev/sda 7.6.6 You need to convert the file system of /dev/sdb3 from ext2 to ext3 without affecting the data on the drive. What command and option should you enter at the command prompt? - anstune2fs - j /dev/sdb 7.6.6 What is the effect of the tune2fs - j /dev/sdb1 command? - ansconverts the /dev/sdb device to ext3. 7.6.6 You suspect your /dev/sda3 partition is in need of repair. Which of the following e2fsck options will repair the errors without any interaction from you? - ans-p 7.6.6 You have an xfs file system on you Linux xomputer. You need to display the XFS file system parameters, such as the block size and inode data structures. Which of the following commands should you use? (Select two. Each answer is an independent solution.) - ansxfs_info xfs_growfs - n 7.6.6 You have an XFS file system in your Linux system represented by /dev/sdb1. You need to copy all the filenames on the drive to the /reviewxfs file. You must be able to read the filenames in the /reviewxfs file. Which of the following commands should you use? - ansxfs_metadump - o /dev/sdb1 /reviewxfs 7.6.6 Which command can you enter at the command prompt to list all files and directories in the badams home directory along with a file size and a total amount of space taken up by the directory? - ansdu - ac /home/badams 7.6.6 Your ext3 file system has experienced a significant amount of corruption. To examine the file system, you want to use debugfs utility. Which debugfs option should you use to examine the file system? - ans-c 7.6.6 You are inspecting the superblocks and block information on you file system. You need dumpe2fs to display only the blocks that are reserved as bad in the file system. Which option should you use? - ans-b