• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/90

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

90 Cards in this Set

  • Front
  • Back

Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?


A. /etc/keys


B. /proc/keys


C. /etc/reboot


D. /proc/inittab


E. /etc/inittab

E. /etc/inittab

During a system boot cycle, what program is executed after the BIOS completes its tasks?


A. The kernel


B. The inetd program


C. The init program


D. The bootloader

E. The bootloader

Which of the following are init systems used within Linux systems? (Choose 3)


A. startd


B. systemd


C. Upstart


D. SysV init


E. SysInit

B. systemd


C. Upstart


D. SysV init

What information can the lspci command display about the system hardware? (Choose 3)


A. System battery type


B. PCI bus speed


C. Device IRQ settings


D. Device vendor identification


E. Ethernet MAC address

B. PCI bus speed


C. Device IRQ settings


D. Device vendor identification

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose 2)


A. shutdown -single now


B. init 1


C. telinit 1


D. runlevel 1


E. shutdown -R 1 now

B. init 1


C. telinit 1

What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?


A. /boot/init


B. /lib/init.so


C. /sbin/init


D. /etc/rc.d/rcinit


E. /proc/sys/kernel/init

C. /sbin/init

Which of the following commands will write a message to the terminals of all logged in users?


A. wall


B. yell


C. bcast


D. mesg


E. print

A. wall

Which of the following kernel parameters instructs the kernel to suppress most boot messages?


A. quiet


B. verbose=0


C. nomesg


D. silent

A. quiet

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?


A. systemd.target=rescue.target


B. systemd.unit=rescue.target


C. systemd.runlevel=rescue.target


D. systemd.service=rescue.target


E. systemd.default=rescue.target





B. systemd.unit=rescue.target

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?


A. No action is required


B. kill -HUP $(pidof grub)


C. grub-install


D. grub



A. No action is required

Which of the following commands is used to update the list of available packages when using dpkg based package management?


A. apt-get update


B. apt-get upgrade


C. apt-cache update


D. apt-get refresh


E. apt-cache upgrade

A. apt-get update

Which of the following commands lists the dependencies of a given dpkg package?


A. apt-cache depends-on package


B. apt-cache dependencies package


C. apt-cache requires package


D. apt-cache depends package

D. apt-cache depends package

Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?


A. hidemenu


B. splash


C. timeout


D. showmenu

C. timeout

What can the Logical Volume Manager (LVM) be used for? (Choose 3)


A. To dynamically change the size of logical volumes.


B. To encrypt logical volumes.


C. To create snapshots.


D. To dynamically create or delete logical volumes.


E.To create RAID 9 arrays.

A. To dynamically change the size of logical volumes.


C. To create snapshots.


D. To dynamically create or delete logical volumes.

Which of the following commands updates the linker cache of shared libraries?


A. mkcache


B. soconfig


C. mkldconfig


D. ldconfig


E. lddconfig

D. ldconfig

Which of the following commands lists all currently installed packages when using RPM package management?


A. yum --query --all


B. rpm --query --all


C. yum --list --installed


D. rpm --list installed

B. rpm --query --all

Which of the following commands can be used to download the RPM package kernel without installing it?


A. yum download --no-install kernel


B. yumdownloader kernel


C. rpmdownload kernel


D. rpm --download --package kernel

B. yumdownloader kernel

When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose 3)


A. Timestamps


B. File sizes


C. MD5 checksums


D. Inodes


E. GnuPG signatures



A. Timestamps


B. File sizes


C. MD5 checksums

Which of the following is correct when talking about mount points?


A. Only empty directories can be used as a mount point.


B. Directories need to have the SetUID flag set to be used as a mount point.


C. Every existing directory can be used as a mount point.


D. Files within a directory are deleted when the directory is used as a mount point.



C. Every existing directory can be used as a mount point.

Which function key is used to start Safe Mode in Windows NT?


A. F10


B. F6


C. F8


D. Windows NT doesn't support Safe Mode

D. Windows NT doesn't support Safe Mode

Which of the following environment variables overrides or extends the list of directories holding shared libraries?


A. LD_LOAD_PATH


B. LD_LIBRARY_PATH


C. LD_LIB_PATH


D. LD_SHARE_PATH


E. LD_RUN_PATH

B. LD_LIBRARY_PATH

Which RPM command will output the name of the package which supplied the file /etc/exports?


A. rpm -qf /etc/exports


B. rpm -F /etc/exports


C. rpm -Kl /etc/exports


D. rpm -qp /etc/exports


E. rpm -qi /etc/exports

A. rpm -qf /etc/exports

Which file should be edited to select the network locations from which Debian installation package files are loaded?


A. /etc/dpkg/dpkg.cfg


B. /etc/apt/apt.conf


