LFCS : Linux Foundation Certified System Administrator : Part 08

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

    • /etc/dpkg/dpkg.cfg
    • /etc/apt/apt.conf
    • /etc/apt/apt.conf.d
    • /etc/apt/sources.list
    • /etc/dpkg/dselect.cfg
  2. SIMULATION
    Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)

    • update
    • upgrade
  3. In Bash, inserting 1>&2 after a command redirects

    • standard error to standard input.
    • standard input to standard error.
    • standard output to standard error.
    • standard error to standard output.
    • standard output to standard input.
  4. What command will generate a list of user names from /etc/passwd along with their login shell?

    • column -s : 1,7 /etc/passwd
    • chop -c 1,7 /etc/passwd
    • colrm 1,7 /etc/passwd
    • cut -d: -f1,7 /etc/passwd
  5. Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?

    • dd if=/dev/zero of=/dev/sda bs=512
    • dd if=/dev/zero of=/dev/sda bs=512 count=1
    • dd if=/dev/zero of=/dev/sda bs=440 count=1
    • dd if=/dev/zero of=/dev/sda bs=440
  6. Which of the following commands can be used to create a USB storage media from a disk image?

    • gdisk
    • dd
    • cc
    • fdisk
    • mount
  7. What is the effect of the egrep command when the -v option is used?

    • It enables color to highlight matching parts.
    • It only outputs non-matching lines.
    • It shows the command’s version information.
    • It changes the output order showing the last matching line first.
  8. What does the symbol within regular expressions represent?

    • Match the preceding qualifier one or more times.
    • Match the preceding qualifier zero or more times.
    • Match the preceding qualifier zero or one times.
    • Match a literal character.
  9. SIMULATION
    Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

    • jobs
  10. Which of the following commands moves and resumes in the background the last stopped shell job?

    • run
    • bg
    • fg
    • back
  11. SIMULATION
    Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)

    • HISTFILE
  12. Which of the following commands displays the contents of a gzip compressed tar archive?

    • gzip archive.tgz | tar xvf –
    • tar ztf archive.tgz
    • gzip -d archive.tgz | tar tvf –
    • tar cf archive.tgz
  13. 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?

    • By using the command :repeat followed by the number and the command.
    • By specifying the number right in front of a command such as 4l or 2yj.
    • By selecting all affected lines using the shift and cursor keys before applying the command.
    • By issuing a command such as :set repetition=4 which repeats every subsequent command 4 times.
  14. Which of the following files, located in the user home directory, is used to store the Bash history?

    • .bash_history
    • .bash_histfile
    • .history
    • .bashrc_history
    • .history_bash
  15. What is the output of the following command?

    echo “Hello World” | tr -d aieou

    • Hello World
    • eoo
    • Hll Wrld
    • eoo Hll Wrld
  16. 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?

    • <<
    • <|
    • !<
    • &<
  17. Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

    • cat < myapp | cat > file1.log
    • myapp 0>&1 | cat > file1.log
    • myapp | cat > file1.log
    • myapp | tee file1.log
    • tee myapp file1.log
  18. What is the purpose of the Bash built-in export command?

    • It allows disks to be mounted remotely.
    • It runs a command as a process in a subshell.
    • It makes the command history available to subshells.
    • It sets up environment variables for applications.
    • It shares NFS partitions for use by other systems on the network.
  19. What is the default action of the split command on an input file?

    • It will break the file into new files of 1,024 byte pieces each.
    • It will break the file into new files of 1,000 line pieces each.
    • It will break the file into new files of 1,024 kilobyte pieces each.
    • It will break the file into new files that are no more than 5% of the size of the original file.
  20. What is the difference between the i and a commands of the vi editor?

    • i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.
    • i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.
    • i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.
    • i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments