Linux-Foundation LFCS Questions & Answers

Full Version: 256 Q&A



LFCS Dumps
LFCS Braindumps
LFCS Real Questions
LFCS Practice Test
LFCS Actual Questions


Linux-Foundation
LFCS
Linux Foundation Certified System Administrator
https://killexams.com/pass4sure/exam-detail/LFCS
Question #241
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 '[56]' birthdays
B. grep 05?6? birthdays
C. grep '[0-9]*-0[56]-' birthdays
D. grep 06 birthdays | grep 05
Answer: C
Question #242
The script, script.sh, consists of the following lines:
#!/bin/bash
echo $2 $1
Which output will appear if the command, ./script.sh test1 test2, is entered?
A. test1 test2
B. test2 test1
C. script.sh test2
D. script.sh test1
E. test1 script.sh
Answer: B
Question #243
Which approach will provide a listing of the contents in a tar archive?
A. Use the tar command with -t.
B. Use the grep command.
C. Use the find command.
D. Use the zless command.
E. Use the zlist command.
Answer: A
Question #244
Which character starts a comment line in a shell script file?
A. ;
B. *
C. #
D. /
Answer: C
Question #245
What is the output of the following command sequence?
for token in a b c; do
echo -n "$token ";
done
A. anbncn
B. a b c
C. "a " "b " "c "
D. token token token
E. abc
Answer: B
Question #246
What is the correct command to extract the contents of the archive file download.bz2?
A. unpack download.bz2
B. unzip2 download.bz2
C. bunzip2 download.bz2
D. unzip download.bz2
E. uncompress download.bz2
Answer: C
Question #247
Which command chain will count the number of regular files with the name of foo.txt within /home?
A. ls -lR /home | grep foo.txt | wc -l
B. find /home -type f -name foo.txt | wc -l
C. find /home -name foo.txt -count
D. find /home -name foo.txt | wc -l
E. grep -R foo.txt /home | wc -l
Answer: B
Question #248
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: C
Question #249
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: E
Question #250
What does the exit status 0 indicate about a process?
A. The process ended without any problems.
B. The process was terminated by the user.
C. The process couldn't finish correctly.
D. The process waited for an input but got none.
E. The process finished in time.
Answer: A
Question #251
Which of the following commands will output all of the lines with the name Fred in upper or lower case but not the
word red from the file data_file? (Choose two)
A. grep -v fred data_file
B. grep '[f]red' data_file
C. egrep fred data_file
D. grep '[Ff]red' data_file
E. grep -i fred data_file
Answer: DE
Question #252
The output of the program date should be saved in the variable actdat. What is the correct statement?
A. actdat=`date`
B. set actdat='date'
C. date | actdat
D. date > $actdat
E. actdat=date
Answer: A
Question #253
SIMULATION -
What two character sequence is present at the beginning of an interpreted script? (Please specify the TWO correct
characters only)
Answer: #!
Question #254
How can the current directory and its subdirectories be searched for the file named MyFile.xml?
A. find . -name MyFile.xml
B. grep MyFile.xml | find
C. grep -r MyFile.xml .
D. less MyFile.xml
E. search Myfile.xml ./
Answer: A
Question #255
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: AE
Question #256
Which of the following commands will create an archive file, named backup.tar, containing all the files from the
directory /home?
A. tar /home backup.tar
B. tar -cf /home backup.tar
C. tar -xf /home backup.tar
D. tar -xf backup.tar /home
E. tar -cf backup.tar /home
Answer: E

User: Onya*****

When I used Killexams.com for my lfcs exam for the first time, I did not know what to expect. But, to my surprise, the site exceeded my expectations. The learning engine and practice tests work wonderfully, and the questions are valid. By valid, I mean that they are actual exam questions, and I saw many of them on my actual exam. I have a good impression of this site and would not hesitate to recommend it to my colleagues.
User: Rusell*****

Browsing the internet led me to killexams.com right before my lfcs exam, and it turned out to be the best thing that happened to me. Their materials helped me pass the exam and achieve a great performance.
User: Sabiba*****

People often believe that to succeed in the lfcs exam, a scholar needs to possess a sharp brain. While this is true, it is also essential for the instructor or trainer to be adequately certified and educated. I am grateful to have been familiar with Killexams.com, where I met brilliant educators who taught me how to pass my lfcs exam with ease. I thank them from the bottom of my heart.
User: Davi*****

I used to be disappointed in those days because I did not have any time to prepare for the LINUX FOUNDATION CERTIFIED SYSTEM ADMINISTRATOR exam due to my daily work routine. I used to spend maximum time commuting from my home to my work location. I was so worried about the exam, and then one day, my friend told me about Killexams, and it turned out to be the turning point of my life. I could do my LINUX FOUNDATION CERTIFIED SYSTEM ADMINISTRATOR exam prep on the way without any problems by using my laptop, and killexams.com was so dependable and outstanding.
User: SofĂ­a*****

I not only passed the LFCS exam, but I achieved a remarkable score of 89%, which I am proud to share with everyone. I studied with the help of Killexams.com and their incredible LFCS study materials.

Features of iPass4sure LFCS Exam

  • Files: PDF / Test Engine
  • Premium Access
  • Online Test Engine
  • Instant download Access
  • Comprehensive Q&A
  • Success Rate
  • Real Questions
  • Updated Regularly
  • Portable Files
  • Unlimited Download
  • 100% Secured
  • Confidentiality: 100%
  • Success Guarantee: 100%
  • Any Hidden Cost: $0.00
  • Auto Recharge: No
  • Updates Intimation: by Email
  • Technical Support: Free
  • PDF Compatibility: Windows, Android, iOS, Linux
  • Test Engine Compatibility: Mac / Windows / Android / iOS / Linux

Premium PDF with 256 Q&A

Get Full Version

All Linux-Foundation Exams

Linux-Foundation Exams

Certification and Entry Test Exams

Complete exam list