[Oct-2023] Study resources for the Valid LFCS Braindumps!
Updated LFCS Tests Engine pdf - All Free Dumps Guaranteed!
NEW QUESTION # 55
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 command sed did not match anything in that file therefore the output is empty.
- B. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.
- C. Redirection for shell commands do not work using the > character. It only works using the | character instead.
- D. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.
Answer: B
NEW QUESTION # 56
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
Answer:
Explanation:
HUP,
SIGHUP, 1
NEW QUESTION # 57
Where are user specific crontabs stored?
- A. In the database file /etc/crontab.db which is shared by all users.
- B. As individual per-user files within /var/spool/cron.
- C. As individual per-user files in /etc/cron.user.d.
- D. In the .crontab file in the user's home directory.
- E. In the file /var/cron/user-crontab which is shared by all users.
Answer: B
NEW QUESTION # 58
How can the normal output of a command be written to a file while discarding the error output?
- A. command < output > /dev/null
- B. command > discard-error > file
- C. command > /dev/null 2&>1 output
- D. command >file 2>/dev/null
- E. command >2>file 1&>/dev/null
Answer: D
NEW QUESTION # 59
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-cache update
- C. apt-get upgrade
- D. apt-get refresh
- E. apt-cache upgrade
Answer: A
NEW QUESTION # 60
Which of the following commands moves and resumes in the background the last stopped shell job?
- A. bg
- B. back
- C. run
- D. fg
Answer: A
NEW QUESTION # 61
Which command can be used to delete a group from a Linux system?
- A. groupedit
- B. groups
- C. groupmod
- D. groupdel
Answer: D
NEW QUESTION # 62
Which of the following are syslog facilities? (Choose TWO correct answers.)
- A. advanced
- B. local7
- C. remote
- D. mail
- E. postmaster
Answer: B,D
NEW QUESTION # 63
Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?
- A. export ALL_MESSAGES="pt"
- B. export MESSAGE="pt"
- C. export LANGUAGE="pt"
- D. export LC_MESSAGES="pt"
- E. export UI_MESSAGES="pt"
Answer: D
NEW QUESTION # 64
Which of the following statements is valid in the file /etc/nsswitch.conf?
- A. multi on
- B. include /etc/nsswitch.d/
- C. 192.168.168.4 dns-server
- D. hosts: files dns
Answer: D
NEW QUESTION # 65
Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?
- A. find /usr -uid 0 -perm +4000
- B. find -type suid -username root -d /usr
- C. find /usr -suid -perm +4000
- D. find /usr -ls \*s\* -u root
- E. find -user root +mode +s /usr
Answer: A
NEW QUESTION # 66
Which of the following files, located in the user home directory, is used to store the Bash history?
- A. .history
- B. .bashrc_history
- C. .history_bash
- D. .bash_histfile
- E. .bash_history
Answer: E
Explanation:
Explanation
NEW QUESTION # 67
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 dan -g staff file.txt
- D. chown -u dan -g staff file.txt
Answer: B
NEW QUESTION # 68
SIMULATION
Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time information?
(Specify ONLY the option without any values or parameters.)
Answer:
Explanation:
server
NEW QUESTION # 69
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. colrm 1,7 /etc/passwd
- C. chop -c 1,7 /etc/passwd
- D. column -s : 1,7 /etc/passwd
Answer: A
NEW QUESTION # 70
Which of the following is observed and corrected by a NTP client?
- A. Changes in the time zone of the current computer's location.
- B. The skew in time between the system clock and the reference clock.
- C. The skew in time between the system clock and the hardware clock.
- D. Adjustments needed to support Daylight Saving Time.
Answer: B
NEW QUESTION # 71
CORRECT TEXT
Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
hwclock, /sbin/hwclock, /usr/sbin/hwclock
NEW QUESTION # 72
Given the following routing table:
How would an outgoing packet to the destination 192.168.2.150 be handled?
- A. It would be directly transmitted on the device wlan0.
- B. It would be passed to the default router 255.255.255.0 on eth0.
- C. It would be directly transmitted on the device eth0.
- D. It would be passed to the router 192.168.1.1 on eth0.
- E. It would be passed to the default router 192.168.178.1 on wlan0.
Answer: D
NEW QUESTION # 73
Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?
- A. export ALL_MESSAGES="pt"
- B. export MESSAGE="pt"
- C. export LANGUAGE="pt"
- D. export LC_MESSAGES="pt"
- E. export UI_MESSAGES="pt"
Answer: D
NEW QUESTION # 74
......
LFCS Dumps Updated Practice Test and 260 unique questions: https://www.topexamcollection.com/LFCS-vce-collection.html
Latest Linux Foundation Certified LFCS Actual Free Exam Questions: https://drive.google.com/open?id=1UbvBnHor30uphJ2whsYUBXpeCj98XED8

