RHEL Linux - Red Hat System Administration 1

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

For tar to be able to archive the selected files, it is mandatory that the user executing the tar command to be able to ______ the file(s) A: read B: write C: execute D: link

A: read

Which of the following is not a mode in Vim? A: executive B: extended C: insert D: command

A: executive

Which wild card pattern can be used to match any string of zero or more characters? A: * B: ? C: ~ D: #

A: *

What command do you use if you wanted to kill all processes for the user luke? A: killall -9 -u luke B: kill luke C: pgreg -l -u luke D: userdel luke

A: killall -9 -u luke

A keyword search of man pages is performed using: A: man -k keyword B: man -s keyword C: man keyword D: man keyword search

A: man -k keyword

_____ is a distributed network of servers that maps host names to IP addresses A: HTTP B: DNS C: NAT D: SMTP

B: DNS

-v or verbosity would be useful with the tar command if you wanted to see: A: how many verbs are in the archive B: the exact number of files in an archive C: which files get added to or extracted from the archive D: none of the above

C: which files get added to or extracted from the archive

If the developer included documentation for the application; When the package is installed, files recognized as documentation are moved to _____: A: /usr/share/doc/packagename B: /home/packagename C: /root/share/doc/packagename D: /lib64/packagename

A: /usr/share/doc/packagename

RedHat Insights currently provides predictive analytics and recommendations for which RedHat Products? A: All of these B: RHEL 6.4 and up C: RedHat Virtualization 4 and later D: RedHat OpenStack Platform 7 and later

A: All of these

The command used to change permissions from the command line is _____ A: chmod B: chgrp C: chage D: modify

A: chmod

A ______ is a text-based interface which can be used to input instructions to a computer system? A: command line B: display C: argument D: option

A: command line

When first opened, Vim starts in: A: command mode B: insert mode C: visual mode D: extended mode

A: command mode

In regards to man page references, passwd(1) describes the command to change passwords, while passwd(5) explains the /etc/passwd _____ A: file format for storing local user accounts B: file format for storing user passwords C: file format for storing password policies D: none of the above

A: file format for storing local user accounts

What will this command do? journalctl -p err A: filter the output of the journalctl command to only list any log entry with Non-critical error condition or above B: filter the output of the journalctl command to only list any log entry with system unusable severity C: filter the output of the journalctl command to only list any log entry with debug messages D: filter the output of the journalctl command to only list any log entry with warnings

A: filter the output of the journalctl command to only list any log entry with Non-critical error condition or above

Users can authenticate ssh logins without a password by using A: public key authentication B: ip addresses only C: sudo D: none of the above

A: public key authentication

In a ps output, how do you identify a scheduled kernel thread? A: the command/process name is in brackets B: it is the only process that has a questions mark in the TTY column C: there will always be a k in the STAT column D: none of the above

A: the command/process name is in brackets

A _______ is one of multiple logical consoles that can each support an independent login session A: virtual console B: command C: shell D: none of the above

A: virtual console

-rw-rw-r-- bart simpson file1 Which of the following is true about the output? A: simpson has user owership over file1 B: user bart can read, write, and excecute C: others can view the contents of file1, but can't execute or write D: group bart can read and write

C: others can view the contents of file1, but can't execute or write

Which command is used to test connectivity only? A: traceroute B: ip C: ping D: route

C: ping

To view process information, use the ______ command? A: who B: proc C: ps D: CID

C: ps

The _____ accunt on Linux is roughly equivalent to the local Administrator account on Windows A: regular user B: system user C: root D: there is no such account

C: root

If two files or directories are similar between two systems and you only wish to copy the differences between the systems, which command is the best to use in this situation? A: sftp B: scp C: rsync D: ftp

C: rsync

The _____ command transfers files from a remote host to the local system or from the local system to a remote host A: > B: cp C: scp D: mv

C: scp

The _____ command allows a user to be permitted to run a command as root, or as another user A: force B: superuser C: sudo D: passwd

C: sudo

One of the oldest and most common commands for creating and working with backup archives is the ______ command A: bzip2 B: gzip C: tar D: ncompress

C: tar

The GID range used when a new group is added to the Linus OS is dictated by: A: the /etc/passwd file B: the /etc/group file C: the /etc/login.defs file D: the /etc/sudoers file

C: the /etc/login.defs file

The ____ program is a dynamic view of the system's processes, displaying a summary header followed by a process or thread list similar to ps information A: proc B: tree C: top D: jobs

C: top

If you wanted to search for the string "recursive" while in a man page, you would: A: press q B: press s until you find recursive C: type /recursive and then press enter D: press i

C: type /recursive and then press enter

