COMBO DOMAIN 1-4 LX0-101
Which directory contains device files for hard drives, optical drives, and USB devices? (Include the entire path.)
/dev
What is the correct order for the boot phases of a Linux computer?
1st BIOS 2nd Boot loader 3rd OS Kernel 4th Init
Type the full device file name for the second partition on the hard drive with the lowest ID number.
/dev/sda2
You need to change the how the formatting displays the /home/varstown file. Specifically, you need to replace each tab character with 3 spaces when you print the file to the screen.What command should you use? (Tip: Enter the command as if at the command prompt.)
expand -t 3 /home/varstown
You need to create an ext4 file system on the first partition on the second hard disk drive. What command should you use? (Tip: Enter the command as if at the command prompt.)
mkfs.ext4 /dev/sdb1
You are using YUM, and you need to determine which package contains the /usr/lib/libstlport_gcc.so file. Which command should you type at the command prompt? (Tip: Enter the command as if at the command prompt.)
yum whatprovides /usr/lib/libstlport_gcc.so
Which command will download an RPM package without installing it to the system? (Tip: Enter the command as if at the command prompt.) _ _ _ _ _ _ _ _ _ _ _ _ _
yumdownloader
Which symbol uses the output of one command as the input of another command?
| (pipe)
Which of the following device file names represent the second local terminal on the system?
D. /dev/tty2
Which environment variable affects the number of past commands used in the current shell session?
HISTSIZE
Which file system is a FAT32 filesystem for Linux?
VFAT
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 pendencies for the package. Which command should you use? (Tip: Do not include any command options.)
apt-get
You are working at the command line and need to start a new Bourne-again shell (bash) session. What should you type? (Tip: Enter the command as if at the command prompt.)
bash
Which command will change the group ownership for the devstyle.txt file to rand in the present working directory? (Tip: Enter the command as if at the command prompt.) _ _ _ _ _^ _ _ _ _ ^devstyle.txt
chgrp rand devstyle.txt
Which command will display a file's type? (Tip: Enter the command as if at the command prompt.)
file
You want to display the contents of ~/franksdep in hexadecimal format. You change to your home directory. Which command should you use? (Tip:Enter the command as if at the command prompt.} _ _ -_ _ _ _ _ _ _ _ _
od -x franksdep
Which environment variable specifies additional directories to search for library files not listed in /etc/ld.so.conf?
LD_LIBRARY_PATH
You are searching the standard input for any line containing JAMESTOWN at the end of a line. Which egrep constructor should you use? (Tip: Type the command as if at the command prompt.)
egrep JAMESTOWN$
Which command will display only the environment variables applied to child sessions?
env
What command will start the gedit process with a highest priority possible? (Tip: Enter the command as if at the command prompt.) _ _ _ _ -_ -## gedit
nice -n -20 gedit
Which directory allows you to name devices when they are connected to the system? (Enter the full path to the directory.)
/etc/udev/rules.d/
When managing YUM, where should you place .repo files? (Tip: Enter the full path to the file.) /_ _ _/_ _ _._ _ _ _._/
/etc/yum.repos.d/
Which of the following directories should be on separate partitions? (Select two.) A. /home B. /lib C. /bin D. /var
A. /home D. /var
Which of the following directories is specified by Filesystem Hierarchy Standard (FHS) as a mount point for removable media, such as USB storage media, DVDs, CD-ROMs, and Zip disks? A. /media B. /mnt C. /mount D. /
A. /media
Which of the following commands displays all lines in ~/smarts, omitting the last 10 lines? A. head -n -10 ~smarts B. tail -n -10 ~smarts C. tail -n 10 ~smarts D. head -n 10 ~smarts
A. head -n -10 ~smarts
What command should you enter to see a list of all the commands you recently used at the command prompt? A. history B. uname C. clear D. chsh
A. history
Which of the following lines in the /etc/inittab file defines the default runlevel? A. id:3:initdefault: B. si::sysinit:/etc/rc.d/re.sysinit C. l5:5:wait:/etc/init.d/rc 5 D. cmd:123:wait:/sbin/custom
A. id:3:initdefault:
Which of the following is the core process for Linux?
A. init
Which key combination should you press in vi to save the file you are working on and quit? A. S B. s C. :wq D. :q
C. :wq
You are editing the /etc/default/grub file. Which option should you use to set the default operating system? A. GRUB_DISABLE_OS_PROBER B. GRUB_SAVEDEFAULT C. GRUB_DEFAULT D. GRUB_TIMEOUT
C. GRUB_DEFAULT
Which dpkg option installs a package recursively? A. -R B. --configure C. -r D. -P
A. -R
Which of the following directories should be part of the partition that holds the root (/) directory? (Select three .) A. /bin B. /usr C. /etc D. /home E. /proc F. /var
A. /bin C. /etc E. /proc
Which of the following directories must remain on the same partition? (Select three.) A. /etc B. /bin C. /lib D. /home E. /usr
A. /etc B. /bin C. /lib
You are working on a Linux distribution which uses upstart. Which file allows you to set the default run level? /_ _ _/_ _ _ _/_ _-_ _ _ _ _ _ _.conf
A. /etc/init/rc-sysinit.conf
Which file includes a list of users who are able to shutdown the system?
A. /etc/shutdown.allow
You have installed a new Linux system and you want to make a baseline of system performance. Which of these contain baseline information? (Choose two.)
A. /meminfo B. /cpuinfo
You need to configure a few changes to how the locatedb index file is created. Which file should you edit? (Tip: Enter the full path of the file.) /_ _ _/_ _ _ _ _ _ _ _.conf
/etc/updatedb.conf
What is the full path for the Yellowdog Updater Modified (YUM) configuration file? (Tip: Enter the full path.) /_ _ _ /_ _ _._ _ _ _
/etc/yum.conf
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.) A. /root/ni B. ni C. source ni D. ./ni
A. /root/ni D. ./ni
What is the result of the uname -a command? A. All system information is displayed on the screen. B. Shows names of files and directories in the current directory. C. Displays the current working directory. D. Displays the current username
A. All system information is displayed on the screen.
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. Which of the following commands should you use? A. ls -s>Friday 2>&1 B. ls -s>Friday C. ls -s>> Friday D. ls -s Friday
A. ls -s>Friday 2>&1
After a severe lightning strike nearby, a number of processes seem to be running on the server in runaway mode. Which utility terminates these processes by name, and not just by process ID number? A. killall B. down C. endall D. closeproc
A. killall
Which command prints the attributes of a /boot/grub/grub.conf file? A. lsattr /boot/grub/grub.conf B. ls /boot/grub/grub.conf C. cat /boot/grub/grub.conf D. vi /boot/grub/grub.conf
A. lsattr /boot/grub/grub.conf
Which of the following commands would allow you to determine if a service or driver failed to load during boot up? (Choose all that apply.) A. less /var/log/dmesg B. less /var/log/messages C. less /var/log/secure D. dmesg
A. less /var/log/dmesg D. dmesg
A number of new filesystems 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?
A. mount -a
You need to perform some system maintenance, and want to prevent users from logging on while you do so. Which command should you run? A. init 6 B. init 1 C. init 0 D. init7
B. init 1
You have made changes to the /etc/inittab file, but they do not seem to be taking effect. This is the busy time of day and you do not want to bring the system down and back up. Which command forces the system to reread the entries in the /etc/inittab file?
B. init q
You need to send a process to the foreground. Which command should you enter to identify the job ID for the process? A. nice B. jobs C. top D. ps
B. jobs
Which of the following commands displays all of the shared library information for the /bin/bash executable? A. ldconfig -p /bin/bash B. ldd -v /bin/bash C. ldd /bin/bash D. ldconfig -N /bin/bash
B. ldd -v /bin/bash
Which of the following utilities would you use to search the path for files matching a given name? A. type B. locate C. cat D. tail
B. locate
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? A. ls -paged B. ls -l | less C. ls -l>> less D. ls -p
B. ls -l | less
You want to archive some configuration files to the floppy drive. You are using the cpio utility. Which line will create the archive on the floppy? A. cpio -ov /dev/rfd0 /etc/**.conf B. ls /etc/***.conf | cpio -ovd > /dev/rfd0 C. cpio -ov /etc/***.conf /dev/rfd0 D. cpio -cv /etc/**.conf /dev/rfd0
B. ls /etc/*.conf | cpio -ovd > /dev/rfd0
Which of the following commands will display information about the PCI devices installed on the system? A. lsmod B. lspci C. hwinfo D. lsusb
B. lspci
What command should you use to change the location of the default file used to search for libraries? A. ldconfig -n B. ldcontig -r C. ldconfig -f D. ldconfig -p
C. ldconfig -f
Which of the following files would not be found by the locate -i LibraryFines.csv command? A. LibraryFines.csv B. Libraryfines.csv C. libraryfines.csv1 D. 1libraryFines.csv E. libraryfines.csv
C. libraryfines.csv1
You need to make an expanded listing of all the files in /etc. Which command will produce the listing? A. dir -al/etc B. ld -ae /etc C. ls -al /etc D. ls -ae /etc
C. ls -al /etc
Which command will merge two files on a line-by-line basis, and separate each line with a tab? A. od B. pr C. paste D. join
C. paste
Which of the following utilities will substitute an existing string with a new string within a file? A. fgrep B. grep C. sed D. egrep
C. sed
You have several processes running in the background as shown from the jobs command below: [1}+ Running gedit & [2]+ Stopped crontab e What command will bring the gedit program to the foreground? A. fg edit B. fg [1] C. bg 1 D. fg 1
D. fg1
What is the result of the *nohup gedit &* command? (Select the most accurate statement.) A. gedit will start in the background and terminate after logging out of the shell. B. gedit will start after logging out of the shell. C. gedit will start in the foreground and terminate after logging out of the shell. D. gedit will start in the background and persist in the background after logging out of the shell.
D. gedit will start in the background and persist in the background after logging out of the shell.
Which command would you use in a script to parse out entries that contain the word *those* from a file named *config* in a folder named *diet* beneath the /etc directory? A. grep /etc/diet/config those B. locate /etc/diet/config those C. egrep /etc/diet/config those D. grep those /etc/diet/config
D. grep those /etc/diet/config
A service specialist from your company calls you from a customer's site. They are attempting to install an upgrade to the software, but it will not install, reporting that it cannot do so until all non-core services are stopped.You cannot remotely access the machine, but the representative tells you that there are only four processes running,and their PID numbers are 1, 10, 100,and 1000. With no further information available, which command would you recommend the representative run? A. kill 1 B. kill 10 C. kill 100 D. kill 1000
D. kill 1000
Which yum option displays whether updates are available for RPM packages? A. update B. install C. list D. list updates
D. list updates
A directory intended to be used only by administrators keeps filling with files.Which of the following commands would you use to see only the names of the users saving files in the directory? A. ls -l | find -d " " -f5 B. ls -l | join -d " " -f5 C. ls -l | grep -d " " -f5 D. ls -l | cut -d " " -f5
D. ls -l | cut -d " " -f5
You need to create the directory /var/oracle/database/9i. Only the directory /var currently exists. From the root of the filesystem which command will create the directory path? A. md -path /var/oracle/database/9i B. mkd /var/oracle/database/9i C. mkdir /var/oracle/database/9i D. mkdir -p /var/oracle/database/9i
D. mkdir -p /var/oracle/database/9i
You have successfully partitioned the forth hard drive into 2 primary partitions.You need to format the second partition with the ext3 filesystem. Which command will work? A. fdisk -e3 /dev/sdb2 B. mke2fs -e3 /dev/sdd2 C. format -e3 sdb2 D. mke2fs -j /dev/sdd2
D. mke2fs -j /dev/sdd2
Which command would you use to move a file from one location to another? A. copy -r B. cp -d C. move D. mv
D. mv
Before you install an RPM package,you want to verify the authenticity of the package and check the digital signature to ensure it has not been altered. Which command rpm option should you use?
--checksig
Match the command on the left with the description on the right to navigate while in vi command mode h j k l -Move the cursor up a line. -Move the cursor one space to the left. -Move the cursor one space to the right. -Move the cursor down a line.
-Move the cursor up a line. k -Move the cursor one space to the left. h -Move the cursor one space to the right. l -Move the cursor down a line. j
Drag the permission string on the left to the category on the right. (Tip: Some permission strings will not be used.) lrwxrwxrwx drwxr-xr-x -rwxr-xr-x srwxr-xr-x prwxr-xr-x -Symbolic Link -Hard Link
-Symbolic Link lrwxrwxrwx -Hard Link -rwxr-xr-x
Drag the GRUB or GRUB2 file or directory on the left to the correct description on the right. Tip: Not all drop zones will be used. /boot/grub/grub.cfg /boot/grub/menu.lst /etc/grub.d/ /etc/default/grub -The GRUB2 configuration file (non-editable). -The GRUB2 directory for script files. -The GRUB2 configuration file (editable). -The GRUB configuration file (non-editable). -The GRUB configuration file (editable). -The GRUB directory for script file.
-The GRUB2 configuration file (non-editable). /boot/grub/grub.cfg -The GRUB2 directory for script files. /etc/grub.d/ -The GRUB2 configuration file (editable). /etc/default/grub -The GRUB configuration file (non-editable). -The GRUB configuration file (editable). /boot/grub/menu.lst -The GRUB directory for script file.
You are working with the following RPM package: acroread-8.1.3-51.6.i586.rpm. Drag the naming convention term on the left to match the items on the right. Release number Package name Architecture type Version number -i586 -8.1.3 -acroread -51.6
-i586 Architecture type -8.1.3 Version number -acroread Package name -51.6 Release number
You need to view the files within /home/gshant/expfile.bz2 , but you want to leave the compressed file unchanged. What bzip2 option should you use?
-k
While in command mode, you need to find the term Sam. Which command should you use? (Tip: Enter the command as if in vi command mode.)
/Sam
What is the path for the menu.lst file? (Tip: Include the complete path.) /_ _ _ _/_ _ _ _
/boot/grub
Under the Filesystem Hierarchy Standard (FHS), which directory contains the device files for a Linux system? (Tip: Enter the full path of the directory.)
/dev
Type the full device file name for the first partition on the hard drive with the third lowest ID number.
/dev/sdc1
Where is the file system table located on a Linux system? (Tip: Enter the full path to the file.)
/etc/fstab
You need to implement disk quotas on your Linux system. You need the quotas on the / directory. Which file must be edited to implement quotas for users and groups? (Tip: Enter the full path to the file.) /_ _ _/_ _ _ _ b
/etc/fstab
What file contains a colon, space,tab, newline, or comma-delimited list of directories in which to search for libraries? (Tip:Enter the full path to the file.) /_ _ _/_ _._ _._ _ _ _
/etc/ld.so.conf
Which directory contains user data for all standard users on the system? (Tip: Enter the full path to the directory.)
/home
Which directory contains information about the system state and processes? (Enter full path to directory.)
/proc
Which directory contains information about each kernel module installed on the computer? (Enter full path on the directory.)
/sys/module
Which directory holds the man files on the system? (Tip: Enter the full path of the directory.)
/usr/share/man
Which directory contains data files that change constantly, including e-mail, print jobs, and proxy cache files? (Tip: Enter the full path to the directory .)
/var
What is the default nice value for a process not executed with the nice command?
0
What is the typical default umask value?
022
What is the priority of the gedit process after using the nice -5 gedit command?
75
A friend sent you a shell script file that is 117 lines long. He says that he wants you to examine code on lines 82 through 87. What command in command line mode takes you directly to line 82? (Tip: Enter the command as if in command line mode.)
82
After opening a file in vi, you want to switch from command mode to command line mode. What key should you enter?
:
You have an application whose owner is root but you want all users to execute the application with root user permissions. Which of the following examples shows correct usage of the SUID flag? A. -rwsr--r-- 3 root sys 73748 Nov 2 2005 /usr/bin/applicationx B. -rwxr-sr-- 3 root sys 73748 Nov 2 2005 /usr/bin/applicationx C. -rwxr-sr-s 3 root sys 73748 Nov 2 2005 /usr/bin/applicationx D. -rwxr--r-s 3 root sys 73748 Nov 2 2005 /usr/bin/applicationx
A. -rwsr--r-- 3 root sys 73748 Nov 2 2005 /usr/bin/applicationx
You are inspecting the superblocks and block information on your file system. You need dumpe2fs to display only the blocks that are reserved as bad in the file system. Which option should you use? A. -h B. -x C. -b D. -f
C. -b
Which of the following devices represent a hotplug device? A. CPU B. RAM chips C. USB flash drives D. PCI Express cards
C. USB flash drives
A developer calls with a problem.They were trying to debug a new daemon and mistakenly placed it on the production machine instead of on a lab machine. To ensure the CPU gives preference to other processes,you need to lower the daemon's priority. The PID number is 2345 . Which command would you use to decrease the daemon's priority? _ _ _ _ _ _ -_ 10 2345
C. renice -n 10 2345
You are editing the GRUB configuration file, and you need to configure the /dev/sda3 as the root drive. What entry should add to the file?
C. root (hd0,2)
You have an RPM package called mathpac that is not working correctly.You have downloaded the latest package. Which line is the most correct option? A. First rpm -e mathpac then rpm -i mathpac B. rpm -i mathpac C. rpm -U mathpac D. rpm -F mathpac
C. rpm -U mathpac
Which kill option stops and restarts the process with the same Process ID (PID)? A. -SIGTERM B. -SIGINT C. -SIGKILL D. -SIGHUP
D. -SIGHUP
Which hexadecimal code represents an extended partition? A. Ox82 B. Ox83 C. Ox88 D. Ox85
D. Ox85
Match the correct /proc directory content on the left with the description on the right. cpuinfo dma version cmdline -Displays the boot options that were given to the kernel at boot time. -Displays information about the computer's CPU. -Displays information about the current kernel version. -Displays all the direct memory access assignments for the computer.
Displays the boot options that were given to the kernel at boot time. cmdline Displays information about the computer's CPU. cpuinfo Displays information about the current kernel version. version Displays all the direct memory access assignments for the computer. dma
You have an application called ABCD that is generating system errors when it starts. Which command is the best to search the system message log file for errors? A. display ABCD /var/log/messages B. tail -n25 /var/log/messages C. tail -n25 /var/log/ABCD.log D. top /var/log/ABCD.log E. grep ABCD /var/log/messages.
E. grep ABCD /var/log/messages
Which of the following commands will create an ext2 filesystem on the first primary partition of the third hard drive? (Choose 2.) A. format -ext2 /dev/sdc1 B. mkfs -t e2 /dev/sdc1 C. mkext2fs /dev/sdc1 D. mke2fs -t e2 /dev/sdc1 E. mkfs -t ext2 /dev/sdc1 F. mke2fs /dev/sdc1
E. mkfs -t ext2 /dev/sdc1 F. mke2fs /dev/sdc1
Drag the Upstart runlevels on the left to the correct description on the right. -Single User Mode -Reboot -Halt State -Graphical, Multi-user Mode
Single User Mode: Runlevel 1 Reboot: Runlevel 6 Halt State: Runlevel 0 Graphical, Multi-user Mode: Runlevel 2
You are working on a Debian distribution of Linux.You want to retrieve information about the Debian package database on the system. Without any command options,which command will provide the information you need? _ _ _-_ _ _ _ e
apt-cache
You have a gedit process with a job ID of 6. What command will send the process to the background? (Tip: Enter the command as if at the command prompt.)
bg 6
Which command will search for packages that have been partially installed on the system? (Tip: Enter the command as if at the command prompt.)
dpkg -C
Which dpkg option lists information about a currently installed Debian package? (Tip: Enter the command as if at the command prompt.) _ _ _ _ -_ (hint: package)
dpkg -p
Which command will 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? (Tip: Enter the command as if at the command prompt.) _ _ /_ _ _ _/_ _ _ _ _ _
du /home/badams
Which command should you use to change the quota settings for the gshant user? (Tip: Enter the command as if at the command prompt.)
edquota -u gshant
You need to find all files in the /home/gshant directory that are larger than 300K. You change directories to /home/gshant. What command should you use? (Tip: Enter the command as if at the command prompt.)
find -size +300K
You have been called in to a remote site to troubleshoot a problem with a process that needs to be terminated. You are taken to the workstation having the problem and immediately realize that it is an implementation of Linux you have never worked with before. Which option would you use with the kill utility to see the valid signals available? (Tip: Enter the command as if at the command prompt.)
kill -l
Which command reloads the library cache every time libraries are added or removed, and updates the symbolic links? (Tip:Enter the command as if at the command prompt, but do not include options.)
ldconfig
Which command displays the shared library information for executables? (Tip: Enter the command as if at the command prompt.) _ _ _
ldd
You need to view the contents of the /home/jerrys directory.Which command will show all the contents, including hidden files and directories? (Tip: Only include the necessary command options.)
ls -a /home/jerrys
Which command displays information about all loaded modules on the system? _ s _ _ _
lsmod
Which command displays information on all USB devices connected to the computer?
lsusb
You are using LVM on your Linux system to manage the existing volumes. What command scans for logical volumes on the system? (T p: Type the command as if at the comand_prompt.)
lvscan
Which utility runs at startup to load modules into the kernel? _ _ _ _ _ _ _ _
modprobe
You need to mount the CD-ROM device to the /media/cdrom directory. What command should you use? (Tip: Enter the command as if at the command prompt)
mount /dev/cdrom /media/cdrom
You need to change the formatting of the /home/varstown file as it prints. Specifically, you need to add double-spacing to each line in the file.What command should you use? (Tip: Enter the command as if at the command prompt.)
pr -d /home/varstown
Which command will display the present working directory? (Tip: Enter the command as if at the command prompt.)
pwd
Which command should you use to display the current user's quota limits and disk usage? (Tip: Enter the command as if at the command prompt.)
quota
You need to enable quotas for the file system mounted as the /home directory? (Tip: Assume the aquota.user and aquota.group tiles exist in /home, and enter the command as if at the command prompt.)
quotaon /home
Which command would you use to assign a new priority to a process that has already started? (Tip: Enter the command as if at the command prompt.)
renice
The /home/gshant/smp directory contains several files. The directory and files need to be removed. You change directories to /home/gshant. Which command should you use? (Tip: Enter the command as if at the command prompt.)
rm -r smp
The /home/gshant/smp directory is empty and needs to be removed. You change directories to /home/gshant. Which command should you use? (Tip:Enter the command as if at the command prompt.)
rmdir smp
You are attempting to install an RPM package on your Linux system, but the system tells you that package has dependencies that are not installed. What rpm option will override the need to install the dependencies? (Tip: Enter the command as if at the command prompt.) _ _ _ - -_ _ _ _ _ _
rpm --nodeps
Which command will upgrade an RPM package only if an earlier version is already installed on the system? _ _ _ -_
rpm -F
Which rpm option will perform an MD5 checksum on the myapp5.4.rpm package? (Tip: Type the command as if at the command prompt.) _ _ _ -_ myapp5.4.rpm
rpm -V myapp5.4.rpm
Which command will display all the environment variables on the system?
set
You created a swap area on sda3, but it is not activated. Which command should you use to activate the swap partition? (Tip: Enter the command as if at the command prompt.)
swapon /dev/sda3
Which command reads from standard input and writes to standard output and files?
tee
You need to convert the filesystem of /dev/sdb3 from ext2 to ext3 without affecting the data on the drive. What command and option should you use? (Tip: Enter the command as if at the command prompt.)
tune2fs -j /dev/sdb3
You need to change how the /home/varstown file is displayed. Specifically, you need to replace 4 consecutive spaces with a tab when you print the file to the screen. What command should you use? (Tip: Enter the command as if at the command prompt.)
unexpand -t 4 /home/varstown
Which text stream processing command filters identical, adjacent lines from a single file? _ _ _ _
uniq
After updating the settings in the /etc/default/grub file, you need make sure the changes take effect. What command should you use? (Tip: Type the command as if at the command prompt.)
update-grub
After using the locate command, you discover some of your files are not being listed in the search results. Which command should you use to update the /var/log/locatedb file? (Tip: Enter the command as if at the command prompt.)
updatedb
Which apt-get option upgrades all installed packages to the latest versions in with the information in /etc/apt/sources.list?
upgrade
You are using LVM on your Linux system to manage the existing volumes. After adding and initializing the fourth hard drive to the system and creating a physical volume, you need to addit to the backup volume group. What command should you use? (Tip: Type the command as if at the command prompt.) _ _ _ _ _ _ _ _^ _ _ _ _ _ _ /dev/sdd
vgextend backup /dev/sdd
Which command will print the line count, word count and byte count respectively in the /home/gshant/servepath file? (Tip: Enter the command as if at the command prompt.)
wc -lwc /home/gshant/servepath
While in vi command mode, you need to copy an entire line of text. What command should you use? (Tip: Enter the command as if in command mode.)
yy
Match the correct term on the left with the definition on the right. sysfs hald D-Bus /udev -Allows processes to communicate with each other and notify them of new hotplug devices. Provides all applications with data about current hardware. -Dynamically creates device files in a virtual file system as devices are added and removed. -Exports information about hotplug devices so that other utilities can access the information.
Allows processes to communicate with each other and notify them of new hotplug devices. D-Bus Provides all applications with data about current hardware. hald Dynamically creates device files in a virtual file system as devices are added and removed. /udev Exports information about hotplug devices so that other utilities can access the information. sysfs
You made a few changes to the /grub/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.) A. Type :q! B. Press Esc C. Type :wl D. Type :wq
B. Press Esc D. Type :wq
You have just installed a new program that will be used by all users on the computer.After installation,you log in as a regular user and you try to run the program. The program stops and displays the following error: Error : not running as root What should you do so that all users can run this program? A. Have users run the program using the su -c command. B. Set the SUID on the program. C. Add users to the sudoers file.Tell them to run the program using the sudo command. D. Make all users members of the root group.
B. Set the SUID on the program.
In which boot process stage is the root partition mounted?
B. OS kernel
Which of the following has a process ID (PID) of 1?
B. The initial (init) process
Match the vim mode on the left to the correct definition on the right. Edit mode Command mode Command line mode -The initial 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. -The mode that works with the file system. Use it to save files after editing them. -The mode that vim uses to write and edit text in the file.
-The initial 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. Command mode -The mode that works with the file system. Use it to save files after editing them. Command line mode -The mode that vim uses to write and edit text in the file. Edit mode
A user calls with a concern about the display he is seeing after running the command: ps -ef. There are a number of processes that display getty and he is afraid that an unauthorized user is attached to the system. How should you respond? A. Assure the user that this is normal. B. Check the /etc/passwd file to see if there is a user named getty allowed on the system. C. Immediately terminate all processes associated with getty. D. Check the log files to see what getty has been accessing.
A. Assure the user that this is normal.
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 filesystem on sda2 and fix the errors. What can you do? A. Change to single user mode and run fsck /dev/sda2. B. Run fsck /dev/sda2. C. Change to single user mode and run scandsk /dev/sda2. D. Run chkdsk /dev/sda2. E. Change to single user mode and run fdisk /dev/sda2.
A. Change to single user mode and run fsck /dev/sda2.
What is the purpose of the dpkg -l (lowercase L) command? A. Display all packages with names that match a specified pattern. B. Install a package C. List information about packages that are not installed. D. Show the installed files for a package.
A. Display all packages with names that match a specified pattern.
Which of the following is not a characteristic of hard links?
A. Distinct inode
You have found a patch for the Samba server on your system.The patch is a package in rpm format. Which is the most correct procedure to install the package? A. Download the package. Run rpm -Uvh on the package to install the update. B. Download the package. Run tar -uvf on the package to install the update. Delete the rpm file after the install is complete. C. Download the package. Run rpm -ivh on the package to install the update. D. Download the package. Run inspak -uvhf on the package to install the update. _ _ _ -_ _ _ (update)
A. Download the package. Run rpm -Uvh on the package to install the update.
Which of these Linux filesystems support journaling? (Choose four.) A. Ext4 B. HPFS C. XFS D. VFAT E. Ext3 F. Ext2 G. reiserFS
A. Ext4 C. XFS E. Ext3 G. reiserFS
You are trying to umount /dev/sdd3 but are receiving a device is busy error message. What can you do to try to unmount the file system? (Choose all that apply.) A. Find and close any open files on the file system, and try to unmount again. B. Reboot the system because the file system is locked. C. Make sure your current working directory is not on the file system and try to unmount again. D. Use the fscls command to close any open files on the filesystem.Try to unmount again. E. Edit /etc/fstab and remove the mount. Try unmount again.
A. Find and close any open files on the file system, and try to unmount again. C. Make sure your current working directory is not on the file system and try to unmount again.
You have a system with two installed operating systems. You have already configured the GRUB bootloader to manage which operating system is loaded by default and how long to display the two operating system choices when the system boots up. Now you need to prevent all users (except for you) from making changes to the second operating system in the GRUB menu and restrict users from booting to the second operating system. The users should boot the system using the first listed operating system. What should you do? (Select two.Each answer is a required part of the solution.) A. Insert the lock option into the /boot/grub/grub.conf file for the second operating system. B. Insert the lock option into the /boot/grub/grub.conf file for both operating systems. C. Change the root line in the /boot/grub/grub.conf file for the second operating system. D. Insert the password option into the /boot/grub/grub.conf file before the listed operating systems.
A. Insert the lock option into the /boot/grub/grub.conf file for the second operating system. D. Insert the password option into the /boot/grub/grub.conf file before the listed operating systems.
Which of the following situations is most likely to cause a dependency problem? A. Installing two different packages that both include /usr/lib/graphlib B. Upgrading the kernel from 2.4.6 to 2.4.12 C. Several applications use the library /usr/lib/biglib D. Upgrading the library /usr/lib/biglib from version 1.4 to version 1.6
A. Installing two different packages that both include /usr/lib/graphlib
Which component is responsible for loading and executing the init process?
A. OS kernel
If you are getting your applications and updates in RPM format,which distribution is your system based on? A. Red Hat B. Slackware C. Debian D. Xandros
A. Red Hat
You are assembling a workstation. The system requirements show that this system will be used primarily to store documents of small size. What is the best Linux filesystem to install? A. ReiserFS B. Ext3 C. HPFS D. Ext2
A. ReiserFS
You just installed a new CD-ROM drive in your computer. After boot, you can't find the CD-ROM drive anywhere. Where would be a good place to go to start troubleshooting?
A. Run dmesg
You need to manage a process in the foreground by pressing Ctrl+c on the keyboard.What signal code is sent to the process?
A. SIGINT
Setting the SUID flag is a powerful and useful feature. It can have weaknesses associated with its use.Which of the following statements identifies a weakness? A. Setting the SUID flag for an application or process owned by the root user is a potential security hole. B. Setting the SUID flag is a one-time event that reverts after execution, forcing the root user to reset the flag every time. C. There are no weaknesses to using the SUID flag. D. Only twelve applications or processes may be run at the same time by setting the SUID flag for root user permissions.
A. Setting the SUID flag for an application or process owned by the root user is a potential security hole.
What does the telinit 5 command do?
A. Switches the system runlevel to multi-user graphical mode.
Which command will merge two files based on identical fields of text? A. join B. pr C. od D. paste
A. join
A developer calls with a problem. They were trying to debug a new daemon and mistakenly placed it on the production machine instead of on a lab machine. It has now entered runaway mode. The PID number is 2345 and attempts have been made to remove it with the standard kill command but it will not stop. Which command would you use to be assured that the process will terminate?
A. kill -9 2345
Which of the following statements best describes the *split -50 -d -a 3 AllNames FittyNames-* command if there are 103 lines and 240 bytes in the file? A. The AllNames file is split into three files containing 50 lines or less. The output is FiftyNames-001 ,FittyNames-002 , and FiftyNames-003. B. The AllNames file is split into three files containing 50 lines or less. The output is FittyNames-1 , FittyNames-2, and FiftyNames -3. C. The AllNames file is split into five files containing 50 bytes or less.The output is FittyNames-001, FiftyNames-002 , FiftyNames-003, FiftyNames-004 ,and FiftyNames-005. D. The FiftyNames file is split into five files containing 50 bytes or less. The output is AllNames-001 ,AllNames-002 , AllNames-003 , AllNames-004 , and AllNames-005 .
A. The AllNames file is split into three files containing 50 lines or less. The output is FiftyNames-001 ,FittyNames-002 , and FiftyNames-003.
Which of the following presents the greatest security risk? A. The PATH statement includes . (period). B. There are several disabled user accounts. C. The second field for every user in the /etc/passwd file is x. D. The system has a large file named core.
A. The PATH statement includes . (period).
What will be the effect of the following command? ls -l /usr/bin >> /tmp/list.txt A. The contents of the /usr/bin directory will be redirected into a file called /tmp/list.txt, inserted after previous contents of the file. B. The contents of the /usr/bin directory will be redirected into a file called /tmp/list.txt, overwriting the previous contents of the file. C. The contents of the /usr/bin directory will be appended to the file called /tmp/list.txt and then the contents of /tmp/list.txt will be output to the screen. D. The contents of the /usr/bin directory will be redirected into a file called /tmp/list.txt, inserted before the previous contents of the file.
A. The contents of the /usr/bin directory will be redirected into a file called /tmp/list.txt, inserted after previous contents of the file.
What are two methods to exit vi from command mode? (Select two. Each answer is an independent solution.) A. Type :e! B. Type :wq C. Type yy D. Type ZZ
A. Type :e! D. Type ZZ
After reviewing the running daemons on your system, you notice the atd daemon is not running in the current runlevel. You need to get the atd daemon running. What should you do? (Select two.) A. Use the service atd start command. B. Use the insserv -r atd command. C. Use the daemon atd start command. D. Change to the /etc/rc.d/init.d/ directory and type ./atd start.
A. Use the service atd start command. D. Change to the /etc/rc.d/init.d/ directory and type ./atd start.
Which of the following commands could you use to search man pages for a specific keyword? (Select three.) A. apropos B. whatis C. slocate D. find E. man -k
A. apropos B. whatis E. man -k
You are using awk to print a sorted list of the user names in /etc/passwd. Which command will accomplish the sorted output? A. awk -F: '{print $1}' /etc/passwd | sort B. awk '{print $1}' /etc/passwd | sort C. awk '{print $A}' /etc/passwd | sort D. awk -F: '{print $2}' /etc/passwd | sort
A. awk -F: '{print $1}' /etc/passwd | sort
There is a directory called projects owned by the user cmarcela and the group rd cmarcela has left the company, so you need to give ownership of the projects directory, its files,and subdirectories to the user ebates, who is a member of the mgmt group . Which command should you use to change the user ownership? A. chown -R ebates projects B. chown -R ebates.mgmt projects C. chown ebates projects D. chown .ebates projects E. chgrp -R mgmt projects
A. chown -R ebates projects
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.) A. cp -R /temp /home/gshant B. cp /temp /home/gshant C. cp -s /temp /home/gshant D. cp -r /temp /home/gshant
A. cp -R /temp /home/gshant D. cp -r /temp /home/gshant
Which utility allows you to make an exact copy of a file? A. dd B. tar C. cp D. cpio
A. dd
You are requested to help a user who reports that he has no more local storage space. You go to his system and log in as root user. Which command will display the available disk space on all partitions? (Choose two.) A. df B. du -h C. df -h D. dskuse -free E. du -a F. fdisk -free
A. df C. df -h
You have created a separate 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 there is enough disk space to hold upcoming files. Which command will show you the amount of free space?
A. df /sales
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? A. fdisk /dev/sdb B. fdisk /dev/sda C. fdisk /dev/sd0 D. fdisk /dev/sd1 E. fdisk /dev/sd2
A. fdisk /dev/sdb
You need to find a specific file on your Linux system. Which of the following commands should you use? (Select two. Each answer represents an independent solution.) A. find B. locate C. which D. whereis
A. find B. locate
Which of the following commands finds files with the .txt extension in the /home/gshant directory? A. find /home/gshant -name '**.txt' B. find /home/gshant -name '***txt***' C. find /home/gshant -type d -name '***text***' D. find /home/gshant -type f -name '***text**'
A. find /home/gshant -name '*.txt'
You are working on a Linux distribution that uses systemd. Which file in the /lib/systemd/system/ directory is used to start the services necessary for runlevel 5?
A. graphical.target
You want to perform an audit and make sure that group membership for user dblair is correct. Which command would you use to view the groups that dblair is a member of? A. grep -e dblair /etc/group B. group dblair C. members dblair D. grep -e dblair /etc/passwd
A. grep -e dblair /etc/group
Which command displays all lines within the MTS file that have the word world within them? A. grep world MTS B. sed MTS world C. sed world MTS D. grep MTS world
A. grep world MTS
You are experiencing a problem with a network server. You want to bring the system down and try reseating the cards within it before restarting it. Which command completely shuts down the system in an orderly manner. A. init 0 B. init 1 C. init 5 D. init 6
A. init 0
After using the ls command in the current working directory, you notice the following files: lrwxrwxrwx 1 root root 4 2010-11-05 myfile -> shantsgems -rwxr-xr-x 1 root root 382 2010-10-05 shantsgems What is true about the files? A. myfile is a symbolic link to shantsgems. B myfile is a hard link to shantsgems. C. myfile is a backup file to shantsgems. D. myfile is a piped link to shantsgems.
A. myfile is a symbolic link to shantsgems.
Which of the following commands starts the gedit program with a priority 1 above the default nice priority? A. nice -n -1 gedit B. nice -n -19 gedit C. nice -n -20 gedit D. nice -n 1 gedit
A. nice -n -1 gedit
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? A. o B. p C. i D. a
A. o
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? A. p B. dw C. u D. cc
A. p
You answer a call from a number of users who cannot access the mail server.Which utility would you use to quickly see if the sendmail service is running? A. ps B. ifconfig C. uptime D. netstat
A. ps
Which command displays in the most detail all the processes that are running? A. ps -ef B. ps -e C. ps -A D. ps -a
A. ps -ef
Which command will display the disk usage and quota limits for the development group? A. quota -g development B. quotacheck -g development C. repquota development D. edquota -g development
A. quota -g development
Which of the following utilities should you use if you need to ex1ract a file from an RPM package file? A. rpm2cpio B. rpm -e C. createrepo D. rpm -i
A. rpm2cpio
You want to issue a simple command to replace all the occurrences of the string *too* with the string *bar* in the file *myfile.txt*. You have decided to use sed.Which line will work? A. sed -e 's/foo/bar/g' myfile.txt B. sed -e 'sub/foo/bar/glob' myfile.txt C. sed -e '/foo/bar/g' myfile.txt D. sed -e 's/foo/bar/' myfile.txt
A. sed -e 's/foo/bar/g' myfile.txt
The MTS log file contains thousands of entries, but you are only interested in the most recent entries. Each time entries are added, they are appended to the end of the file. Which utility will be best suited for examining the entries you are interested in? A. tail B. apropos C. locate D. head
A. tail
You have a SCSI tape drive sto. You want to backup the contents of /var/oracle.Which command will perform the backup? A. tar -vcf /dev/st0 /var/oracle B. backup /var/oracle /dev/st0 C. tar -vcf /var/oracle /dev/st0 D. cp /var/oracle /dev/st0
A. tar -vcf /dev/st0 /var/oracle
Which command would you use to look for a potential resource hog on a workstation? A. top B. renice C. free D. uptime
A. top
Partition /dev/sdb2 is mounted to /mnt/temp. You need to unmount /dev/sdb2. Which commands would you use? (Choose two.) A. umount /mnt/temp B. unmount /dev/sdb2 C. dismount /dev/sdb2 D. umount /dev/sdb2 E. dismount /mnt/temp
A. umount /mnt/temp D. umount /dev/sdb2
You need to remove an RPM package from your system. Which of the following commands could you use? (Select two.) A. yum remove B. yum search C. yum provides D. yum erase
A. yum remove D. yum erase
You have a dual-boot machine with two different Linux operating systems. Before you boot into one of the operating systems,you need to insert kernel boot options. The GRUB menu is displayed on your screen and waiting for your interaction. What should you do? (Select two. Each answer is an independent solution.) A. 1. Select the operating system. 2. Press the c key. 3. Add the kernel boot options to the existing boot options. B. 1. Select the operating system. 2. Press the e key. 3. Select the kernel line. 4. Press the e key. 5. Add the kernel boot options to the existing boot options. C. 1. Select the operating system. 2. Press the p key. 3. Press the a key. 4. Add the kernel boot options to the existing boot options. D. 1. Select the operating system. 2. Press the a key. 3. Add the kernel boot options to the existing boot options.
B. 1. Select the operating system. 2. Press the e key. 3. Select the kernel line. 4. Press the e key. 5. Add the kernel boot options to the existing boot options. D. 1. Select the operating system. 2. Press the a key. 3. Add the kernel boot options to the existing boot options.
Which signal is the default sent to processes by the kill utility? A. -1 B. -15 C. -9 D. -2
B. -15
Which dpkg option completely removes a package and its configuration files? A. -R B. -P C. -r D. --configure
B. -P
You are compressing a file with the tar utility, but you need to ensure you can uncompress the file with the bzip2 utility. Which tar option should you use during the file compression? A. -z B. -j C. -x D. -v not z
B. -j
You have an application whose group is sys but you want all users, whether or not they are members of the sysadmin group, to execute the application with sysadmin group permissions. Which of the following examples shows correct usage of the SGID flag? A. -rwxr--r-s 3 root sysadmin 73748 Nov 2 2005 /usr/bin/applicationx B. -rwxr-sr-- 3 root sysadmin 73748 Nov 2 2005 /usr/bin/applicationx C. -rwxr-sr-s 3 root sysadmin 73748 Nov 2 2005 /usr/bin/applicationx D. -rwsr--r-- 3 root sysadmin 73748 Nov 2 2005 /usr/bin/applicationx
B. -rwxr-sr-- 3 root sysadmin 73748 Nov 2 2005 /usr/bin/applicationx
Which of the following represent the root directory? A. /boot B. / C. /home/root D. /root
B. /
You have GRUB installed on your workstation. You need to make some permanent changes to the boot loader. What file would you edit? (Select two.) A. /boot/grub.conf B. /boot/grub/grub.conf C. /boot/grub/menu.1st D. /etc/lilo.conf E. /boot/boot.conf
B. /boot/grub/grub.conf C. /boot/grub/menu.1st
You want to mount a number of filesystems each time the system is brought up. Which configuration file should hold the configuration information for the filesystems to be mounted? A. /etc/profile B. /etc/fstab C. /etc/inittab D. /etc/mount
B. /etc/fstab
Which of these configuration files define the default runlevel of your system?
B. /etc/inittab
Which directories typically hold the dynamic libraries on your system? (Select two.) A. /lib/ld.so/ B. /usr/local/lib/ C. /etc/ld.so.conf/ D. /usr/lib/
B. /usr/local/lib/ D. /usr/lib/
Which file would you check to see system startup error messages? (Select two.) A. /var/log/secure B. /var/log/boot.msg C. /var/log/boot.log D. /var/log/wtmp
B. /var/log/boot.msg C. /var/log/boot.log
An EIDE computer has devices on the primary and secondary IDE channels. Which of the following IRQs are most likely being used?
B. 14 and 15
You have a Linux system with 512 MB of RAM installed. How much space should you plan to partition for the swap file? A. 2048 MB B. 512 MB C. 256 MB D. 1048 MB
B. 512 MB
You have opened the /root/myscript file in vi. While looking at the file, your soda spilled, and you hit several keys on the keyboard trying to pickit back up. There are extra characters everywhere in the file, and you know you can't fix it. How do you exit vi without saving the changes? A. :wq B. :q! C.:q D. :x
B. :q!
Which of the following statements best describes the function of the repquota /home -vu command? A. The aquota.user and aquota.group files in /home are created. B. A summary of disc usage and quotas is displayed for those users who have files within /home. C. The /home quota file is opened in vi for editing. D. The current user's quota limits and usage for /home are displayed.
B. A summary of disc usage and quotas is displayed for those users who have files within /home.
What information is displayed by dmesg? (Choose the most correct answer.) A. BIOS memory mapping B. All kernel hardware information C. Memory allocation D. Hardware networking information E. Only filesystem information
B. All kernel hardware information
During the Linux installation process you are asked to choose the filesystem type for your partitions. Which is the most common Linux filesystem to choose?
B. Ext3
Which of the following commands will configure the shell to retain 300 recently-used commands in the ~/.bash_history file for multiple shell sessions? A. HISTFILE=300 B. HISTFILESIZE=300 C. BASH=300 D. HISTSIZE=300
B. HISTFILESIZE=300
Which of the following statements best describe the purpose of the Filesystem Hierarchy Standard (FHS)? (Select two.) A. During installation,software can determine the permissions of specific directories. B. Individual users can predict where to find system configuration files. C. As users create files, they are forced to place the files in specific directories. D. During installation, software can predict where to place configuration files.
B. Individual users can predict where to find system configuration files. D. During installation, software can predict where to place configuration files.
What is the purpose of the messages log file in /var/log/messages and what type of information does it hold? A. It holds copies of the messages sent with the send command. B. It is the system message log file and it holds kernel messages and messages from applications. C. It is the log file for root user messages and it holds messages from other users. D. It is the log file for e-mail and it holds messages from the e-mail system.
B. It is the system message log file and it holds kernel messages and messages from applications.
Which of the following is not true regarding mount points?
B. Mount points use the partitions represented by device files located in the /lib directory.
While reading about file system permissions in Linux you discover that the default permissions assigned to new files when they are created are rw-rw-rw- (666 octal) and new directories are rwxrwxrwx (777 octal). However, when you create a new file in a directory called /data the permissions assigned are rw-r--r--. Why is this? A. There are more restrictive permissions assigned to the /data directory and any new files created inside that directory will inherit the more restrictive permissions. B. The umask must be set to 0022 and therefore block the write permission for the group owner and everyone else. C. Because you are logged in as a normal user and not the root user all files that you create will be created with a more restrictive set of permissions. D. You are logged in as the root user and all files created by the root user are assigned these permissions. Only normal users get rwxrwxrwx (777 octal) permissions on newly created files.
B. The umask must be set to 0022 and therefore block the write permission for the group owner and everyone else.
Which statement is correct on how to differentiate core processes from other services? (Select two.) A. They have the higher pid numbers, always above 100. B. They have the lowest pid numbers,always below 100. C. In Linux all processes have the same permissions and there are no core processes. D. When you run top,the processes with the most cpu time are core processes. E. If you run ps -aux, the core processes are at the top of the listing.
B. They have the lowest pid numbers,always below 100. E. If you run ps -aux, the core processes are at the top of the listing.
How many logical partitions can you create on an extended partition? A. 4 B. Unlimited C. 1 D. 2
B. Unlimited
Which of the following methods should you use to configure dynamic libraries on a Linux system? (Select two.) _ _-_ _ _ _ _ _ _-_ _ _ _ & Modify /_ _ _/_ _._ _._ _ _ _
B. Use the LO_LIBRARY_PATH environment variable to specify additional directories to search for library files. C. Modify /etc/ld.so.cont to add the path of the libraries.
Which of the following is not a characteristic of symbolic links? A. Lower-case L (l) as the first character in the permission string. B. Valid inode for the file data even if the original file is deleted. C. Work across volumes and file systems. D. Distinct inode.
B. Valid inode for the file data even if the original file is deleted.
Which of the following statements correctly describe the differences between the apt-get remove and apt-get --purge commands? (Select two.) A. apt-get remove leaves the package installed, but removes the configuration files. B. apt-get remove removes a specified package,but leaves the configuration files. C. apt-get --purge removes the package and the configuration files. D. apt-get --purge removes a specified package, but leaves the configuration files.
B. apt-get remove removes a specified package,but leaves the configuration files. C. apt-get --purge removes the package and the configuration files.
Which of the following commands combines three files into a single text stream? A. nl B. cat C. pr D. cut
B. cat
Which of the following commands will display which boot options were given to the kernel at boot time? A. cat /proc/version B. cat /proc/cmdline C. cat /proc/mounts D. cat /proc/modules
B. cat /proc/cmdline
Which of the following commands sorts the contents of wordlist1 and wordlist2 and sends the result to standard output? A. cat /usr/wordlist1 >> /usr/wordlist2 | tee B. cat /usr/wordlist1 /usr/wordlist2 | sort C. cat /usr/wordlist1 | /usr/wordlist2 | sort D. cat /usr/wordlist1 > /usr/wordlist2 | sort
B. cat /usr/wordlist1 /usr/wordlist2 | sort
Which of the following commands displays the contents of wordlist1 and wordlist2 then sorts the combined contents, then sends the results to the monitor and a file named sortedwordlist? A. cat /usr/wordlist1 >> /usr/wordlist2 | sort sortedwordlist B. cat /usr/wordlist1 /usr/wordlist2 | sort | tee sortedwordlist C. cat /usr/wordlist1 /usr/wordlist2 | tee sortedwordlist D. cat /usr/wordlist1 /usr/wordlist2 | sort sortedwordlist
B. cat /usr/wordlist1 /usr/wordlist2 | sort | tee sortedwordlist
Which of the following commands will give the same results as cat < turbo? A. cat 1&2> turbo B. cat turbo C. cat 1> turbo D. cat 2> turbo
B. cat turbo
Which command would you use to add the ldap service to runlevels 3 and 4? A. init -l +34 ldap B. chkconfig --level 34 ldap on C. chkconfig --on 34 ldap D. init -l 34 ldap on
B. chkconfig --level 34 ldap on
You need to set the SUID permission on a file named rider. Which of the following commands will accomplish this? A. chmod rider 1777 B. chmod 4777 rider C. chmod 2777 rider D. chmod 1777 rider
B. chmod 4777 rider
Which of the following commands make sales the group owner of the /sales/report file? (Select two. Each answer is an independent solution.) A. chgroup sales /sales/report B. chown .sales /sales/report C. chown :sales /sales/report D. chmod .sales /sales/report
B. chown .sales /sales/report C. chown :sales /sales/report
You need to obtain specific information found in the columns of ~/smarts. Which of following commands should you use? A. expand ~/smarts B. cut -f ~/smarts C. fmt ~/smarts D. join -s ~/smarts
B. cut -f ~/smarts
You are trying to troubleshoot intermittent errors that are occuring while continuing to work on other projects. Which command displays system messages, but only the ones that are panic messages? A. dmesg B. dmesg -n 1 C. mesg y D. mesg
B. dmesg -n 1
Which command shows the value of the environmental variable currently set for the terminal? A. echo %TERM% B. echo $TERM C. echo %TERM D. echo TERM
B. echo $TERM
You want to view partition information for your sda device. Which commands could you use to view the partitions defined on sda? (Select two.) A. cat /proc/part B. fdisk /dev/sda, then press p C. cat /etc/part D. fdisk -l
B. fdisk /dev/sda, then press p D. fdisk -l
Which of the following commands is the fastest method to search a file for fixed strings, rather than regular expressions? A. grep -F B. fgrep C. grep -w D. egrep f
B. fgrep
Which command displays information about the RAID devices on the computer?
B. hwinfo --listmd
You just got a new input device, named GamePad, that you want to use on your computer. You don't think that the GamePad driver (i.e., kernel module) was compiled into the kernel of your Linux distribution. Which of the following commands will install the driver (gamepad.ko) into the kernel? (Select two.)
B. modprobe gamepad D. insmod gamepad.ko
You are trying to debug a shell script called myscript and to aid you in this task you would like to have the output of the script be recorded in a text file. Which of the following commands would satisfy your requirements? A. echo myscript >> testfile.txt B. myscript >>testfile.txt C. myscript | testfile.txt D. myscript | echo | testfile.txt
B. myscript >>testfile.txt
You are preparing to use a logical volume with LVM. Which of the following commands initializes a physical volume? A. pvscan B. pvcreate C. lvcreate D. vgcreate
B. pvcreate
Which set of permissions represent the minimal permissions required to allow a user to list the contents of a directory? A. rw- B. r-x C. r-- D. rwx
B. r-x
You need to install the package apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm. Which commands will perform the installation? (Choose two.) rpm -_ _ apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm rpm -_ _ apt-0.5.15cnc6-1.1.fc2.fr.i386.rpm
B. rpm -ih apt-0.5.15cnc6-1.1.fc2.fr.i386 C. rpm -Uh apt-0.5.15cnc6-1.1.fc2.fr.i386
Which command will query the system for all installed RPM packages? A. rpm -nodeps B. rpm -qa C. rpm -U D. rpm -ihv
B. rpm -qa
You have informed users that you need to bring the machine down at the end of the day to perform routine maintenance. However, prior to shutting the system down, you want to send a message to users and give them fifteen minutes to save data and exit the system. Which of the following commands should you use? A. halt It is time for a shutdown! B. shutdown -h +15 It is time for a shutdown! C. init 0 It is time for a shutdown! D. shutdown -r +15 It is time for a shutdown!
B. shutdown -h +15 It is time for a shutdown!
Which command will display each line in a text file based on the alphabetic characters? A. tr B. sort C. split D. uniq
B. sort
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? A. swapoff sda3 B. swapoff /dev/sda3 C. fdisk d /dev/sda3 D. swapoff -a
B. swapoff /dev/sda3
You are working on a Linux distribution which uses systemd. Which command should you use to manage the services and runlevels? A. initctl B. systemctl C. telinit D. insserv
B. systemctl
You are troubleshooting a problem with your e-mail server. You want to monitor the messages from your mail server as you send test messages to it. Which command will work best? A. head -n5 /var/log/maillog B. tail -n5 -f /var/log/maillog C. tail -n5 /var/log/maillog D. display /var/log/maillog
B. tail -n5 -f /var/log/maillog
Restore a file, yearend.xls, from the archive 013004.tar.gz in the backup directory. SO RESTORE FROM: /backup/013004.tar.gz The file needs to be restored to /home/accounting. RESTORE TO: /home/accounting/yearend.xls Which command will perform the restore? tar -_ _ _ _ /backup/013004.tar.gz /home/accounting/yearend.xls
B. tar -xzvf /backup/013004.tar.gz /home/accounting/yearend.xls
You need to see a listing of running processes and system status such as memory and CPU usage. Which command will produce the listing? A. systat -al B. top C. ps -A D. cpustat -a
B. top
Which command transposes characters in a text steam? A. sort B. tr C. pr D. nl
B. tr
You need to create a new text file with the name network.txt in the current directory. Which command starts vi and creates the file? A. vi :w network.txt B. vi network.txt C. vi -n network.txt D. vi -new network.txt
B. vi network.txt
Which single command should you use to find the path and manual pages for the mycustomapp program?
B. whereis mycustomapp
You have an xfs file system in your Linux computer. 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.) A. mkfs.xfs B. xfs_growfs -n C. xts_info D. xfs_metadump
B. xfs_growfs -n C. xts_info
You are looking for specific five-character string in the ~/customquote file with the grep command. The string should begin with the letter g, end with an y, and be the last string on the line. Which regular expression should you use with grep? A. "g..$.y" B. "g..y.$" C. "g...y$" D. "&g...y"
C. "g...y$"
Which repquota option will give quota limits and disk usage for all file systems listed in /etc/mtab? A. -n B. -v C. -a D. -u hint: all
C. -a
Which directory contains the configuration file for GRUB? A. /usr B. /root C. /boot D. /proc
C. /boot
Which of the following commands will help you to determine which version of GRUB is installed on your Linux system? (Select all that apply.) A. grub1.98-install -v B. update-grub C. grub2-install -v D. grub-install -v
C. grub2-install -v D. grub-install -v
You need to configure your 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? A. /dev/cdrom /media/cdrom -t iso9660 ro,users,noauto B. /dev/cdrom /media/cdrom -t iso9660 ro C. /dev/cdrom /media/cdrom -t iso9660 ro,nouser,noauto D. /dev/cdrom /media/cdrom -t iso9660 ro,user,noauto
C. /dev/cdrom /media/cdrom -t iso9660 ro,nouser,noauto
You have added several new hard disks to your system. After partitioning and formatting you have modified a configuration file to mount these new filesystems automatically. You want to document the change you made. What file would you document? A. /etc/ modules.cont B. /etc/inittab C. /etc/fstab D. /etc/crontab
C. /etc/fstab
You are experiencing a problem with one particular server. Each time it boots, it goes into single user mode even though no warnings or errors are reported. You want to verify that it is configured to boot to runlevel 3, just as all your other servers are. Which file would you check to find the default runlevel setting? A. /etc/shadow B. /etc/profile C. /etc/inittab D. /etc/rc.d
C. /etc/inittab
Under the Filesystem Hierarchy Standard (FHS), which directory contains information about the system state and processes? A. /tmp B. /bin C. /proc D. /root
C. /proc
Which directory is the home directory for the root user account? A. /home/root B. / C. /root D. /home
C. /root
The entry 3:2345:respawn:/sbin/mingetty tty3 exists in the /etc/inittab file for virtual terminal number 3. At what runlevels is this virtual terminal available for access?
C. 2 through 5
What is the recommended size for the /var directory partition? A. 5 GB B. 100-200 MB C. 3 GB D. 1 GB
C. 3 GB
How many primary partitions can you create on a single hard disk drive? A. 2 B. 8 C. 4 D. Unlimited
C. 4
Which of the following would be the result of the command ln -b ~/file1 /data/file1? A. The ln command would test to see if the source file was a binary file or text file before creating the link. B. A link called /data/file1 would be created and would always be treated by the operating system as a binary file despite the type of file it points to. C. A copy of the file ~/file1 would be placed in /data. D. The -b option would only work if the file being linked to is a binary file not a text file.
C. A copy of the file ~/file1 would be placed in /data.
You have a dual-boot system with a Linux and Windows operating systems.You need to configure the GRUB bootloader to display the GRUB menu for 12 seconds before GRUB automatically boots the default operating system. What should you do? A. Add timeout=120 to the /boot/grub/grub.conf file. B. Add chainloader +12 to the /boot/grub/grub.conf file. C. Add timeout=12 to the /boot/grub/grub.conf file. D. Add timeout=12 and hiddenmenu to the /boot/grub/grub.conf file.
C. Add timeout=12 to the /boot/grub/grub.conf file.
Which system component verifies the hardware and passes control of the computer to the boot loader? A. CMOS B. init C. BIOS D. OS kernel
C. BIOS
Which of the following options is the standard shell for most Linux computers? A. Korn B. Bourne shell C. Bourne-again shell (bash) D. tcsh E. C-shell
C. Bourne-again shell (bash)
You are editing the /boot/grub/grub.cont file as shown below. default=O timeout=S splashimage=(hd0 ,0)/grub/splash .xpm .gz #hiddenmenu title fedora (2.6.33.3-85 .fc13.i686) root (hd0 ,0) kernel /vmlinuz-2 .6.33 .3-85.fc13 .i686 ro root=/dev/mapper/vg vm-lv root rd LVM LV=vg vm/ v root rd_LVM_LV=vg_vm/lv_swap rd_NO_LUKS rd_NO_MD rd NO OM LANG=en-US.UTF-8 SYSFONT=latarcyrheb sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet initrd /initramfs-2.6.33 .3-85.fcl3 .i686.img title Red Hat Linux (2.6.18-19 .8.0.19) root (hd0 ,1) kernel /boot/bzlmage .2.6.18-19 .8.0.19mar2009 ro root=/dev/mapper/vg vm-lv root rd_LVM_LV=vg_vm/lv_root rd_LVM_LV=vg_vm/lv_swap rd_NO_LUKS rd_NO_MD rd NO DM LANG=en US .UTF-8 SYSFONT=latarcyrheb -sunl6 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet initrd /boot/initrd-2 .6.18-19.8.0custom .img .19mar09 You want GRUB to load the second operating system installed on the system as the default when the system boots. What should you do? A. Change the timeout line to read timeout=2 . B. Change the #hiddenmenu line to read hiddenmenu . C. Change the default line to read default=l. D. Leave the configuration file alone,as it will already select the correct operating system.
C. Change the default line to read default=1.
What is the effect of the tune2fs -j /dev/sdb1 command? A. Changes how many times the /dev/sdb1 device is mounted before running fsck. B. Remounts the /dev/sdb1 device as read-only. C. Converts the /dev/sdb1 device to ext3. D. Displays the superblock on the /dev/sdb1 device.
C. Converts the /dev/sdb1 device to ext3.
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? A. Run the mount --auto command and identify the swap area partition. B. Remount the swap area. Then run export mount to make the change persistent. C. Edit /etc/fstab and add the swap partition. D. Edit /etc/mtab and add the swap partition. E. Edit /etc/inittab and add the swap area.
C. Edit /etc/fstab and add the swap partition.
You are installing a boot loader on a system that will boot both Linux and Windows. You are going to use the GRUB boot loader for Linux. Where is the best location for GRUB? Pick the most correct answer. A. GRUB should be installed on a floppy disk. B. You can't use GRUB in a Windows/Linux environment. C. GRUB should be installed on the boot sector of the Linux partition. D. GRUB should be installed on the MBA of the first fixed disk.
C. GRUB should be installed on the boot sector of the Linux partition.
What is the result of the apt-get -d command? A. Package installation is simulated without an actual installation. B. All installed packages are upgraded to the latest versions in with the information in /etc/apt/sources.list. C. Packages are downloaded to the system, but not installed. D. The package database is checked for consistency and errors.
C. Packages are downloaded to the system, but not installed.
Which daemon is responsible for bringing up other services as runlevels are changed?
C. init
Which of the following commands reloads the libraries for the /bin/bash executable, but does not update the cache? A. ldd /bin/bash B. ldd -v /bin/bash C. ldconfig -N /bin/bash D. ldconfig -X /bin/bash
C. ldconfig -N /bin/bash
What is the purpose of the find command? A. Display the path to a command and determine whether a package is installed. B. Search an index file for specific parameters. C. Search for files in the file system based on name, tile size, time created, and other options. D. Display the path to the binary files,the manual pages, and the source code.
C. Search for files in the file system based on name, tile size, time created, and other options.
What will be displayed when you type the echo $$ command? A. The current SHELL environment variable. B. The process ID (PID) of the bash shell. C. The parent process ID (PPID) of the bash shell. D. The path for the echo command.
C. The parent process ID (PPID) of the bash shell.
You need to create a large number of files and would like to ensure that you, the user owner, are the only one that has read and write permissions to the files. The files will be located in a number of different directories that already contain files that you don't want their permissions modified. How could you create these files with the correct permissions using the least amount of effort? A. Make a list of all the files you created and run umask 0066 on each of them to change their permissions. B. Run chmod -R 600 on all of the directories in which you created the new files. C. Type umask 0066 to change your umask. D. Type umask 6600 to change your umask.
C. Type umask 0066 to change your umask.
You suspect some corruption of files in the /bin directory. What is the most proper course to determine if any of the files in /bin are corrupt? A. Check the /var/log files for any indication of unexpected accesses to the files in /bin. B. Acquire another copy of the suspect files and run a diff on them. C. Use an integrity checking program to check the files in /bin. D. Make a secondary install of your distribution, patch it to the same level and then compare file sizes and dates.
C. Use an integrity checking program to check the files in /bin.
Which of the statements describe file globbing? A. Determining the category of the file or command. B. Displaying which commands use specific files. C. Using wildcards to match specific files. D. Indexing files for the locate command.
C. Using wildcards to match specific files.
What is the purpose of the rpm -V command? A. Test an RPM package for uninstalled dependencies without actually installing it. B. Check the authenticity of the RPM package. C. Verify that an RPM package is free from errors. D. Update an installed RPM package to the newest version.
C. Verify that an RPM package is free from errors.
Which of the following statements are true regarding the apt-get utility? (Select two.) A. apt-get installs packages on an RPM distribution. B. apt-get uses /var/lib/rpm to find information about the application repositories. C. apt-get is similar to the yum utility on an RPM distribution. D. apt-get uses /etc/apt/sources.list to find information about the application repositories.
C. apt-get is similar to the yum utility on an RPM distribution. D. apt-get uses /etc/apt/sources.list to find information about the application repositories.
Which of the following commands redirects standard output to standard error? A. cat txtfile | 2 B. cat txtfile 2>&1 C. cat txtfile 1>&2 D. cat txtfile | tee 2
C. cat txtfile 1>&2
You are the team lead for a marketing project. Only the members of the team3 group should have read/write permissions to a document called project_data.doc however you want to ensure that no one on the team will delete the document by accident. Your user name is bsmith. A long listing of the file is as follows : -rwxr-xr-x 1 bsmith team3 7260 June 22 2004 project_data .doc Which of the following commands would accomplish this? A. chmod 744 project_data .doc B. chown :bsmith project_data.doc C. chmod 1664 project_data.doc D. chgrp bsmith project_data.doc
C. chmod 1664 project_data.doc
A file named acctg needs to have the SGID permission set on it while keeping all other permissions at their present value. Which of the following commands will accomplish this?
C. chmod g+s acctg
Which of the following commands will cut an entire line from a file while in vi command line mode? A. yy B. C C. dd D. de
C. dd
Which command reconfigures an already installed package? A. dpkg --configure B. apt-get -f C. dpkg-reconfigure D. apt-get -clean
C. dpkg-reconfigure
You want to view the number of commands your HISTSIZE environment variable is set to save. You don't want to have to scroll through all the environment variables. Which command shows you the value for the HISTSIZE variable? A. cat $HISTSIZE B. HISTSIZE= C. echo $HISTSIZE D. cat /etc/profile | grep "HISTSIZE"
C. echo $HISTSIZE
Which of the following commands will open the quota file for a specific user? A. quota -u B. quotaon -u C. edquota -u D. repquota -u
C. edquota -u
Which of the following files will be displayed when using the egrep exhibit[0-9]+ ~/samps command? (Select two.) A. exhibita45 B. exhibit1a12 C. exhibit1 D. exhibit125
C. exhibit1 D. exhibit125
Which of the following commands would you use to find all of the files on the system that have either blue or gold in their names? A. find ..-print0 '**blue***' -o '***gold***' B. find .-name '***blue***' -o -name '***gold***' C. find / -name '***blue***' -o -name '***gold***' D. find ..-name '***blue***' -o '***gold**'
C. find / -name '**blue***' -o -name '***gold**'
You are accessing the /home/shants/depsmark text file through a terminal connection. The file has long lines of text, yet your terminal only shows 75 characters per line.What command should you use to limit the lines in the file to your limits on the terminal? A. cut -w 75 /home/shants/depsmark B. nl -w 75 /home/shants/depsma rk C. fmt /home/shants/depsmark D. pr -w 75 /home/shants/depsmark
C. fmt /home/shants/depsmark
You need to quickly see all of the lines in the blue_and_gold text file that do not reference Karen. Which command would you use to accomplish this? A. grep -n blue_and _gold Karen B. grep -n Karen blue_and_gold C. grep -v Karen blue_and_gold D. grep -v blue_and_gold Karen
C. grep -v Karen blue_and_gold
You recently installed a third hard drive in your system. You need to install GRUB on the hard drive. Which command should you use? A. grub-install--root-directory=/boot sdO B. grub-install --root-directory=/boot sd1 C. grub-install --root-directory=/boot sd2 D. grub-install--root-directory=/boot sd3
C. grub-install --root-directory=/boot sd2
You have just finished installing an updated kernel on your e-mail server that has been patched to solve a security vulnerability and wish to reboot as soon as possible. This is a busy time of day and you do not want the server down any longer than necessary. Which option prevents fsck from running after the reboot and allows the system to boot faster? A. shutdown -F B. shutdown -h C. shutdown -f D. shutdown -k
C. shutdown -f
You need to backup Jane's files in her /home/user/jane directory. Which command will create an archive in the /root directory? (Select two.) A. tar -cbvf /root/jane.tbz /home/user/jane B. tar -cgvf /root/jane/tgz /home/user/jane C. tar -czvf /root/jane.tgz /home/user/jane D. tar -cvf /root/jane.tar /home/user/jane E. tar -cjvf jane.tbz /home/user/jane tgz and tar
C. tar -czvf /root/jane.tgz /home/user/jane D. tar -cvf /root/jane.tar /home/user/jane
You have a tape archive mounted in /dev/rmt12. You need to get a list of the file contents.Which command will list the contents? A. ls -lc /dev/rmt12 B. tar -tc /dev/rmt12 C. tar -tf /dev/rmt12 D. ls -la /dev/rmt12 hint "files"
C. tar -tf /dev/rmt12
You need to determine the priority of several processes. Which command should you enter to identify the process ID and nice value for each process? A. renice B. nice C. top D. jobs
C. top
Which of the following utilities displays the category of a command? A. which B. whereis C. type D. find
C. type
A user calls the help desk. Each time he creates a new text file, permissions of 640 are applied to the file and he must use chmod to set them to 644. What command should you enter in the user's profile to set the default permission for newly created files to 644? A. umask 640 B. umask -640 C. umask 0022 D. umask 0027
C. umask 0022
You have installed a package called mathpac with yum. After a system upgrade, the package is not working correctly. Which command should you try first to get the package to work? A. yum remove mathpac and then yum install mathpac B. rpm -U mathpac C. yum update mathpac D. yum upgrade mathpac
C. yum update mathpac
Your ext3 filesystem has experienced a significant amount of corruption. To examine the filesystem, you want to use the debugfs utility. Which debugfs option should you use to examine the filesystem? A. -f B. -V C. -w D. -c
D. -c
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? A. -f B. -b C. -n D. -p
D. -p
You have a critical file called yearend.xls. You want to set file permissions so that only the owner of the file can modify it and only group owners can read it. Which permission listed below will accomplish that? A. -rwxrwxr-- 1 george acctg 26256 June 1 04 :16 yearend .xls B. -r--r--r-- 1 george acctg 26256 June 1 04 :16 yearend.xls C. -r-xr-x--- 1 george acctg 26256 June 1 04 :16 yearend .xls D. -rw-r----- 1 george acctg 26256 June 1 04 :16 yearend .xls
D. -rw-r----- 1 george acctg 26256 June 1 04 :16 yearend .xls
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? A. /var B. /bin C. /home D. /boot
D. /boot
You are preparing to mount a device local to your system.Which directory holds the device files? A. /local/dev B. /devices C. /opt/dev D. /dev
D. /dev
You are looking for a more orderly way of stopping processes besides running the kill utility. Another administrator tells you that scripts exist to stop most processes in an orderly fashion. Where should you look for such scripts on your system? A. /proc B. /etc/rc.d/init C. /tmp D. /etc/init.d
D. /etc/init.d
Which file shows the currently mounted volumes? A. /etc/mount B. /etc/fstab C. /etc/ mount.conf D. /etc/mtab
D. /etc/mtab
Which of the following sets of octal permissions would allow everyone to execute the following file as if they were the root user? -rwxr-xr-x 1 root root 8045 July 24 2004 myscript A. 1655 B. 0755 C. 4744 D. 4755
D. 4755
You are called into the office of a newly hired manager. He has copied a file from his old place of work onto his new workstation, but is now receiving an error message that access is denied each time he tries to access the file. He is not the owner of the file, and not a member of the group the file is associated with. Which of the following represents the least set of file permissions needed for him to be able to read and write to the file? A. 111 B. 222 C. 444 D. 666
D. 666
Which daemon allows processes to communicate which each other and relay information about hotplug devices? A. udev B. sysfs C. hald D. D-Bus
D. D-Bus
You have compiled a new kernel. When you reboot, the new kernel is not shown on the boot menu.You use the GRUB boot loader. What might you need to do to fix the problem? A. Switch to the LILO boot loader. B. Reinstall the GRUB boot loader. C. Recompile the kernel. D. Edit the grub.conf file to add the new kernel.
D. Edit the grub.conf file to add the new kernel.
You have a Linux system that is configured to run in graphical multi-user mode by default. Before the system is started in the graphical multi-user mode, you need to perform some administrative tasks on the system. You need to boot the system to single-user mode. What should you do?
D. Provide a kernel boot option of 1.
What is the purpose of the dpkg --configure command? A. Ignore dependency-checking for specified packages. B. Uninstall the package including the configuration files. C. Install a package if the same version is not already installed. D. Reconfigure an unpacked package.
D. Reconfigure an unpacked package.
You have previously installed package 'mplayer' and wish to remove it from your computer. Which of these methods is the best? A. Locate the files for mplayer and delete them. B. Run the command erase -r mplayer. C. Run the command tar -e mplayer. D. Run the command rpm -e mplayer-1.0-0.1O.pre4.1.fc2.fr.i386 to uninstall mplayer.
D. Run the command rpm -e mplayer-1.0-0.1O.pre4.1.fc2.fr.i386 to uninstall mplayer.
Which of the following special permissions will prevent a file's deletion by anyone except the file owner? A. Umask B. SUID C. SGID D. Sticky bit
D. Sticky bit
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?
D. The secondary boot loader.
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 has just deleted those files.What happens to the links that you created? A. The files would not be deleted because you created duplicate entries in the file system when you created the links. B. You would still be able to access the files until the system is rebooted even though they are deleted because the links keep a cached copy of the files in memory. C. The links in your home directory would disappear because the files that they were linked to are now gone. D. The symbolic links would still exist in your home directory but they would now be broken.
D. The symbolic links would still exist in your home directory but they would now be broken.
You need the Yellowdog Updater Modified (YUM) utility to check specific URLs for RPM repositories. Where should you add the URLs? /_ _ _/_ _ _._ _ _ _
D. Within the /etc/yum.conf file.
You have put a new hard disk in your system and created two primary partitions (sdb1 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?
D. You cannot format an extended partition.
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? A. apt-get update mathpac B. apt-get dist-upgrade mathpac C. rpm -U mathpac D. apt-get upgrade mathpac
D. apt-get upgrade mathpac
Which of the following Debian package management utilities provides the front-end for APT? A. dpkg B. apt-cache C. apt-get D. aptitude
D. aptitude
You need to get detailed information about the system memory. Which command will display that information?
D. cat /proc/meminfo
You must change ownership of a script called myscript so that only the user owner has read/write access to it and only the user owner and group owner have execute permissions. Which of the following commands would accomplish this? A. chmod 771 myscript B. chmod 755 myscript C. chmod 611 myscript D. chmod 750 myscript
D. chmod 750 myscript
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 your home directory. A. cp /mnt/scd0/letter.doc home: B. cp /mnt/scd1/letter.doc /root C. cp /mnt/cd1:letter.doc /root D. cp /mnt/scd0/letter.doc /root
D. cp /mnt/scd0/letter.doc /root
You want to restore files with the extension .cfg from an archive called configs.cpio. Which command will perform the restore? A. cpio -ivd "cfg" < /mnt/hdd2/configs. cpio B. cpio -ivd /mnt/hdd2/configs.cpio < "**.cfg" C. cpio -ivd ".cfg" < /mnt/hdd2/configs.cpio D. cpio -ivd "**.cfg" < /mnt/hdd2/configs.cpio
D. cpio -ivd "*.cfg" < /mnt/hdd2/configs.cpio
A user is trying to access a file system mounted at /mnt/sdb1 but receives an error No such file or directory. Which commands can you use to see the current mount points? (Choose two.) A. mounts B. mntfs C. fsck D. df E. mount F. mntchk
D. df E. mount
Which command allows you to use an alternative superblock when the primary superblock has been corrupted? A. fsck /dev/sd1 B. mke2fs -n /dev/sda1 C. mkfs -t ext2 /dev/sda1 D. e2fsck -b 16385 /dev/sda1
D. e2fsck -b 16385 /dev/sda1
You recently used the HOST=FS4 command. What command should you use to make the environment variable to apply to all child sessions? A. set HOST B. env HOST C. unset HOST D. export HOST
D. export HOST
You have added a second hard disk to your Linux system. Which of the following commands will allow you to partition the new drive? A. format /dev/sdb1 B. fdisk /sd0-1 C. fdisk /dev/sdc D. fdisk /dev/sdb
D. fdisk /dev/sdb
Which command would you use to rename the /home/pmallory/reports file to reports.bak? A. touch -n /home/pmallory/reports /home/pmallory/reports.bak B. diff -n /home/pmallory/reports /home/pmallory/reports.bak C. ren /home/pmallory/reports /home/pmallory/reports.bak D. mv /home/pmallory/reports /home/pmallory/reports.bak
D. mv /home/pmallory/reports /home/pmallory/reports.bak
Which of the following statements best describes the nl -s ": " myfile command? A. nl adds the octal format, a colon, and a space to the front of each line in the file. B. nl adds a colon and a space to the front of each line in the file. C. nl adds the link, a colon, and a space to the front of each line in the file. D. nl adds the number, a colon, and a space to the front of each line in the file.
D. nl adds the number, a colon, and a space to the front of each line in the file.
You want to view all currently-running processes that include *getty* in the process name. Which command would you use? A. ps -a | grep getty B. ps -A | find getty C. ps -a | find getty D. ps -A | grep getty _ _ - _ | _ _ _ _ getty
D. ps -A | grep getty
Which command displays the PPID? A. ps B. ps -A C. ps -u D. ps -f hint: PPID = parent = mom or dad
D. ps -f
In the /var directory is a subdirectory called backup.You need to delete the directory backup and any files. You change directory focus to /var. Which command will delete the directory backup and its files? A. rm backup B. rm backup/**.*** C. rd -rf backup/***.** D. rm -rf backup _ _ -_ _ _ _ _ _ _ _
D. rm -rf backup
You are attempting to install an RPM package on your Linux system, but the system tells you that a newer package is already installed. What command will install the RPM package over the existing, installed package? A. rpm -e B. rpm -ihv C. rpm --rebuilddb D. rpm --force
D. rpm --force
Without installing an RPM package,you want to check for all of the package's uninstalled dependencies. Which command should you use? A. rpm --checksig B. rpm -ihv C. rpm -U D. rpm --test
D. rpm --test
You need to determine which files are associated with the metacity RPM package. What command should you use? A. rpm -V metacity B. rpm -i metacity C. rpm --test metacity D. rpm -qi metacity
D. rpm -qi metacity
Which sed flag or option allows you to exchange one string of characters for another string of characters in a file? A. d B. g C. -f D. s
D. s
You want to shut down the system immediately, but send a message to logged on users and allow running processes to close gracefully. Which command would you use? A. shutdown -m now B. shutdown -hk now C. shutdown -r D. shutdown -h now E. shutdown -s
D. shutdown -h now
You are trying to configure the Samba service and would like to view the output of the messages log in real-time as it updates. Which of the following commands would produce the desired results? A. less /var/log/messages B. tail /var/log/messages C. cat -f /var/log/messages D. tail -f /var/log/messages
D. tail -f /var/log/messages
Which of the following commands will change the /home/gshants/smile file's modification and last accessed times to the current time? A. cat /home/gshants/smile B. rm /home/gshants/smile C. ls /home/gshants/smile D. touch /home/gshants/smile
D. touch /home/gshants/smile
Which apt-cache option shows the missing dependencies in the package cache? A. depends B. stats C. pkgnames D. unmet E. showpkg
D. unmet
You have an XFS filesystem 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? A. xfs_growfs -n /dev/sdb1 /reviewxfs B. xfs_metadump -e /dev/sdb1/reviewxfs C. xfs_info /dev/sdb1 /reviewxfs D. xfs_metadump -o /dev/sdb1 /reviewxfs
D. xfs_metadump -o /dev/sdb1 /reviewxfs
You have partitioned and formatted a new hard drive, sdc. You want to mount the first partition on sdc to directory /mnt/newdisk. Which command will perform the mount correctly? A. mount /dev/sdc /mnt/newdisk B. mount /sdc1 /mnt/newdisk C. mount /dsk/sdc_first /mnt/newdisk D. mount /mnt/newdisk /dev/sdc1 E. mount /dev/sdc1 /mnt/newdisk
E. mount /dev/sdc1 /mnt/newdisk
You are preparing to use a logical volume with LVM. Which of the following commands creates a volume group named backup on the third disk in the system? A. vgcreate /dev/sdc backup B. lvcreate backup /dev/sdc C. vgextend /dev/sdc backup D. pvcreate /dev/sdc backup E. vgcreate backup /dev/sdc
E. vgcreate backup /dev/sdc
Drag the term on the left to match the characteristics on the right. (Tip: You may use the terms more than once.) Dynamic Library Static Library -Has a .so or .so.version extension. -Increase the size of the application. -Has an .a filename extension. -Are typically stored in /usr/lib/ and /usr/local/lib/. -Can degrade program load time if the library isn't already in use by another program.
Has a .so or .so.version extension. Dynamic Library Increase the size of the application. Static Library Has an .a filename extension. Static Library Are typically stored in /usr/lib/ and /usr/local/lib/. Dynamic Library Can degrade program load time if the library isn't already in use by another program. Dynamic Library
You have the myapp executable file. It is found in the current directory, but not in the command path.What should you type at the command prompt to start the myapp file and replace the shell with myapp process? (Tip: Enter the command as if at the command prompt.)
exec ./myapp
Type the command which will start gedit program in the background. (Tip:Enter the command as if at the command prompt.)
gedit &
You are working on a Linux system and need more information about the uname command.What command should you use to learn about the uname command syntax and options.(Tip: Enter the command as if at the command prompt.)
man uname
You use a program on your Linux system named photorec. Which command will display the path to the photorec binary file? (Tip: Enter the command as if at the command prompt.)
which photorec
Which command overcomes the 128 KB shell command size restriction by breaking up long lists of arguments?
xargs