Frage 1
Frage
What kind of hardware is represented by the device name /dev/hda?
Antworten
-
IDE Hard Drive
-
SCSI Hard Drive
-
SATA Hard Drive
-
Sound Card
Frage 2
Frage
What file should you query to determine whether there is an IRQ conflict on your system?
Antworten
-
/proc/interrupts
-
/proc/cpuinfo
-
/proc/meminfo
-
/proc/irqstatus
Frage 3
Frage
Which of the following are arguments you can pass to the kernel at boot time
to tell it to start in runlevel 1 (single-user mode)? (Select two)
Frage 4
Frage
Which process is referred to as the “mother of all processes” and always has PID 1?
Antworten
-
init
-
mother
-
admin
-
administrator
Frage 5
Frage
Which logfile should you examine for information about the hardware that the kernel initialized at boot time?
Antworten
-
/var/log/messages
-
/var/log/lastlog
-
/var/log/wtmp
-
/var/log/cron
Frage 6
Frage
If you want to change your system’s default boot device from the hard drive to the CD-ROM drive, where would you make that configuration change?
Frage 7
Frage
What command line would reboot a running Linux system immediately, forcing an fsck of every drive on reboot?
Antworten
-
/sbin/shutdown –r –F now
-
/sbin/shutdown –h –F now
-
/sbin/shutdown
-
/sbin/shutdown –r –f now
Frage 8
Frage
Which of the following are valid ways to interactively switch a running system to runlevel 3? (Select two)
Antworten
-
init 3
-
telinit 3
-
runlevel 3
-
init -3
Frage 9
Frage
If you have created your own script that you wish to run every time your system boots, but it must run after all other processes have completed, where is the best place to reference it?
Frage 10
Frage
Which command is used to display the current mounted partitions, their mount points, and the available free space on each?
Frage 11
Frage
Which partition is designed to hold data that changes often and is writable by all users?
Frage 12
Frage
What does MBR stand for?
Antworten
-
Master Boot Record
-
Main Booting Runlevel
-
Main Block Record
-
Master Boot Resource
Frage 13
Frage
Which of the following lines in /boot/grub/grub.conf would tell GRUB to use the first partition of the first hard drive as the root partition?
Antworten
-
root (hd0,0)
-
boot (hd0,0)
-
root (hd1,1)
-
boot (hd1,1)
Frage 14
Frage
What file contains a list of directories that are searched to find shared libraries when a binary program is executed?
Antworten
-
/etc/ld.so.conf
-
/etc/loader.conf
-
/etc/library/conf
-
/etc/ld.so.cache
Frage 15
Frage
For distributions that use the Debian package management system, what command will download and update all installed packages to the latest available version?
Antworten
-
apt-get update
-
apt-get install
-
apt-cache update
-
dpkg –i
Frage 16
Frage
If I download a .deb package (package.deb) and wish to install it, what’s the best command to use?
Frage 17
Frage
For distributions that use the Red Hat package management system, what command will list all packages currently installed?
Antworten
-
rpm –qa
-
rpm –i
-
rpm –Uvh
-
rpm –list
Frage 18
Frage
For distributions that use the Red Hat package management system, what command will download and update all installed packages to the latest available version?
Antworten
-
yum update
-
yum install
-
yum config
-
yum list available
Frage 19
Frage
What option(s) to rpm will instruct rpm to run a verification check on all packages installed on the system? (Select two)
Antworten
-
rpm –verify –all
-
rpm –Va
-
rpm –qa
-
rpm –check
Frage 20
Frage
What command is used to display a list of directories the shell will search in to find a command that has been entered?
Antworten
-
echo $PATH
-
echo $MYPATH
-
setenv
-
set $PATH
Frage 21
Frage
Which file(s) does the bash shell read at login to set environment variables?
Antworten
-
All of the above
-
/etc/bashrc
-
~/.bashrc
-
None of the above
Frage 22
Frage
What commands can be used to view a list of the last commands typed into the shell?
Antworten
-
All of the above
-
history
-
<Ctrl-R>
-
<up arrow>
Frage 23
Frage
If my current directory is /opt and I wish to run the command /opt/runme, what
command(s) could I type (assuming /opt is not in your $PATH)? (select two)
Antworten
-
/opt/runme
-
/runme
-
opt/runme
-
~/runme
Frage 24
Frage
Which of the following commands will redirect the standard output of /bin/ls to /dev/null, while allowing standard error to display on the screen?
Frage 25
Frage
Which of the following command(s) will display the first 5 lines of the file /etc/passwd? (Select two)
Frage 26
Frage
Which commands can be used to perform a search and replace on a file or a text stream? (Select two)
Frage 27
Frage
What command(s) can be used to copy data to and from raw devices, bypassing the filesystem? (Select two)
Frage 28
Frage
What option can be passed to /bin/ls to display every file in a directory that ends in .txt?
Antworten
-
ls * txt
-
ls *txt*
-
ls [txt]
-
ls +.txt
Frage 29
Frage
What option can be passed to /bin/ls to display every file that starts with the letters a, b, or c?
Antworten
-
ls [abc]*
-
ls abc*
-
ls a*b*c*
-
ls ^abc
Frage 30
Frage
Which file extensions are common for files or directories that have been concatenated with tar and then compressed with bzip2?
Antworten
-
All of the above
-
.tar.bz2
-
.tbz2
-
.tbz
Frage 31
Frage
What device should you redirect output to if you do not want to see it or save it?
Antworten
-
/dev/null
-
/dev/nothing
-
/dev/empty
-
/dev/zero
Frage 32
Frage
Which of the following commands would list the contents of the directory /tmp, store that list in the file /root/tmp.txt, and display the list a screen at a time?
Antworten
-
ls –l /tmp | tee /root/tmp.txt | more
-
ls –l /tmp | xargs /root/tmp.txt | more
-
ls –l /tmp | more | tee /root/tmp.txt
-
tee /root/tmp.txt | ls –l /tmp | more
Frage 33
Frage
What character is used after a command line to indicate that the command should run in the background and return shell control to the user?
Frage 34
Frage
What command is used at the beginning of a command line to detach the process from a terminal, allowing it to continue running after the user has logged out?
Antworten
-
nohup
-
hangup
-
detach
-
background
Frage 35
Frage
What command will display a full-screen, updated list of all running processes?
Frage 36
Frage
If a running process is not responding to a standard terminate signal from the /bin/kill command, what option can you pass to force the process to terminate immediately?
Antworten
-
kill -9
-
kill -1
-
kill --HUP
-
kill --stop
Frage 37
Frage
What command can be used to kill processes by name, rather than process ID?
Antworten
-
killall
-
killproc
-
killname
-
kill –name
Frage 38
Frage
Which command line would start the program /usr/bin/top with the highest priority possible?
Antworten
-
nice --20 /usr/bin/top
-
nice 20 /usr/bin/top
-
nice 19 /usr/bin/top
-
nice -20 /usr/bin/top
Frage 39
Frage
Which command is used to modify the priority of a process already running?
Frage 40
Frage
Which command(s) would display every line in /tmp/file.txt that begins with the letter h and ends with the letter t?
Antworten
-
grep –E "^h.*t$" /tmp/file.txt
-
grep "^h.+t$" /tmp/file.txt
-
grep –E "^h.+t$" /tmp/file.txt
-
grep –E "$h.+t^" /tmp/file.txt
Frage 41
Frage
Which command(s) would display every line in /tmp/file.txt that contains at least one letter of the alphabet? (Select Two)
Antworten
-
grep " [a-zA-Z] " /tmp/file.txt
-
grep " [:alpha:] " /tmp/file.txt
-
grep " [:letters:] " /tmp/file.txt
-
grep " (a-zA-Z) " /tmp/file.txt
Frage 42
Frage
In the vi editor, what command sequence given in command mode will save the current file and quit the editor?
Antworten
-
:wq
-
:WQ
-
:pq
-
None of the above
Frage 43
Frage
In the vi editor, what command sequence given in command mode will make a copy of the current line?
Frage 44
Frage
In the vi editor, what command sequence given in command mode will quit a file without saving, even if changes have been made?
Frage 45
Frage
Which of the following are examples of journaling filesystems? (Select two)
Frage 46
Frage
What command will create an ext3 partition on the first partition of the first SCSI hard drive?
Antworten
-
mkfs –t ext3 /dev/sda1
-
fdisk –t ext3 /dev/sda1
-
fsck –t ext3 /dev/sda1
-
mkfs –s ext3 /dev/hda1
Frage 47
Frage
What command is used to convert an existing ext2 partition (/dev/sda1) to an ext3 (journaled) partition?
Antworten
-
tune2fs –j /dev/sda1
-
dumpe2fs –j /dev/sda1
-
fsck –j /dev/sda1
-
mkfs.ext2 –j /dev/sda1
Frage 48
Frage
What command is used to display the number of free inodes on an ext2 or ext3 partition?
Antworten
-
dumpe2fs
-
showe2fs
-
fsck
-
fdisk
Frage 49
Frage
Which file defines what partitions are mounted at boot time?
Antworten
-
/etc/fstab
-
/etc/partitions
-
/etc/mount
-
/etc/mtab
Frage 50
Frage
Which command will mount all partitions of type nfs defined in /etc/fstab?
Antworten
-
mount –a –t nfs
-
mount –a nfs –t
-
mount –nfs
-
mountall –nfs
Frage 51
Frage
If you would like to give a normal (nonroot) user the ability to mount a device, what option should you define for that device in /etc/fstab?
Frage 52
Frage
Which option to chmod would assign read/write permission to the file owner, read-only permission to the group owner, and read-only permission to everyone else?
Antworten
-
chmod 644 file.txt
-
chmod 755 file.txt
-
chmod 466 file.txt
-
chmod 777 file.txt
Frage 53
Frage
Which option to umask would set my default file permissions such that files are created with these permissions: user has read/write, group has read/write, and everyone else has read only?
Antworten
-
umask 022
-
umask 200
-
umask 220
-
umask 775
Frage 54
Frage
Which command can be used to quickly tell you if an executable command is in any directory defined in your $PATH environment variable?
Frage 55
Frage
Which directory, according to the Filesystem Hierarchy Standard, is designed to hold essential system binaries?
Antworten
-
/sbin
-
/bin
-
/usr/bin
-
/opt/bin
Frage 56
Frage
According to the Filesystem Hierarchy Standard, what directory (or directories) must hold the system kernel? (Select Two)
Frage 57
Frage
What command is used to maintain the filesystem index that the command /usr/bin/locate searches?
Antworten
-
updatedb
-
update
-
updatelocate
-
locate –update
Frage 58
Frage
Use find to search for bash:
Antworten
-
$ find / -name bash
-
$ find / -linux bash
-
$ find / -time bash
-
$ find / -chown bash
Frage 59
Frage
If you created a new partition in the previous exercises, check it with fsck and observe the output:
Frage 60
Frage
Check on the status of filesystems using df:
Antworten
-
$ df -h
-
$ df -w
-
$ df -z
-
$ df -gg