ucertify Post Assessment

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Which environment variable allows you to retrieve the numeric user ID value for the user account running a shell script?

$UID

You need to create a user account via the useradd utility. After checking this distribution's account creation configuration files, you discover that the HOME directive points to a different location than desired. Which useradd option will allow you to create the home in an alternative location?

-d

The ______ directory contains the various PAM configuration files.

/etc/pam.d/

What file should you place into console and terminal file names to prevent users from logging into the Linux system as the root user account from those locations?

/etc/securetty

The lsmod utility provides the same information as what other utility or file?

/proc/modules

The init program is started on a Linux system and has a process ID number. What typically is that process's ID number?

1

Annika puts the file line PS1="My Prompt: " into her account's $HOME/.bash_profile file. This setting changes her prompt the next time she logs into the system. However, when she starts a subshell, it is not working properly. What does Annika need to do to fix this issue?

Add export prior to PS1 on the same line in the file.

The user Hansen7o9 ran a script, Borg.sh, which tried to run another program but got a privilege error. What should you check first?

Check if Hansen7o9 has the privileges to run the other program by viewing its permissions.

Which software package allows developers to deploy applications using the exact same environment in which they were developed?

Docker

Each correct answer represents a complete solution. Choose all that apply.

It is used by UFW. It is used by firewalld It is used by iptables. It provides code hooks into the Linux kernel for firewall technologies to use.

Which of the following allows both clients and servers to share a common naming directory?

NIS

Which of the following describes the difference between the ACL rule settings of reject and drop?

Reject sends a denial message, and drop does not, but both block the packet.

What can you do to limit an SFTP server program from allowing users to access system files?

Run it in a chroot jail

What type of cloud service provides the full application environment so that everyone on the Internet can run it?

SaaS

Which of the following should you choose if you need an orchestration system (also called an engine) for your company?

Swarm Kubernetes

You are troubleshooting a problem with a user's graphical user interface, which is being served by X11. You notice that the XDMCP is being used as the display manager. What does this implicate?

The XDMCP is used for the user authentication interface.

You desire to see which Git branch is currently employed. You issue the git branch command to see all the project branches. How do you tell which one is current?

The branch with an asterisk by it is current.

Which of the following commands should you employ for disk space problems?

The du and df commands

Which of the following are ways to identify that a text file is hard-linked to another file?

The file shares the same data with another file. The file has a link count greater than 1. The file shares an inode number with another file.

What drive and partition do the raw device file /dev/sdb1 reference?

The first partition on the second SCSI storage device

Which of the following are true about the Unity desktop environment?

The following are true about the Unity desktop environment: Nautilus is the default file manager for Unity. Unity uses LightDM as its display manager.

Which of the following are used in container orchestration?

The following concepts are used in container orchestration: Automated configuration management Self-healing Agentless monitoring Build automation

What operator redirects output to another program?

The pipe symbol (|) redirects the output

How would you fix a "mount point does not exist" problem?

Use super user privileges, if needed, and create the directory via the mkdir command.

If you do not tack on the -m option with an argument to the git commit command, what will happen?

You are placed in an editor for the COMMIT_EDITMSG file.

You are auditing an old SysVinit system and checking the status of each service that runs on the system. When you decide to check the DHCP service, using the command chkconfig dhcp on the command line, you get no response. What does this mean?

You need to issue an additional command.

The command echo "a b c d" | gawk '{print $1}' is issued at the command line. What will be displayed?

a

The iwconfig command

allows you to set and display the configuration settings for a wireless network card but doesn't list all of the available wireless networks the card detects.

You want to view detailed information about your system's memory. Which command should you use?

cat /proc/meminfo

The $UID environment variable

contains the numeric user ID value of the user account running the shell script.

What command can you use to list the hosts defined on a domain?

dig

The /etc/cron.deny

file prevents users from scheduling jobs, not logging in as the root user account.

The /etc/login.warn and /etc/motd

files contain messages that are displayed at login time; they don't block users from logging in as the root user account.

You need to locate files within the /tmp directory or one of its subdirectories. These files should be empty. Assuming you have superuser privileges, what command should you use?

find /tmp -empty

Which of the following are stream editors?

gawk awk sed

. The localectl command

is a systemd command but used to set localization, not retrieve time.

A user goes to merge PDF files using the /usr/bin/pdfunite utility and it does not work. You recently updated the system and suspect the application had a library get updated. Before searching the package management log files for the updated library names, you must find the libraries used by this utility. What command should you issue?

ldd /usr/bin/pdfunite

The iwlist command

lists all of the wireless networks detected by the wireless network card installed on the system.

The parted, fdisk, and gparted

partition tools don't work on GPT indexed hard drives.

What command-line commands allow you to send process signals to running applications?

pkill and kill commands

Which of the following utilities can be used to unload a kernel module?

rmmod modprobe

cron table format specifies

script by the minute, hour, day of the month, month, and day of the week.

When using an SSH agent for authentication, what command is used to add a key to the agent session?

ssh-add

You need to set a watch on the /var/log/secure file. Using super user privileges, which command should you employ?

tail -f /var/log/secure

Which of the following can be used as backup utilities?

tar dd zip rsync

Which of the following sections would you find in a systemd service unit file?

they are [Unit], [Service], and [Install].

What systemd command should you use to retrieve the time from the workstation or server hardware?

timedatectl

gdisk tool allows you

to partition both standard and GPT indexed hard drives

Which directories contain dynamic files that display kernel and system information?

uses the /proc and /sys

A system admin created an archive file using the tar utility and employed an option to apply compression automatically to the file. The system admin used an archive file extension of .txz. Which compression utility did the system admin claim the tar utility used?

xz


Set pelajaran terkait

N2532 Exam 3 (renal/reproductive)

View Set

Dred Scott and the Slavery Debate Cohort 6

View Set

Chapter 4: The Chemical Bases of Life Study Guide

View Set

Chapter 35: The Adolescent and Family Perry: Maternal Child Nursing Care

View Set

2.4- Problem 1: The Eye and the Visual System

View Set