[2022年03月12日] 無料Linux Foundation LFCS試験問題と解答 [Q106-Q131]

Share

[2022年03月12日] 無料Linux Foundation LFCS試験問題と解答

検証済みLFCS問題集と解答は最新LFCSをダウンロード

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

  • A. ext2
  • B. XFS
  • C. ext3
  • D. ext4
  • E. VFAT

正解: A

 

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

  • A. It enables color to highlight matching parts.
  • B. It changes theoutput order showing the last matching line first.
  • C. It shows the command's version information.
  • D. It only outputs non-matching lines.

正解: D

 

質問 108
When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?

  • A. debug
  • B. strace
  • C. traceroute
  • D. lsof
  • E. nessus

正解: D

 

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

  • A. apt-cache upgrade
  • B. apt-get upgrade
  • C. apt-get refresh
  • D. apt-get update
  • E. apt-cache update

正解: D

 

質問 110
CORRECT TEXT
Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.)

正解:

解説:
TZ

 

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

  • A. 0017
  • B. 0038
  • C. 0640
  • D. 0027

正解: D

 

質問 112
SIMULATION
Which parameter must be passed to ifconfig to activate a previously inactive network interface? (Specify the parameter only without any command, path or additional options)

正解:

解説:
up

 

質問 113
CORRECT TEXT
Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)

正解:

解説:
HISTFILE

 

質問 114
Which file inside the CUPS configuration directory contains the definition of the printers?

  • A. printers.conf
  • B. cupsd.conf
  • C. printcap.conf
  • D. cups-devices.conf
  • E. snmp.conf

正解: A

 

質問 115
What is the output of the following command?
for token in a b c; do
echo -n ${token};
done

  • A. $token$token$token
  • B. {a}{b}{c}
  • C. anbncn
  • D. abc
  • E. a b c

正解: D

 

質問 116
Given the following routing table:

How would an outgoing packet to the destination 192.168.2.150 be handled?

  • A. It would be passed to the default router 255.255.255.0 on eth0.
  • B. It would be passed to the router 192.168.1.1 on eth0.
  • C. It would be directly transmitted on the device eth0.
  • D. It would be passed to the default router 192.168.178.1 on wlan0.
  • E. It would be directly transmitted on the device wlan0.

正解: B

 

質問 117
Which command will display the last line of the file foo.txt?

  • A. tail -n 1 foo.txt
  • B. last -n 1 foo.txt
  • C. tail foo.txt
  • D. head -n 1 foo.txt

正解: A

解説:
Explanation/Reference:

 

質問 118
The script, script.sh, consists of the following lines:
#!/bin/bash
echo $2 $1
Which output will appear if the command, ./script.sh test1 test2, is entered?

  • A. test1 test2
  • B. test1 script.sh
  • C. script.sh test2
  • D. test2 test1
  • E. script.sh test1

正解: D

 

質問 119
How is a display manager started?

  • A. It is started like any other system service by the init system.
  • B. It is started by inetd when a remote hosts connects to the X11 port.
  • C. It is started by a user using the command startx.
  • D. It is started automatically when a X11 user logs in to the system console.

正解: A

 

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

  • A. /opt/man
  • B. /var/pkg/man
  • C. /usr/share/man
  • D. /var/man
  • E. /usr/doc/

正解: C

 

質問 121
Which command chain will count the number of regular files with the name of foo.txt within /home?

  • A. find /home -name foo.txt | wc -l
  • B. grep -R foo.txt /home | wc -l
  • C. find /home -name foo.txt -count
  • D. ls -lR /home | grep foo.txt | wc -l
  • E. find /home -type f -name foo.txt | wc -l

正解: E

 

質問 122
CORRECT TEXT
Which keyword must be listed in the hosts option of the Name Service Switch configuration file in order to make host lookups consult the /etc/hosts file?

正解:

解説:
files

 

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

  • A. tar cf archive.tgz
  • B. gzip archive.tgz | tar xvf -
  • C. tar ztf archive.tgz
  • D. gzip -d archive.tgz | tar tvf -

正解: C

 

質問 124
Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)

  • A. IP addresses may change.
  • B. New name servers may be added to the resolver configuration.
  • C. The routing table may change.
  • D. The system's host name may change.
  • E. Network interfaces may become active or inactive.

正解: A,C,E

 

質問 125
Which of the following commands redirects the output of cmd to the file foo.txt, in which an existing file is overwritten?

  • A. cmd | foo.txt
  • B. cmd && foo.txt
  • C. cmd || foo.txt
  • D. cmd > foo.txt
  • E. cmd >> foo.txt

正解: D

 

質問 126
The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?

  • A. It is placed after the row [SectionName].
  • B. It is placed between a line containing Section "SectionName" and a line containing EndSection.
  • C. It is placed after an initial unindented Section "SectionName" and must be indented by exactly one tab character.
  • D. It is placed in curly brackets as in Section SectionName { ... }.
  • E. It is placed between the tags <Section name="SectionName"> and </Section>

正解: B

 

質問 127
What is the correct command to extract the contents of the archive file download.bz2?

  • A. bunzip2 download.bz2
  • B. unpack download.bz2
  • C. uncompress download.bz2
  • D. unzip2 download.bz2
  • E. unzip download.bz2

正解: A

 

質問 128
Why is the correct configuration of a system's time zone important?

  • A. Because the environment variables LANG and LC_MESSAGES are, by default, set according to the time zone.
  • B. Because NTP chooses servers nearby based on the configured time zone.
  • C. Because the time zone is saved as part of the modification times of files and cannot be changed after a file is created.
  • D. Because the conversion of Unix timestamps to local time relies on the time zone configuration.

正解: D

 

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

  • A. fdisk
  • B. mount
  • C. cc
  • D. dd
  • E. gdisk

正解: D

 

質問 130
CORRECT TEXT
Which command can be used to investigate the properties for a particular window in X by clicking that window? (Specify ONLY the command without any path or parameters.)

正解:

解説:
/usr/bin/xwininfo, xwininfo

 

質問 131
......

リアル問題集を使おう 100%無料LFCS試験問題集:https://www.jpntest.com/shiken/LFCS-mondaishu

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