[2023年12月29日] トップクラスのLFCS練習試験問題
実際問題を使ってLFCS無料問題集サンプル問題と練習テストエンジン
質問 # 64
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. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.
- B. The command sed did not match anything in that file therefore the output is empty.
- C. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.
- D. Redirection for shell commands do not work using the > character. It only works using the | character instead.
正解:A
質問 # 65
Which of the following commands can be used to limit the amount of memory a user may use?
- A. passwd
- B. chage
- C. umask
- D. ulimit
- E. usermod
正解:D
質問 # 66
Which of the following details is NOT provided in any output from the netstat utility?
- A. masquerading connections
- B. routing tables
- C. broadcast services
- D. network connections
- E. interface statistics
正解:C
質問 # 67
Why is the correct configuration of a system's time zone important?
- A. Because the conversion of Unix timestamps to local time relies on the time zone configuration.
- 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 environment variables LANG and LC_MESSAGES are, by default, set according to the time zone.
正解:A
質問 # 68
Whenremoving a package, which of the following dpkg options will completely remove the files including configuration files?
- A. --purge
- B. -remove
- C. --delete
- D. --clean
正解:A
質問 # 69
How can the normal output of a command be written to a file while discarding the error output?
- A. command >2>file 1&>/dev/null
- B. command < output > /dev/null
- C. command >file 2>/dev/null
- D. command > discard-error > file
- E. command > /dev/null 2&>1 output
正解:C
質問 # 70
What is the purpose of the command mailq?
- A. It is a multi-user mailing list manager.
- B. It is a command-line based tool for reading and writing emails.
- C. It queries the mail queue of the local MTA.
- D. It fetches new emails from a remote server using POP3 or IMAP.
- E. It is a proprietary tool contained only in the qmail MTA.
正解:C
質問 # 71
What command will generate a list of user names from /etc/passwd along with their login shell?
- A. colrm 1,7 /etc/passwd
- B. column -s : 1,7 /etc/passwd
- C. cut -d: -f1,7 /etc/passwd
- D. chop -c 1,7 /etc/passwd
正解:C
質問 # 72
CORRECT TEXT
Which signal is missing from the following command that is commonly used to instruct adaemon to reinitialize itself, including reading configuration files?
killall -s _______ daemon
正解:
解説:
HUP,
SIGHUP, 1
質問 # 73
SIMULATION
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 -or- xwininfo
質問 # 74
Which command will display the last line of the file foo.txt?
- A. tail foo.txt
- B. last -n 1 foo.txt
- C. tail -n 1 foo.txt
- D. head -n 1 foo.txt
正解:C
解説:
Explanation/Reference:
質問 # 75
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. &<
正解:B
質問 # 76
Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)
- A. SMTPd
- B. Sendmail
- C. Postfix
- D. Exim
- E. Procmail
正解:B、C、D
質問 # 77
What is the output of the following command?
for token in a b c; do
echo -n ${token};
done
- A. anbncn
- B. $token$token$token
- C. {a}{b}{c}
- D. a b c
- E. abc
正解:E
質問 # 78
Which of the following commands will print the last 10 lines of a text file to the standard output?
- A. tail -n 10 filename
- B. head -n 10 filename
- C. dump -n 10 filename
- D. cat -n 10 filename
正解:A
質問 # 79
When the command echo $ outputs 1, which of the following statements is true?
- A. It is the exit value of the echo command.
- B. It is the exit value of the command executed immediately before echo.
- C. It is the process ID of the echo command.
- D. It is the process ID of the current shell.
正解:B
質問 # 80
Which of the following commands will help identify a broken router between the local and the remote machine?
- A. traceroute
- B. netstat
- C. ps
- D. nslookup
- E. ifconfig
正解:A
質問 # 81
......
合格させるLinux Foundation LFCS試験問題でテスト復刻エンジンとPDF:https://www.jpntest.com/shiken/LFCS-mondaishu