It is more faster and easier to pass the Linux-Foundation LFCS exam by using Realistic Linux-Foundation Linux Foundation Certified System Administrator questuins and answers. Immediate access to the Updated LFCS Exam and find the same core area LFCS questions with professionally verified answers, then PASS your exam with a high score now.
NEW QUESTION 1
When running the command sed -e "s/a/b/" /tmp/file >/tmp/file
While /tmp/file contains data, why is /tmp/file empty afterwards?
- A. The file order is incorrec
- B. The destination file must be mentioned before the command to ensure redirection.
- C. The command sed did not match anything in that file therefore the output is empty.
- D. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.
- E. Redirection for shell commands do not work using the > characte
- F. It only works using the | character instead.
Answer: C
NEW QUESTION 2
Which of the following is true about IPv6?
- A. With IPv6, the TCP port numbers of most services have changed.
- B. IPv6 no longer supports broadcast addresses.
- C. IPv4 addresses can be used without any change with IPv6.
- D. IPv6 no longer supports multicast addresses.
- E. For IPv6, UDP and TCP have been replaced by the Rapid Transmission Protocol RTP.
Answer: B
NEW QUESTION 3
How is a display manager started?
- A. It is started by a user using the command startx.
- B. It is started like any other system service by the init system.
- C. It is started by inetd when a remote hosts connects to the X11 port.
- D. It is started automatically when a X11 user logs in to the system console.
Answer: B
NEW QUESTION 4
Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
- A. chmod u=rwx,go=rx /bin/foo
- B. chmod o+rwx,a+rx /bin/foo
- C. chmod 577 /bin/foo
- D. chmod 775 /bin/foo
Answer: :A
NEW QUESTION 5
Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)
- A. usermod
- B. passwd
- C. chattr
- D. chage
- E. chsh
Answer: ABD
NEW QUESTION 6
Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
- A. chown dan/staff file.txt
- B. chown dan:staff file.txt
- C. chown -u dan -g staff file.txt
- D. chown dan -g staff file.txt
Answer: B
NEW QUESTION 7
Which of the following shell redirections will write standard output and standard error output to a file named filename?
- A. 2>&1 >filename
- B. >filename 2>&1
- C. 1>&2>filename
- D. >>filename
- E. 1&2>filename
Answer: B
NEW QUESTION 8
Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?
- A. *
- B. -
- C. s
- D. x
Answer: D
NEW QUESTION 9
CORRECT TEXT
Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics. (Specify ONLY the command without any path or parameters.)
- A.
Answer: netstat/bin/netstatss/usr/bin/ss
NEW QUESTION 10
Where are user specific crontabs stored?
- A. In the database file /etc/crontab.db which is shared by all users.
- B. As individual per-user files within /var/spool/cron.
- C. As individual per-user files in /etc/cron.user.d.
- D. In the .crontab file in the user's home directory.
- E. In the file /var/cron/user-crontab which is shared by all users.
Answer: B
NEW QUESTION 11
Which of the followingcommand sets the Bash variable named TEST with the content FOO?
- A. set TEST="FOO"
- B. TEST = "FOO"
- C. var TEST="FOO"
- D. TEST="FOO"
Answer: D
NEW QUESTION 12
CORRECT TEXT
Which option to the yum command will update the entiresystem? (Specify ONLY the option name without any additional parameters.)
- A.
Answer: updateupgrade
NEW QUESTION 13
CORRECT TEXT
Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)
- A.
Answer: swapoff/sbin/swapoff
NEW QUESTION 14
Creating a hard link to an ordinary file returns an error. What could be the reason for this?
- A. The source file is hidden.
- B. The source file is read-only.
- C. The source file is a shell script.
- D. The source file is already a hard link.
- E. The source and the target are on different filesystems.
Answer: E
NEW QUESTION 15
Which of the following commands connects to the remote host example.com which has OpenSSH listening on TCP port 2222? (Choose TWO correct answers.)
- A. ssh --port 2222 example.com
- B. ssh -p 2222 example.com
- C. ssh -o Port=2222 example.com
- D. ssh -o GatewayPort=2222 example.com
- E. ssh example.com:2222
Answer: BC
NEW QUESTION 16
In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)
- A. cat /proc/self/mounts
- B. free
- C. mount
- D. lsmounts
- E. cat /proc/filesystems
Answer: AC
NEW QUESTION 17
Which of the following commands lists all defined variables and functions within Bash?
- A. env
- B. set
- C. env -a
- D. echo $ENV
Answer: B
NEW QUESTION 18
What is true about the file /etc/localtime?
- A. It is a plain text file containing a string such as Europe/Berlin.
- B. It is created and maintained by the NTP service based on the geolocation of the system's IP address.
- C. It is a symlink to /sys/device/clock/ltime and always contains the current local time.
- D. It is either a symlink to or a copy of a timezone information file such as/usr/share/zoneinfo/Europe/Berlin.
Answer: D
NEW QUESTION 19
Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)
- A. The list of users that belong to the group.
- B. The home directory of the group.
- C. The name of the group.
- D. The description of the group.
- E. The password of the group.
Answer: ACE
NEW QUESTION 20
What is NOT contained in the locale setting of the operating system?
- A. currency symbol
- B. language
- C. timezone
- D. thousands separator
Answer: C
NEW QUESTION 21
CORRECT TEXT
The 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.)
- A.
Answer: /etc/nologin
NEW QUESTION 22
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
NEW QUESTION 23
Which of the following commands can remove a user from a group?
- A. grouprm
- B. groupmod
- C. passwd
- D. usergroups
- E. usermod
Answer: E
NEW QUESTION 24
What is the purpose of the Filesystem Hierarchy Standard?
- A. It is a security modelused to ensure files are organized according to their permissions and accessibility.
- B. It provides unified tools to create, maintain and manage multiple filesystems in a common way.
- C. It defines a common internal structure of inodes for all compliant filesystems.
- D. It is a distribution neutral description of locations of files and directories.
Answer: D
NEW QUESTION 25
CORRECT TEXT
How many IP-addresses can be used for unique hosts inside the IPv4 subnet
192.168.2.128/28? (Specify the number only without any additional information.)
- A.
Answer: 14
NEW QUESTION 26
Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?
- A. 0 * * * 30 myscript
- B. 30 * * * 6 myscript
- C. 30 0 * * 0 myscript
- D. 30 0-23 * * 0 myscript
- E. 0 0-23 * * 30 myscript
Answer: D
NEW QUESTION 27
When the command echo $$ outputs 12942, what is the meaning of 12942?
- A. It is the process ID of the echo command.
- B. It is the process ID of the current shell.
- C. It is the process ID of the last command executed.
- D. It is the process ID of the last command which has been placed in the background.
Answer: B
NEW QUESTION 28
CORRECT TEXT
What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)
- A.
Answer: menu.lstgrub.confgrub.cfg
NEW QUESTION 29
Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed? (Choose TWO correct answers.)
- A. ext3
- B. JFS
- C. ext2
- D. XFS
- E. procfs
Answer: AC
NEW QUESTION 30
Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)
- A. --from=
- B. --since=
- C. --until=
- D. --upto=
- E. --date=
Answer: BC
NEW QUESTION 31
......
P.S. Simply pass now are offering 100% pass ensure LFCS dumps! All LFCS exam questions have been updated with correct answers: https://www.simply-pass.com/Linux-Foundation-exam/LFCS-dumps.html (260 New Questions)