Check Real Linux Foundation LFCS Exam Question for Free (2023)
Get Ready to Boost your Prepare for your LFCS Exam with 260 Questions
What is the duration, language, and format of LFCS Exam
Format: Multiple choices, multiple answers
- Number of Questions: 260
- Passing score: 66%
- Language: English
- Length of Examination: 2 Hours
NEW QUESTION 83
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
- A. rmdir ~/\\dir
- B. rmdir ~/\dir
- C. rmdir "~/\dir"
- D. rmdir ~/'dir'
- E. rmdir '~/\dir'
Answer: A
NEW QUESTION 84
Which of the following commands is used to rotate, compress, and mail system logs?
- A. rotatelog
- B. logger
- C. striplog
- D. syslogd --rotate
- E. logrotate
Answer: E
NEW QUESTION 85
Which grep command will print only the lines that do not end with a / in the file foo?
- A. grep '/#' foo
- B. grep -v '/#' foo
- C. grep -v '/$' foo
- D. grep '/$' foo
Answer: C
NEW QUESTION 86
Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)
- A. up
- B. time -up
- C. top
- D. uptime
- E. uname -u
Answer: C,D
NEW QUESTION 87
When using rpm --verify to check files created during the installation of RPM packages, which ofthe following information is taken into consideration? (Choose THREE correct answers.)
- A. File sizes
- B. Inodes
- C. GnuPG signatures
- D. MD5 checksums
- E. Timestamps
Answer: A,D,E
NEW QUESTION 88
Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)
- A. chsh
- B. chattr
- C. passwd
- D. chage
- E. usermod
Answer: C,D,E
NEW QUESTION 89
Which configuration file would be edited to change the default options for outbound SSH sessions?
- A. /etc/ssh/ssh
- B. /etc/ssh/ssh_client
- C. /etc/ssh/ssh_config
- D. /etc/ssh/client
- E. /etc/ssh/sshd_config
Answer: C
NEW QUESTION 90
Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
- A. U (uppercase)
- B. u (lowercase)
- C. P (uppercase)
- D. i (lowercase)
- E. p (lowercase)
Answer: E
NEW QUESTION 91
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 directly transmitted on the device eth0.
- C. It would be passed to the default router 192.168.178.1 on wlan0.
- D. It would be directly transmitted on the device wlan0.
- E. It would be passed to the router 192.168.1.1 on eth0.
Answer: E
NEW QUESTION 92
Which of the following commands will help identify a broken router between the local and the remote machine?
- A. nslookup
- B. netstat
- C. ifconfig
- D. ps
- E. traceroute
Answer: D
Explanation:
Explanation/Reference:
NEW QUESTION 93
Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?
- A. File size
- B. Permissions
- C. Link count
- D. Modify timestamp
- E. Inode number
Answer: C
NEW QUESTION 94
After running the command umount /mnt, the following error message is displayed:
umount: /mnt: device is busy.
What is a common reason for this message?
- A. Another file system still contains a symlink to a file inside /mnt.
- B. The files in /mnt have been scanned and added to the locate database.
- C. The kernel thinks that a process is about to open a file in /mnt for reading.
- D. A user has a file open in the /mnt directory.
- E. The kernel has not finished flushing disk writes to the mounted device.
Answer: D
NEW QUESTION 95
After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?
- A. grub
- B. kill -HUP $(pidof grub)
- C. No action is required
- D. grub-install
Answer: C
NEW QUESTION 96
Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)
- A. nameserver
- B. search
- C. method
- D. lookup
- E. substitute
Answer: A,B
NEW QUESTION 97
Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?
- A. lpp
- B. lpq
- C. lpr
- D. lpd
Answer: C
NEW QUESTION 98
Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?
- A. tune2fs -d 200 /dev/sda1
- B. tune2fs -c 200 /dev/sda1
- C. tune2fs -n 200/dev/sda1
- D. tune2fs -i 200 /dev/sda1
- E. tune2fs --days 200 /dev/sda1
Answer: D
NEW QUESTION 99
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
- A. 0
- B. 1
- C. 2
- D. 3
Answer: B
NEW QUESTION 100
SIMULATION
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 -or- values
NEW QUESTION 101
Which of the following commands can remove a user from a group?
- A. passwd
- B. usergroups
- C. grouprm
- D. groupmod
- E. usermod
Answer: E
NEW QUESTION 102
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
- A. myapp | cat > file1.log
- B. myapp | tee file1.log
- C. tee myapp file1.log
- D. cat < myapp | cat > file1.log
- E. myapp 0>&1 | cat > file1.log
Answer: B
NEW QUESTION 103
What is true regarding the command sendmail?
- A. All MTAs, including Postfix and Exim, provide a sendmail command.
- B. The sendmail command prints the MTAs queue history of which mails have been sent successfully.
- C. With any MTA, the sendmail command must be run periodically by the cron daemon.
- D. It is only available when the sendmail MTA is installed.
Answer: A
NEW QUESTION 104
Which of the following files assigns a user to its primary group?
- A. /etc/shadow
- B. /etc/passwd
- C. /etc/gshadow
- D. /etc/pgroup
- E. /etc/group
Answer: B
NEW QUESTION 105
......
LFCS Certification Path
There are no prerequisites for the LFCS
Use Free LFCS Exam Questions that Stimulates Actual EXAM : https://www.practicetorrent.com/LFCS-practice-exam-torrent.html
Get 100% Real LFCS Free Online Practice Test: https://drive.google.com/open?id=1Km4ZCqtkyKPa7dpmGAWmiYYenBmiFjzH