This page was exported from Exams Labs Braindumps [ http://blog.examslabs.com ] Export date:Sun Sep 29 3:34:24 2024 / +0000 GMT ___________________________________________________ Title: Get 2023 Updated Free Linux Foundation LFCS Exam Questions & Answer [Q27-Q49] --------------------------------------------------- Get 2023 Updated Free Linux Foundation LFCS Exam Questions and Answer LFCS Dumps PDF and Test Engine Exam Questions What is the duration, language, and format of LFCS Exam Format: Multiple choices, multiple answers Language: EnglishPassing score: 66%Length of Examination: 2 HoursNumber of Questions: 260   QUESTION 27SUMULATIONWhich file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.) cmdline -or- /proc/cmdlineQUESTION 28What is the maximum niceness value that a regular user can assign to a process with the nice command when executinga new process?  9  19  49  99 QUESTION 29CORRECT TEXTThe presence of what file will temporarily prevent all users except root from logging into the system? (Specify the full name of the file, including path.) /etc/nologinQUESTION 30What output will the following command sequence produce?echo ‘1 2 3 4 5 6’ | while read a b c; doecho result: $c $b $a;done  result: 3 4 5 6 2 1  result: 1 2 3 4 5 6  result: 6 5 4  result: 6 5 4 3 2 1  result: 3 2 1 QUESTION 31SIMULATIONWhich file contains a set of services and hosts that will be allowed to connect to the server by going through a TCP Wrapper program such as tcpd? (Specify the full name of the file, including path.) /etc/hosts.allowQUESTION 32Which character starts a comment line in a shell script file?  ;  *  #  / QUESTION 33When running the commandsed -e “s/a/b/” /tmp/file >/tmp/fileWhile /tmp/file contains data, why is /tmp/file empty afterwards?  The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.  The command sed did not match anything in that file therefore the output is empty.  When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.  Redirection for shell commands do not work using the > character. It only works using the | character instead. QUESTION 34Which command chain will count the number of regular files with the name of foo.txt within /home?  ls -lR /home | grep foo.txt | wc -l  find /home -type f -name foo.txt | wc -l  find /home -name foo.txt -count  find /home -name foo.txt | wc -l  grep -R foo.txt /home | wc -l QUESTION 35Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?  fmt -f 1,4 /etc/passwd  split -c 1,4 /etc/passwd  cut -d : -f 1,4 /etc/passwd  paste -f 1,4 /etc/passwd QUESTION 36What is a purpose of an SSH host key?  It must be sent by any SSH client in addition to a user key in order to identify the client’s host.  It provides the server’s identity information to connecting SSH clients.  It is the root key by which all user SSH keys must be signed.  It authenticates any user that logs into a remote machine from the key’s host.  It is used by system services like cron, syslog or a backup job to automatically connect to remote hosts. QUESTION 37In Bash, inserting 1>&2 after a command redirects  standard error to standard input.  standard input to standard error.  standard output to standard error.  standard error to standardoutput.  standard output to standard input. QUESTION 38CORRECT TEXTWhich file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.) cmdline, /proc/cmdlineQUESTION 39Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?  SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;  SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;  COUNT(SELECT order_type FROM orders);  SELECT COUNT(*) FROM orders ORDER BY order_type;  SELECT AUTO_COUNT FROM orders COUNT order_type; QUESTION 40When the command echo $ outputs 1, which of the following statements is true?  It is the process ID of the echo command.  It is the process ID of the current shell.  It is the exit value of the command executed immediately before echo.  It is the exit value of the echo command. QUESTION 41Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?  magic  type  file  pmagic  hash QUESTION 42Which of the following commands redirects the output of cmd to the file foo.txt, in which an existing file is overwritten?  cmd || foo.txt  cmd | foo.txt  cmd && foo.txt  cmd >> foo.txt  cmd > foo.txt QUESTION 43Which of the following commands can be used to display the local routing table? (Choose TWO correct answers.)  ifconfig  dig  netstat  route  trackroute QUESTION 44What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)  route del default  ifconfig unset default  netstat -r default  ip route del default  sysctl ipv4.default_gw=0 QUESTION 45What is the correct command to extract the contents of the archive file download.bz2?  unpack download.bz2  unzip2 download.bz2  bunzip2 download.bz2  unzip download.bz2  uncompress download.bz2 QUESTION 46Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?  file /tmp/myfile.txt  echo “Hello” >/tmp/myfile.txt  sed -ie “s/1/2/” /tmp/myfile.txt  echo -n “Hello” >>/tmp/myfile.txt  touch /tmp/myfile.txt QUESTION 47SIMULATIONWhich command is used to set the hostname of the local system? (Specify ONLY the command without any path or parameters.) hostnameQUESTION 48CORRECT TEXTWhat two character sequence is present at the beginning of an interpreted script? (Please specify the TWO correct characters only) #!QUESTION 49CORRECT TEXTWhich command displays a list of allbackground tasks running in the current shell? (Specify ONLY the command without any path or parameters.) jobs Loading … Verified LFCS exam dumps Q&As with Correct 260 Questions and Answers: https://www.examslabs.com/Linux-Foundation/Linux-Foundation-Certified/best-LFCS-exam-dumps.html --------------------------------------------------- Images: https://blog.examslabs.com/wp-content/plugins/watu/loading.gif https://blog.examslabs.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2023-03-02 16:59:01 Post date GMT: 2023-03-02 16:59:01 Post modified date: 2023-03-02 16:59:01 Post modified date GMT: 2023-03-02 16:59:01