sys admin 1

Ace your homework & exams now with Quizwiz!

Which command is used to return to the current user's home directory, assuming that the current working directory is /tmp and their home directory is /home/user?

cd

Which directory contains persistent, system-specific configuration data?

/etc

Which directory contains the shell scripts to run daily?

/etc/cron.daily

Which item or file represents the location of the local group information?

/etc/group

Which file does the consultant1 group own? extra

app1.log

Which pattern matches only file names with at least three characters?

???*

Which item helps to register the system to Red Hat Subscription Management without a username and password?

Activation keys

Which state represents a process that is sleeping until some condition is met?

S

Which process does a parent use to duplicate its address space, and creates a child process?

fork

Which directory contains regular commands and utilities?

/usr/bin

Which item or file represents the location of the user's personal files?

Home directory

Which item represents the program that provides the user's command-line prompt?

Login shell

Which file can the contractor1 user modify? extra

app2.log

Which pattern matches only file names that begin with "b"?

b*

Which of the following examples modifies a file's permissions and makes it executable?

chmod a+x filename

Which regular file does the operator1 user own and all users can read? extra

db1.conf

Which file can the operator2 user not read? extra

db2.conf

Which command displays the file systems with the mount points?

df

Which command provides an overview of the file-system mount points and the available free space in SI units?

df -H

Which command displays the disk usage report in human-readable format for the / home directory?

du -h /home

Which command displays the disk usage report in human-readable format for the /home directory?

du -h /home

Which Bash command is used to display the file type?

file

Which term describes an interface that provides a display for output and a keyboard for input to a shell session?

Terminal

What is the correct device file name for the third partition on the second virtio-blk disk that is attached to a virtual machine?

/dev/vdb3

Which item or file represents the location of the local user account information?

/etc/passwd

Which directory stores the certificates for Red Hat products when using entitlement certificates?

/etc/pki/product

Which directory is the administrative superuser's home directory?

/root

Which directory contains non-persistent process runtime data?

/run

Which directory accommodates the human-readable syslog files?

/var/log

Which file stores console messages about system startup?

/var/log/boot.log

Which file stores syslog messages about scheduled jobs?

/var/log/cron

Which file stores syslog messages about the mail server?

/var/log/maillog

Which log file stores most syslog messages, except for the ones about authentication, mail, scheduled jobs, and debugging?

/var/log/messages

Which log file stores syslog messages about security and authentication operations in the system?

/var/log/secure

Which address represents a valid IPv4 host address on the 192.168.1.0/24 network?

192.168.1.188 or 192.168.1.159

Which address does not represent a valid IPv6 address?

2001:db8::7::2

Which output redirection operator displays output to a terminal and discards all error messages?

2> /dev/null

What is the size, in bits, of an IPv4 address?

32 bits

In which order do the following events occur when managing a Red Hat Enterprise Linux system with Red Hat Insights? 1) Red Hat Insights analyzes system metadata to determine which issues and recommendations apply. 2) The Insights client uploads system metadata to the Red Hat Insights service. 3) The administrator views the recommended actions in the Red Hat Insights customer portal. 4) The Insights client collects system metadata on the Red Hat Enterprise Linux system.

4, 2, 1, 3

Which Bash shortcut or command separates commands on the same line?

;

Which output redirection operator saves output to a file and discards all error messages?

> file 2> /dev/null

Which output redirection operator sends output to a file and sends errors to a different file?

> file 2> file2

Which output redirection operator sends output and errors to the same file and preserves the file content if it exists?

>> file 2>&1

Which item helps to register the system to Red Hat Subscription Management without a username and password?

Activation Key

Which term describes the part of the command line that specifies the target that the command should operate on?

Argument

Which files can the operator1 user delete?

Both db1.conf and db2.conf

Which two statements are benefits of open source software for the user? (Choose two.)

Code can survive the loss of the original developer or distributor. / You can learn from real-world code and develop more effective applications.

Which item represents a number that identifies the group at the most fundamental level?

GID

Which two statements describe the benefits of Linux? (Choose two.)

Linux is modular and can be configured as a full graphical desktop or a small appliance. / Linux includes a powerful and scriptable command-line interface, which enables easier automation and provisioning.