So, ______ permissions override ______ permissions, which override ______ permissions A: others; group; user B: group; others; user C: user; group; others D: user; others; group

C: user; group; others

The ____ command is used by the superuser, root, to create additional users on the system A: makesuer B: userconfig C: useradd D: passwd

C: useradd

What does it mean when the state of a service is "static"? A: not running B: will be started at boot time C: will not be started a boot time D: can not be enabled, but may be started by an enabled unit automatically

D: can not be enabled, but may be started by an enabled unit automatically

If you wanted to change the user ownership of a directory named Rosters and all of its contents to the user jim, what is the appropriate command? A: chmod jim Rosters B: chown jim Rostrs C: chmod -R jim Rosters D: chown -R ji Rosters

D: chown -R jim Rosters

The _____ application is a full-featured text editor for the GNOME desktop environment? A: vi B: Vim C: nano D: gedit

D: gedit

Which text editor requires a graphical user interface (GUI) to launch successfully? A: vim B: vi C: nano D: gedit

D: gedit

The command su without a target user means you want to______? A: login as a regular user B: login as a system user C: change the working directory of the current user D: login as the root user

D: login as the root user

Which command can be used to restore a deleted file? A: restore B: recover C: unrm D: none of the above

D: none of the above

_____ is process - or system-specific contents or attributes cleared during reboot. A: static B: dynamic C: persistent D: runtime

D: runtime

If you wanted to check the status of the ssh daemon which command would you use? A: systemd status sshd.service B: systemd status sshd.daemon C: systemctl status sshd.daemon D: systemctl status sshd.service

D: systemctl status sshd.service

In a pipeline, ________ will copy its standard input to its standard output and will also redirect its standard output to the files named as arguments to the command A: > B: < C: | D: tee

D: tee

The ______ command shows an overview of the current time-related system settings, including current time, time zone, and NTP synchronization settings of the system A: date B: who C: cal D: timedatectl

D: timedatectl

A child process signals its parent as it exits. All resources for the process identity (PID) are released. Which process state is this a description of? A: running B: sleeping C: stopped D: zombie

D: zombie

Which process state means the process has stopped? A: T B: S C: Z D: X

A: T

_____ is a web-based management interface for RHEL8 designed for managing and monitoring services A: Web Console B: Red Hat Support Tool C: Red Hat Customer Support D: Cabin

A: Web Console

The useradd command is used to ___________ A: add a user to the /etc/passwd file B: add a group to the /etc/group file C: add a user to the superusers list D: none of the above

A: add a user to the /etc/passwd file

Which command will allow the atd service to start at boot if it is not already configured that way? A: sudo systemctl enable atd B: sudo ctlsystem disable atd C: sudo service atd disable D: sudo systemctl atd enable

A: sudo systemctl enable atd

The _____ command scans the beginning of a file's contents and displays what type it is A: cat B: head C: more D: file

D: file

What command can be used to change the password policies for a user? A: chage B: changeage C: passwd D: none of these, you must edit a file to achieve this

A chage

What does the fourth field of the /etc/passwd file identify? A: native shell B: primary group C: supplemantary D: sudo

B: primary group

Services may be started as _____ of other services A: dependencies B: flags C: defuncts D: processes

A: dependencies

What does the /dev/sda1 refer to in a Linux file system? A: first disk, first partition B: second disk, first partition C: first disk, second partition D: second disk, second partition

A: first disk, first partition

The _______ command searches a pregenerated database for file names or file paths and returns the results instantly A: locate B: find C: which D: grep

A: locate

If you want to delete a directory that is empty, which command should you use? A: rmdir B: rmdir -r C: rm -r D: rm

A: rmdir

Which special permission will allow a user to run an executable file (command) as the user (ownership) of the file and not the user that ran the command? A: setuid B: setgid C: stickybit D: none of the above

A: setuid

If you want to create a remote interactive shell as the current user, the correct command is _____ A: ssh remotehost B: ssh remoteuser@remotehost C: ssh remoteuser@remotehost hostname D: none of the above

A: ssh remotehost

______ provides a method for activating system resources, server daemons, and other processes, both at boot time and on a running system A: systemd B: GRUB C: rescue mode D: sleeping

A: systemd

You can quit both pinfo & man programs by: A: the command q B: the command quit C: the command exit D: the command stop

A: the command q

If you wanted to search for packages that have the keyword 'web server' in the name and summary fields, you can run the command: A: yum search 'web server' B: yum install web-server C: yum provide web-server D: yum update web-server

A: yum search 'web server'

If a root user wants to verify that a user account is password-protected, the _____ file can be used to verify this A: /etc/passwd B: /etc/group C: /etc/login.defs D: /etc/shadow