C. /etc/apt/apt.conf.d


D. /etc/dpkg/dselect.cfg


E. /etc/apt/sources.list

E. /etc/apt/sources.list

Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?


A. dd if=/dev/zero of=/dev/sda bs=512


B. dd if=/dev/zero of=/dev/sda bs=512 count=1


C. dd if=/dev/zero of=/dev/sda bs=440 count=1


D. dd if=/dev/zero of=/dev/sda bs=440

C. dd if=/dev/zero of=/dev/sda bs=440 count=1

Which of the following commands can be used to create a USB storage media from a disk image?


A. cc


B. dd


C. DD


D. fdisk


E. gdisk

B. dd

In Bash, inserting (1>&2) after a command redirects:


A. standard error to standard input.


B. standard input to standard error.


C. standard output to standard input.


D. standard output to standard error.


E. standard error to standard output.



D. standard output to standard error.

What command will generate a list of user names from /etc/passwd along with their login shell?


A. cut -d: -f1,7 /etc/passwd


B. chop -c 1,7 /etc/passwd


C. column -s : 1,7 /etc/passwd


D. colrm 1,7 /etc/passwd

A. cut -d: -f1,7 /etc/passwd

Which of the following statements is correct regarding the command foo (1>) bar?


A. The stdout from the command foo is appended to the file bar.


B. The stdout from the command foo overwrites the file bar.


C. The command foo receives its stdin from the file bar.


D. The command foo receives its stdin from the stdout of the command bar.


E. The stderr from the command foo is saved to the file bar.

B. The stdout from the command foo overwrites the file bar.

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?


A. kill -PIPE 123


B. kill -TERM 123


C. kill -KILL 123


D. kill -STOP 123


E. kill -TERM 123

B. kill -TERM 123

Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below thecurrent line?


A. i (lowercase)


B. p (lowercase)


C. U (uppercase)


D. P (uppercase)


E. u (lowercase)

B. p (lowercase)

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?


A. rmdir '~/\dir'


B. rmdir "~/\dir"


C. rmdir ~/'dir'


D. rmdir ~/\\dir


E. rmdir ~/\dir

D. rmdir ~/\\dir

In compliance with the FHS, in which of the directories are man pages found?

/usr/share/man

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?


A. cat (<) myapp | cat (>) file1.log


B. myapp (0>&1) | cat (>) file1.log


C. myapp | cat (>) file1.log


D. myapp | tee file1.log


E. tee myapp file1.log

D. myapp | tee file1.log

What is the purpose of the Bash built-in export command?


A. It allows disks to be mounted remotely.


B. It sets up environment variables for applications.


C. It makes the command history available to subshells.


D. It shares NFS partitions for use by other systems on the network.

B. It sets up environment variables for applications.

Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?


A. (<<)


B. (<|)


C. (!<)


D. (&<)

A. (<<)

Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?


A. echo "Hello" >/tmp/myfile.txt


B. sed -ie "s/1/2/" /tmp/myfile.txt


C. file /tmp/myfile.txt


D. echo -n "Hello" >>/tmp/myfile.txt


E. touch /tmp/myfile.txt

C. file /tmp/myfile.txt

What is the default action of the split command on an input file?


A. It will break the file into new files of 1,024 byte pieces each.


B. It will break the file into new files of 1,024 kilobyte pieces each.


C. It will break the file into new files that are no more than 5% of the size of the original file.


D. It will break the file into new files of 1,000 line pieces each.

D. It will break the file into new files of 1,000 line pieces each.

What is the difference between the i and a commands of the vi editor?


A. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.


B. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.


C. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.


D. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.

A. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.

Which of the following commands moves and resumes in the background the last stopped shell job?


A. run


B. back


C. fg


D. bg

D. bg

What is the effect of the egrep command when the -v option is used?


A. It enables color to highlight matching parts.


B. It only outputs non-matching lines.


C. It shows the command's version information.D. It changes the output order showing the last matching line first.

B. It only outputs non-matching lines.

What does the ? symbol within regular expressions represent?


A. Match the preceding qualifier one or more times.


B. Match the preceding qualifier zero or more times.


C. Match the preceding qualifier zero or one times.


D. Match a literal ? character.

C. Match the preceding qualifier zero or one times.

In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?


A. By using the command :repeat followed by the number and the command.


B. By selecting all affected lines using the shift and cursor keys before applying the command.


C. By specifying the number right in front of a command such as 4l or 2yj.


D. By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times.

C. By specifying the number right in front of a command such as 4l or 2yj.

Which of the following files, located in the user home directory, is used to store the Bash history?


A. .bash_histfile


B. .bash_history


C. .history


D. .bashrc_history


E. .history_bash

B. .bash_history