Which files can the operator2 user delete?

None of the files.

Which term describes the part of the command line that adjusts the behavior of a command?

Option

From which page in the Red Hat Insights console can you generate an Ansible Playbook to update the RPM packages on a system?

Patch → Systems

Which term describes the hardware display and keyboard to interact with a system?

Physical Console

Which Bash shortcut or command jumps to the beginning of the command line?

Pressing Ctrl+A

Which Bash shortcut or command copies the last argument of previous commands?

Pressing Esc+.

Which Bash shortcut or command is used for completing commands, file names, and options?

Pressing Tab

What is the fourth field of the /etc/passwd file?

Primary group

Which term describes the visual cue that indicates that an interactive shell is waiting for the user to type a command?

Prompt

Which GUI tool is used to register and subscribe a system?

Red Hat Subscription Manager

Which term describes the interpreter that executes commands that are typed as strings?

Shell

Which two statements are ways in which Red Hat develops products for the future and interacts with the community? (Choose two.)

Sponsor and integrate open source projects into the community-driven Fedora project. / Participate in upstream projects.

Which state represents a process that is stopped or suspended?

T

Grep is capable of using multiple regular expressions to filter text

True

Which item represents a number that identifies the user at the most fundamental level?

UID

Which term describes one of multiple logical consoles that can each support an independent login session?

Virtual Console

Which state represents a process that released all of its resources except its PID?

Z

Which pattern matches only file names where the first character is not "b"?

[!b]*

Which pattern matches only file names that begin with an uppercase letter?

[[:upper:]]*

Which command changes the working directory up two levels from the current location?

cd ../..

Which command changes the working directory to /tmp if the current working directory is /home/student?

cd ../../tmp

Which Bash shortcut or command displays the list of previously executed commands?

history

Which command do you use to register a client to Red Hat Insights?

insights-client --register

Which term determines how many leading bits in the IP address contribute to its network address?

netmask

Which command displays the absolute path name of the current location?

pwd

Which Bash shortcut or command re-executes a specific command in the history list?

!number

Which output redirection operator discards all messages that are normally sent to the terminal?

&> /dev/null

Which output redirection operator sends both output and errors to a file, creating it or overwriting its contents?

&> file

Which pattern matches only file names that contain a number?

*[[:digit:]]*

Which directory contains user home directories?

/home

A bash script is compiled

False

Which term describes the name of a program to run?

Command

Which directory contains installed software programs and libraries?

/usr

Which pattern matches only file names that end with "b"?

*b

Which pattern matches all file names that contain a "b"?

*b*

Which number is the size, in bits, of an IPv6 address?

128

Which directory is the top of the system's file-system hierarchy?

/

Which directory contains files to boot the system?

/boot

Which directory contains system files to access hardware?

/dev

What is the device file name of an entire SATA hard drive in the /dev directory?

/dev/sda

Bash scripts must end with the .sh file extension.

False

Which command returns you to the working directory before the current working directory?

cd -

Which command changes the working directory to the parent of the current location?

cd ..

Which command lists files in the current location, with a long format, and including hidden files?

ls -al

Which term refers to the ability of one system to send traffic to a special IP address that multiple systems receive?

multicast

Which Bash command is used to change a user's password?

passwd

Which service sorts and organizes syslog messages into files in /var/log?

rsyslog

Which systemd unit regularly triggers the cleanup of temporary files.

systemd-tmpfiles-clean.timer

Which Bash command displays the last five lines of the /var/log/messages file?

tail -n 5 /var/log/messages

Which command creates an empty file called helloworld.py in the user home directory, assuming that your current directory is /home?

touch ~/helloworld.py

Which output redirection operator sends output to both the screen and a file at the same time?

| tee file


Related study sets

Class Eight Chapter 5 ACTUAL Prep U

View Set

Difficult grains to milliliter dosage prob

View Set

Capítulo 3: Medio ambiente externo y cultura

View Set

Chapter 30: Atraumatic Care of Children and Families 5-8

View Set

Exam Fx-Property and Casualty Exam

View Set

Chapter 23 Microbiology Learn Smart

View Set