D: /etc/shadow

Which of the following is the last step to install Red Hat Enterprise Linux virtual machine using the anaconda graphical interface? A: Provide the source location and operating system type B: Configure storage for this virtual machine C: Name the virtual machine and select an installation source D: Provide User Settings for a root password and a non-root account

D: Provide User Settings for a root password and a non-root account

Which one of these is not common protocol? A: SSH B: HTTPS C: NFS D: TCP

D: TCP

The _____ command allows subscribers to search and display knowledge base and other Red Hat Customer Portal content A: man B: aux C: none of these D: redhat-support tool

D: redhat-support tool

Which command can be used to remove a user from /etc/passwd, but leaves his/her home directory in place? A: userdel -r B: deleteuser C: userdel D: usermod -d

C: userdel

To see a list of users that are currently logged in, you can use the command _______ A: id B: su C: w D: whoami

C: w

To protect longer character strings in the BASH shell, use A: " B: " " C: " or " " D: none of the above

C: " or " "

The mount point for the removable medium is ___________ A: /run/media/<user>/<label> B: /mnt/media/<user>/<label> C: /dev/media/<user>/<label> D: none of the above

A: /run/media/<user>/<label>

Which log file is for related to periodically executed tasks? A: /var/log/cron B: /var/log/boot.log C: var/log/secure D: /var/log/maillog

A: /var/log/cron

To list repositories the yum package manager has access to, you can run the command A: yum repolist B: yum repo name C: yum grouplist D: yum list yum

A: yum repolist

The command 'ln -s' will create a A: link count B: soft link C: hard link D: time stamp

B: soft link

In regards to RPM naming, what does the term architecture refer to? A: the version of the package build B: the processor type required for a specific package C: the upstream source code version D: list of reasons for each package build

B: the processor type required for a specific package

Any command can be started in the background by appending the ____ to the end of the command line A: >> B: % C: & D: #

C: &

Once registered, the entitlement certificates are stored in ________ and its subdirectories A: /etc B: /etc/entitlements C: /etc/pki D: /ect/subscriptions

C: /etc/pki

A _____ is a new directory entry with a reference to an existing file on the file system A: softlink B: symbolic link C: hard link D: link count

C: hard link

The letter d in the service "atd" means what? A: the service is "disabled" B: the service is "defunct" C: it's a "daemon" program D: it's a dead" service

C: it's a "daemon" program

The process of adding a new file system to the existing directory tree is called ______. A: swapping B: partition C: formatting D: mounting

D: mounting

There are several reasons to update the kernel. What command should be used to install a new kernel? A: yum list kernel B: yum info kernel C: yum provides kernel D: yum update kernel

D: yum update kernel

This directory contains dynamic configuration data, such as FTP and websites. Choose the correct answer: A: / B: /home C: /root D: /var

D: /var

UID ____ is always assigned to the superuser account, root A: 500 B: 1000 C: 1 D: 0

D: 0

A IPv4 address is a _______ number, normally expressed in decimal as four octets ranging in value from 0 to 255, separated by dots A: 8 bit B: 128 bit C: 48 bit D: 32 bit

D: 32 bit

Which of the following commands will discard stderr error messages? A: list 2>> list_stderr B: list 2>list_stderr C: list 2>/dev/null D: >list 2>&1 list_stderr

C: list 2>/dev/null

If you want to create a system group using the groupadd command, which option should be used? A: -r B: -g C: -s D: -t

A: -r

chmod 770 produces what result on a file? A: -rwxrwx--- file B: -rw-rw-rw- file C: -rwxrw---- file D: -rwx----- file

A: -rwxrwx --- file

A list of well-known and registered ports can be found in the _____ file A: /etc/services B: /etc/ports C: /etc/well-known D: /etc/hosts

A: /etc/services

One way to have regular users become sudoers is to edit the settings in the ______ file A: /etc/sudoers B: /etc/wheel C: /etc/group D: etc/passwd

A: /etc/sudoers

Linux implements the _____ calculation as a representation or expected service wait times, not only for CPU but also for disk and network I/O A: active requests B: exponential moving average C: load average D: background processes

C: load average

If you want to create a system group using the groupadd command, which option should be used? A: -r B: -g C: -s D: -d

A: -r

yum install cowsay will do which of the following? A: installs the software package for cowsay B: install any dependencies for cowsay C: installs the software package for cowsay, including any dependencies D: none of the above

C: installs the software package for cowsay, including any dependencies

If you wanted to output only systemd journal messages that originate from the systemd process, what would the correct command be? A: journalctl _UID=1 B: journalctl _UID=1000 C: journalctl _PID=1 D: journalctl _PID=1000

