
LFCS Practice Exam Tests Latest Updated on Oct-2021
Pass LFCS Exam in First Attempt Guaranteed Dumps!
NEW QUESTION 41
Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)
- A. resolv
- B. dns
- C. remote
- D. files
- E. hosts
Answer: B,D
NEW QUESTION 42
CORRECT TEXT
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 43
What is the maximum niceness value that a regular user can assign to a process with the nice command when executinga new process?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: A
NEW QUESTION 44
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 selecting all affected lines using the shift and cursor keys before applying the command.
- B. By specifying the number right in front of a command such as 4l or 2yj.
- C. By using the command :repeat followed by the number and the command.
- D. By issuing acommand such as :set repetition=4 which repeats every subsequent command 4 times.
Answer: B
NEW QUESTION 45
What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)
- A. netstat -r default
- B. ifconfig unset default
- C. ip route del default
- D. sysctl ipv4.default_gw=0
- E. route del default
Answer: C,E
NEW QUESTION 46
Which of the following shell redirections will write standard output and standard error output to a file named filename?
- A. >filename 2>&1
- B. >>filename
- C. 1>&2>filename
- D. 1&2>filename
- E. 2>&1 >filename
Answer: A
NEW QUESTION 47
CORRECT TEXT
What word is missing from the following SQL statement?
insert into tablename ________(909, 'text');
(Please specify the missing word using lower-case letters only.)
Answer:
Explanation:
VALUES,
values
NEW QUESTION 48
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 correct answers.)
- A. By creating a hard link from the old to the new path of the data.
- B. By creating a symbolic link from the old to the new path of the data.
- C. By creating an ACL redirection 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.
Answer: B,D
NEW QUESTION 49
Which of the following command sequences overwrites the file foobar.txt?
- A. echo "QUIDQUIDAGIS" < foobar.txt
- B. echo "QUIDQUIDAGIS" >> foobar.txt
- C. echo "QUIDQUIDAGIS" | foobar.txt
- D. echo "QUIDQUIDAGIS" > foobar.txt
Answer: D
NEW QUESTION 50
CORRECT TEXT
Which command displays a list of allbackground tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
jobs
NEW QUESTION 51
After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem.
Which of the following describes the resulting situation?
- A. foo would be removed. bar would still exist but would be unusable.
- B. foo would be removed while bar would remain accessible.
- C. foo and bar would both be removed.
- D. The user is prompted whether bar should be removed, too.
- E. Both foo and bar would remain accessible.
Answer: B
Explanation:
Explanation
NEW QUESTION 52
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?
- A. touch /tmp/myfile.txt
- B. file /tmp/myfile.txt
- C. echo "Hello" >/tmp/myfile.txt
- D. echo -n "Hello" >>/tmp/myfile.txt
- E. sed -ie "s/1/2/" /tmp/myfile.txt
Answer: B
NEW QUESTION 53
Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?
- A. mountd
- B. fingerd
- C. inetd
- D. tcpd
- E. xinetd
Answer: D
NEW QUESTION 54
Given a file called birthdays containing lines like:
YYYY-MM-DD Name
1983-06-02 Tim
1995-12-17 Sue
Which command would you use to output the lines belonging to all people listed whose birthday is in May or June?
- A. grep 05?6? birthdays
- B. grep '[0-9]*-0[56]-' birthdays
- C. grep '[56]' birthdays
- D. grep 06 birthdays | grep 05
Answer: B
NEW QUESTION 55
CORRECT TEXT
On a Linux system with shadow passwords enabled, which file in the file system contains the password hashes of all local users? (Specify the full name of the file, including path.)
Answer:
Explanation:
/etc/shadow
NEW QUESTION 56
Which of the following commands will set the variable text to olaf is home? (Choose two)
- A. text=='olaf is home'
- B. text="olaf is home"
- C. $text='olaf is home'
- D. text=olaf\ is\ home
- E. text=$olaf is home
Answer: B,D
NEW QUESTION 57
Which of the following command sequences overwrites the file foobar.txt?
- A. echo "QUIDQUIDAGIS" < foobar.txt
- B. echo "QUIDQUIDAGIS" >> foobar.txt
- C. echo "QUIDQUIDAGIS" | foobar.txt
- D. echo "QUIDQUIDAGIS" > foobar.txt
Answer: D
NEW QUESTION 58
......
Linux Foundation Certified Free Certification Exam Material from Lead2PassExam with 260 Questions: https://www.lead2passexam.com/Linux-Foundation/valid-LFCS-exam-dumps.html
LFCS Dumps Full Questions - Exam Study Guide: https://drive.google.com/open?id=1-AQvHrUDBi00qKFg3FQSFzW6bGawIm-i