Which of the following commands displays the contents of a gzip compressed tar archive?


A. gzip archive.tgz | tar xvf -


B. tar ztf archive.tgz


C. gzip -d archive.tgz | tar tvf -


D. tar cf archive.tgz

B. tar ztf archive.tgz

Which grep command will print only the lines that do not end with a / in the file foo?


A. grep '/$' foo


B. grep '/#' foo


C. grep -v '/$' foo


D. grep -v '/#' foo

C. grep -v '/$' foo

Which of the following commands is used to change options and positional parameters for a running Bash?


A. history


B. setsh


C. bashconf


D. set


E. envsetup

D. set

Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?


A. sed '/bob/Bob' letter > newletter


B. sed s/bob/Bob/ letter < newletter


C. sed 's/bob/Bob' letter > newletter


D. sed 's/bob/Bob/' letter > newletter


E. sed 's/bob, Bob/g' letter > newletter

E. sed 's/bob, Bob/g' letter > newletter

From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please selectTWO answers.)


A. source /usr/local/bin/runme.sh


B. /bin/bash /usr/local/bin/runme.sh


C. . /usr/local/bin/runme.sh


D. /usr/local/bin/runme.sh


E. run /usr/local/bin/runme.sh

A. source /usr/local/bin/runme.sh


C. . /usr/local/bin/runme.sh

Which shell command is used to continue background execution of a suspended command?


A. :&


B. &


C. cont


D. exec


E. bg

E. bg

Which of the following shell redirections will write standard output and standard error output to a file named filename?


A. (2>&1 >)filename


B. (>)filename (2>&1)


C. (1>&2>)filename


D. (>>)filename


E. (1&2>)filename

B. (>)filename (2>&1)

In the vi editor, which of the following commands will copy the current line into the vi buffer?


A. c


B. cc


C. 1c


D. 1y


E. yy

E. yy

Which two of the following sequences in the vi editor saves the opened document and exits the editor?


A. ctrl :w!


B. esc ZZ


C. esc zz


D. esc :wq!


E. ctrl XX



B. esc ZZ


D. esc :wq!

Which of the following commands will reduce all consecutive spaces down to a single space?


A. tr '\s' ' ' < a.txt > b.txt


B. tr -c ' ' < a.txt > b.txt


C. tr -d ' ' < a.txt > b.txt


D. tr -r ' ' '\n' < a.txt > b.txt


E. tr -s ' ' < a.txt > b.txt

E. tr -s ' ' < a.txt > b.txt

Which character, added to the end of a command, runs that command in the background as a child process of the current shell?


A. !


B. &


C. +


D. %


E. #

B. &

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?A. fmt -f 1,4 /etc/passwd


B. cut -d : -f 1,4 /etc/passwd


C. cut -c 1,4 /etc/passwd


D. paste -f 1,4 /etc/passwd

B. cut -d : -f 1,4 /etc/passwd

Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?


A. SIGTERM


B. SIGINT


C. SIGSTOP


D. SIGKILL

B. SIGINT

What happens after issuing the command vi without any additional parameters?


A. vi starts and loads the last file used and moves the cursor to the position where vi was when it last exited.


B. vi starts and requires the user to explicitly either create a new or load an existing file.


C. vi starts in command mode and opens a new empty file.


D. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.

C. vi starts in command mode and opens a new empty file.

Which variable defines the directories in which a Bash shell searches for executable commands?A. BASHEXEC


B. BASHRC


C. PATH


D. EXECPATH


E. PATHRC

C. PATH

Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?


A. magic


B. type


C. file


D. pmagic


E. hash

C. file

Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWOcorrect answers.)


A. find /tmp -uid root -print


B. find -path /tmp -uid root


C. find /tmp -user root -print


D. find /tmp -user root


E. find -path /tmp -user root print

C. find /tmp -user root -print


D. find /tmp -user root

When running the command;


sed -e "s/a/b/" /tmp/file >/tmp/file


While /tmp/file contains data, why is /tmp/file empty afterwards?


A. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.


B. The command sed did not match anything in that file therefore the output is empty.


C. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.


D. Redirection for shell commands do not work using the > character. It only works using the | character instead.

C. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.

When given the following command line.


echo "foo bar" | tee bar | cat


Which of the following output is created?


A. catB. foo barC. tee barD. barE. foo

B. foo bar

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)


A. uptime


B. up


C. time up


D. uname -u


E. top

A. uptime


E. top

Which of the following are valid stream redirection operators within Bash? (Pick 3)


A. (<)


B. (<<< )


C. (>)


D. (>>>)


E. (%>)

A. (<)


B. (<<< )


C. (>)

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?


A. chown dan/staff file.txt


B. chown dan:staff file.txt