C: journalctl _PID=1

When using the tar utility, which option (switch) is needed to list the contents of an archive? A: -c B: -t C: -x D: -l

B: -t

Which directory in the File System Hiearchy contains configuration files specific to this system? A: /usr B: /etc C: /var D: /run

B: /etc

Which directory is the File System Hiearchy contains home directory for the administrative superuser, root? A: /usr B: /root C: /var D: /boot

B: /root

Messages related to startup are logged in _____ A: /var/log/cron B: /var/log/boot.log C: /var/log/messages D: /maillog

B: /var/log/boot.log

The Linux version of ps supports three option formats. Which of the following can have grouped options and cannot be used with a dash? A: UNIX B: BSD C: POSIX D: BASH

B: BSD

The term OpenSSH refers to the software implementation of the _____ A: Super System Hardware B: Secure Shell C: SELinux Shell D: Secure System Host

B: Secure Shell

In regards to default permissions, the mkdir command creates new directories with A: all permissions set to read and write only B: all permissions set to read, write and execute C: only user ownership permission set to read, write and execute D: all permissions except others set to read, write and execute

B: all permissions set to read, write and execute

Which command allows the user to navigate or move up to the parent of the current location? A: cd../.. B: cd.. C: pwd D: cd

B: cd..

Which of these commands is equivalent to: chown :powerrangers mighty_morphin_file1 A: chown powerrangers mighty_morphin_file1 B: chgrp powerrangers mighty_morphin_file1 C: chown powerrangers: mighty_morphin_file1 D: chmod powerrangers mighty_morphin_file1

B: chgrp powerrangers mighty_morphin_file1

Which command will add the execute permission for everyone of file5? A: chmod u-rwx file5 B: chmod a+x file5 C: chmod u+r,g+w+w,o+x file2 D: none of the above

B: chmod a+x file5

'[root@serverX~]$ tar cjf /root/logbackup.tar.bz12 /var/log' What will this command do? A: create a gzip-compressed archive of /var/log B: create a bzip2-compressed archive of /var/log C: create a zip-compressed archive of /var/log D: create of noncompressed archive of /var/log

B: create a bzip2-compressed archive of /var/log

A ____ service will not be started automatically at boot or by other unit files, but can be started manually A: enabled B: disabled C: masked D: background

B: disabled

Each log message is categorized by a ___________ A: min and max B: facility and priority C: cause and effect D: start and stop

B: facility and priority

______ has a huge number of options that can be provided to describe exactly what kind of file should be found A: locate B: find C: which D: cron

B: find

In the command ls -al what attribute does the options display? A: long listing (not including hidden files) B: long listing and all files, including hidden files C: all files D: none of the above

B: long listing and all files, including hidden files

A ____ is a running instance of a launched, executable program A: swap B: process C: zombie D: none of the above

B: process

_____ allows a user to quickly complete commands or file names once they have typed enough at the prompt to make it unique A: workspaces B: tab-completion C: consoles D: bash

B: tab-completion

By default, the journal will not be allowed to get any larger than 10% of the file system it is on, or leave less than 15% of the file system free. These values can be tuned in A: /var/log/journal B: /run/log/journal C: /etc/systemd/journald.conf D: /etc/rsyslog.conf

C: /etc/systemd/journald.conf

______ are processes that wait or run in the background performing various tasks A: Zombies B: Kill signals C: Daemons D: PIDs

C: Daemons

Choose the best answer: Which of these is not a severity level in a Red Hat bug report? A: Low severity B: They all are possible severity levels C: Extreme severity D: Medium severity

C: Extreme severity

RedHat Insights categorizes the risks that an issue presents to your system. Which of these is not one of the categories? A: Impact B: Likelihood C: TotalRecall D: RiskofChange

C: TotalRecall

What is another name for Zombie processes? A: entering B: sleeping C: defunct D: none of the above

C: defunct

If you want to close a remote connection, other than shutting down the remote system you can use the command _____ A: close B: kill ssh C: exit D: none of the above

C: exit

A _____ is an organized structure of data-holding files and directories residing on a storage device, such as a physical disk or partition A: operating system B: kernel C: file system D: application

C: file system


संबंधित स्टडी सेट्स

completing the uniform residential loan application (URLA)

View Set

Beneficiaries and settlement options

View Set

Animation Assessment: Chemical Synapses

View Set

PSY 340 Chapter 11-16 Comprehension

View Set

6th grade Chapter 16, section 4-The Empire of Alexander the Great- Amazing, read this. Give me some hi 5s go to info and put Ur cusrer over the hi 5 thing

View Set