Free SCA_SLES15 Exam Braindumps (page: 1)

Page 1 of 18

Which statements about using the -U option and the -F option when running the rpm command are true? (Choose two)

  1. The -U option will install a package whether or not a previous version of the package is already installed.
  2. The -F option will install a package whether or not a previous version of the package is already installed.
  3. The -U option remove all binaries, scripts, links, and documentation files associated with the RPM in the RPM Database.
  4. The -F option will verify (fix) a broken application based on the information in the RPM Database.
  5. The -U option will remove all the binaries in the package from the file system and update the RPM Database.
  6. The -F option will install a package only if a previous version of the package is already installed.

Answer(s): A,F

Explanation:

The -U option will install a package whether or not a previous version of the package is already installed. If a previous version exists, it will be upgraded. The -F option will install a package only if a previous version of the package is already installed. It will not install a new package.


Reference:

https://documentation.suse.com/sles/15-SP3/html/SLES-all/cha-sw-cl.html#sec-rpm-commands



You are working at a terminal window of a server at the office, but you want to continue this work by remotely accessing the terminal session from your home office.
Which command will you need to use to accomplish this?

  1. screen
  2. bg
  3. -tty-release
  4. Ctrl-fa, r
  5. bg -term disconnect

Answer(s): A

Explanation:

The screen command will allow you to create and manage multiple terminal sessions that can be detached and resumed later. You can use the screen command to start a new session, then detach it with Ctrl-a d, and reattach it from another location with screen -r.


Reference:

https://documentation.suse.com/sles/15-SP3/html/SLES-all/cha-screen.html



What is the first file executed by a bash login shell?

  1. /etc/profile
  2. /etc/profi le.alias
  3. -/profile
  4. -/.alias
  5. /etc/bash

Answer(s): A

Explanation:

When Bash is invoked as an interactive login shell, or as a non-interactive shell with the -- login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.

The first file executed by a bash login shell is /etc/profile. This file sets global environment variables and aliases for all users. It may also source other files in /etc/profile.d/ directory.


Reference:

https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
https://documentation.suse.com/sles/15-SP3/html/SLES-all/cha-bash.html#sec-bash-startup



Which Vim command will save the current file without exiting?

  1. q!
  2. w-no-exit
  3. wq!
  4. w
  5. w!

Answer(s): D

Explanation:

Save a File in Vim / Vi #

The command to save a file in Vim is :w.

To save the file without exiting the editor, switch back to normal mode by pressing Esc, type :w and hit Enter.

The w command will save the current file without exiting Vim. It stands for write. The other commands are either invalid or will exit Vim after saving.


Reference:

https://linuxize.com/post/how-to-save-file-in-vim-quit-editor/
https://documentation.suse.com/sles/15-SP3/html/SLES-all/cha-vim.html#sec-vim-save



Page 1 of 18



Post your Comments and Discuss SUSE SCA_SLES15 exam with other Community members:

Hua Gong commented on May 28, 2024
Q19: https://documentation.suse.com/smart/network/html/ntp-time-synchronization/index.html Configuring NTP by adjusting /etc/chrony.conf
NEW ZEALAND
upvote

B commented on March 05, 2024
Q11: The name of the system logging facility is "syslog". https://www.rsyslog.com/doc/configuration/modules/pmnull.html#syslogfacility
HUNGARY
upvote

w commented on December 11, 2023
Question 20: Answer A is wrong. Should be "man cp"
POLAND
upvote

w commented on December 11, 2023
Answer to Q11 is wrong. RSYSLOG, not syslog-ng
POLAND
upvote

kagiso commented on October 19, 2023
this might come handy
Anonymous
upvote