C. chown -u dan -g staff file.txt


D. chown dan -g staff file.txt

B. chown dan:staff file.txt

After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO)


A. By creating a symbolic link from the old to the new path of the data. B. By creating an ACL redirection from the old to the new path of the data.


C. By creating a hard link from the old to the new path of the data.


D. By mounting the new filesystem on the original path of the data.


E. By running the command touch on the old path.



A. By creating a symbolic link from the old to the new path of the data.


D. By mounting the new filesystem on the original path of the data.

What does the command mount -a do?


A. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.


B. It shows all mounted file systems that have been automatically mounted.


C. It opens an editor with root privileges and loads /etc/fstab for editing.


D. It ensures that all file systems listed with the option auto in /etc/fstab are mounted


E. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.

D. It ensures that all file systems listed with the option auto in /etc/fstab are mounted

Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?


A. 0017


B. 0640


C. 0027


D. 0038

C. 0027

In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)


A. cat /proc/self/mounts


B. mount


C. free


D. lsmounts


E. cat /proc/self/mounts

B. mount


E. cat /proc/self/mounts

Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?


A. dirname


B. which


C. basename


D. query


E. whereis

E. whereis

Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?


A. ext4


B. ext3


C. ext2


D. XFS


E. VFAT

C. ext2

How many fields are in a syntactically correct line of /etc/fstab?


A. 3


B. 4


C. 6


D. 7


E. 8

C. 6

Which of the following file permissions belong to a symbolic link?


A. -rwxrwxrwx


B. +rwxrwxrwx


C. lrwxrwxrwx


D. srwxrwxrwx

C. lrwxrwxrwx

Creating a hard link to an ordinary file returns an error. What could be the reason for this?


A. The source file is hidden.


B. The source file is read-only.


C. The source file is a shell script.


D. The source file is already a hard link.


E. The source and the target are on different filesystems.

E. The source and the target are on different filesystems.

Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose 2)


A. /sbin/mke2fs -j /dev/sdb1


B. /sbin/mkfs -t ext3 /dev/sdb1


C. /sbin/mkfs -c ext3 /dev/sdb1


D. /sbin/mke3fs -j /dev/sdb1

A. /sbin/mke2fs -j /dev/sdb1


B. /sbin/mkfs -t ext3 /dev/sdb1

Which of the following commands will change the quota for a specific user?


A. repquota


B. edquota


C. quota -e


D. quota

B. edquota

Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?


A. mod2fs


B. fsck


C. tune2fs


D. mke2fs


E. fixe2fs

C. tune2fs

Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed?(Choose TWO)


A. ext3


B. JFS


C. ext2


D. XFS


E. procfs

A. ext3


C. ext2

What is the purpose of the Filesystem Hierarchy Standard?


A. It provides unified tools to create, maintain and manage multiple filesystems in a common way.


B. It defines a common internal structure of inodes for all compliant filesystems.


C. It is a distribution neutral description of locations of files and directories.


D. It is a security model used to ensure files are organized according to their permissions and accessibility.

C. It is a distribution neutral description of locations of files and directories.

Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose 2)


A. FIND


B.UUID


C. LABEL


D. NAME


E. ID

B.UUID


C. LABEL

What of the following statements are true regarding /dev/ when using udev? (Choose TWO)


A. Entries for all possible devices get created on boot even if those devices are not connected.


B. Additional rules for udev can be created by adding them to /etc/udev/rules.d/.


C. When using udev, it is not possible to create block or character devices in /dev/ using mknod.


D. The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.


E. The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

B. Additional rules for udev can be created by adding them to /etc/udev/rules.d/.




D. The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.

Which command displays a list of all background tasks running in the current shell?

Jobs

Which of the following commands lists all currently installed packages when using RPM package movement?


A. yum - query -all


B. yum -list -installed


C. rpm -query -all


D. rpm - list -installed

C. rpm -query -all

Which of the following statements is correct when talking about /proc/?


A. All changes to the files in /proc/ are stored in /etc/proc.d/ and restored on reboot.


B. All files within /proc/ are only readable by the root user


C. All files within /proc/ are read-only and their contents cannot be changed


D. All changes to files in /proc/ are immediately recognized by the kernel

D. All changes to files in /proc/ are immediately recognized by the kernal

Which command will disable swapping on a device? (Specify only the command without any path or parameters)

swapoff , /sbin/swapoff

Which Debian Package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time?

dpkg-reconfigure

Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?




killall -s ______ daemon

HUP, SIGHUP, 1

Which Bash environment variable defines in which file the user history is stored when exiting a Bash process?

HISTFILE

Which command is used in a linux environment to create a new directory?

mkdir , /usr/bin/mkdir

Which command is used to create and initialize the files used to store quota information?

quotacheck