Pass LFCS Exam in First Attempt Guaranteed 2021 Dumps!
LFCS Dumps Full Questions - Exam Study Guide
NEW QUESTION 30
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 31
SIMULATION
What argument to the -type option of find will match files that are symbolic links? (Specify only the argument and no other options or words.)
Answer:
Explanation:
l
NEW QUESTION 32
Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)
- A. <
- B. <<<
- C. >
- D. >>>
- E. %>
Answer: A,B,C
NEW QUESTION 33
Which of the following are syslog facilities? (Choose TWO correct answers.)
- A. local7
- B. mail
- C. remote
- D. advanced
- E. postmaster
Answer: A,B
NEW QUESTION 34
CORRECT TEXT
Which command is used to create and initialize the files used to store quota information? (Specify ONLY the commandwithout any path or parameters.)
Answer:
Explanation:
quotacheck
NEW QUESTION 35
Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?
- A. tar -xf backup.tar /home
- B. tar /home backup.tar
- C. tar -xf /home backup.tar
- D. tar -cf backup.tar /home
- E. tar -cf /home backup.tar
Answer: D
NEW QUESTION 36
Why is the correct configuration of a system's time zone important?
- A. Because NTP chooses servers nearby based on the configured time zone.
- B. Because the conversion of Unix timestamps to local time relies on the time zone configuration.
- C. Because the environment variables LANG and LC_MESSAGES are, by default, set according to the time zone.
- D. Because the time zone is saved as part of the modification times of files and cannot be changed after a file is created.
Answer: B
NEW QUESTION 37
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
Answer: B
NEW QUESTION 38
Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?
- A. /proc/inittab
- B. /etc/inittab
- C. /proc/keys
- D. /etc/reboot
- E. /etc/keys
Answer: B
NEW QUESTION 39
Where are user specific crontabs stored?
- A. In the database file /etc/crontab.db which is shared by all users.
- B. In the .crontab file in the user's home directory.
- C. In the file /var/cron/user-crontab which is shared by all users.
- D. As individual per-user files within /var/spool/cron.
- E. As individual per-user files in /etc/cron.user.d.
Answer: D
NEW QUESTION 40
Which of the following files, located in the user home directory, is used to store the Bash history?
- A. .bash_history
- B. .bash_histfile
- C. .bashrc_history
- D. .history_bash
- E. .history
Answer: A
NEW QUESTION 41
What is the output of the following command?
echo "Hello World" | tr -d aieou
- A. eoo Hll Wrld
- B. eoo
- C. Hello World
- D. Hll Wrld
Answer: D
NEW QUESTION 42
Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
- A. chown dan -g staff file.txt
- B. chown -u dan -g staff file.txt
- C. chown dan/staff file.txt
- D. chown dan:staff file.txt
Answer: D
NEW QUESTION 43
Which of the following commands updates the linker cache of shared libraries?
- A. mkldconfig
- B. lddconfig
- C. soconfig
- D. mkcache
- E. ldconfig
Answer: E
NEW QUESTION 44
Which of the following settingsfor umask ensures that new files have the default permissions -rw-r----- ?
- A. 0038
- B. 0640
- C. 0027
- D. 0017
Answer: C
NEW QUESTION 45
Which of the following commands can remove a user from a group?
- A. grouprm
- B. usergroups
- C. groupmod
- D. passwd
- E. usermod
Answer: E
NEW QUESTION 46
Which of the following commands moves and resumes in the background the last stopped shell job?
- A. back
- B. fg
- C. bg
- D. run
Answer: C
NEW QUESTION 47
Regarding the command:
nice -5 /usr/bin/prog
Which of the following statements is correct?
- A. /usr/bin/prog is executed with a priority of 5.
- B. /usr/bin/prog is executed with a nice level of 5.
- C. /usr/bin/prog is executed with a nice level of -5.
- D. /usr/bin/prog is executed with a priority of -5.
Answer: B
Explanation:
Explanation
NEW QUESTION 48
......
Linux Foundation Certified Free Certification Exam Material from Actual4Exams with 260 Questions: https://www.actual4exams.com/LFCS-valid-dump.html