Red Hat Administration RH124 Midterm Review

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

Which of the following commands would you use from top to change the priority of a process? a. r b. n c. c d. k

a. r

Which command shows all service unit files on your system that are currently loaded? a. systemctl --type-service b. systemctl --type-service --all c. systemctl --list-services d. systemctl --show-units | grep services

a. systemctl --type-service

The apropos list command produces the same results as which command below? a. man -j list b. man -k list c. man -l list d. man -m list

b. man -k list

Which Bash shortcut or command separates commands on the same line? a. Pressing Tab b. history c. ; d. !string

c. ;

Which answer sends output and errors to the same file ensuring existing file content is preserved? a. >file 2>file2 b. &>file c. >>file 2>&1 d. >>file 1>&1

c. >>file 2>&1

Which answer sends both output and errors to a file, creating it or overwriting its contents? a. | tee file b. 2 &>file c. 1 &>file d. &>file

d. &>file

Which directory contains dynamic data, such as for databases and websites? a. /etc b. /run c. /usr d. /var

d. /var

Which command will always change the working directory up two levels from the current location? a. cd ~ b. cd ../ c. cd -u2 d. cd ../..

d. cd ../..

Which command is used to change password age parameters? a. chown b. change c. agechange d. chage

d. chage

Which Bash shortcut or command displays the list of previous commands? a. Pressing Tab b. !string c. !number d. history

d. history

Which command lists files in the current location, using a long format, and including hidden files? a. llong ~ b. ls -a c. ls -l d. ls -al

d. ls -al

What is the fourth field of the /etc/passwd file? a. home directory b. UID c. login shell d. primary group

d. primary group

Which file cannot be read by the operator2 user? a. lfile1 b. lfile2 c. rfile1 d. rfile2

d. rfile2

What are some good reasons for using Linux in a corporate environment? (Choose all that apply.) a. Linux software is unlikely to become abandoned by its developers. b. Linux is secure and has a lower total cost of ownership than other operating systems. c. Linux is widely available for many platforms and supports many programming languages. d. Most Linux software is closed source.

a, b, and c

Which pattern will match only filenames beginning with "b"? a. b* b. *b c. *b* d. [!b]*

a. b*

Which of the following commands is most appropriate if you are looking for detailed information about the command and how it was started? a. ps ef b. ps aux c. ps d. ps fax

a. ps ef

In the symbolic method of changing file permissions the letter u is used to represent? a. user b. group c. other d. all

a. user

Which answer discards all messages normally sent to the terminal? a. >file 2>file2 b. &>/dev/null c. &>/dev/null 2>file d. &>file

b. &>/dev/null

Which term describes one of multiple logical consoles that can each support an independent login session? a. Physical Console b. Virtual Console c. Shell d. Terminal

b. Virtual Console

Which command displays the absolute path name of the current location? a. cd b. pwd c. ls ~ d. ls -d

b. pwd

Which term describes the interpreter that executes commands typed as strings? a. Command b. Console c. Shell d. Terminal

c. Shell

Which pattern will match only filenames that begin with an uppercase letter? a. ^?* b. [upper]* c. [[:upper:]]* d. [[CAP]]*

c. [[:upper:]]*

Which command will change the working directory to /tmp if the current working directory is /home/student? a. cd tmp b. cd .. c. cd ../../tmp d. cd ~tmp

c. cd ../../tmp

Which answer sends output to both the screen and a file at the same time? a. &>/dev/null b. >file 2>file2 c. | tee file d. | < file

c. | tee file

Which item or file represents the location of the local group information? a. home directory b. /etc/passwd c. /etc/GID d. /etc/group

d. /etc/group

Which directory is the administrative superuser's home directory? a. /etc b. / c. /home/root d. /root

d. /root

Which term describes the visual cue that indicates an interactive shell is waiting for the user to type a command? a. Argument b. Command c. Option d. Prompt

d. Prompt

Which term describes an interface that provides a display for output and a keyboard for input to a shell session? a. Console b. Virtual Console c. Shell d. Terminal

d. Terminal

Which pattern will match only filenames where the first character is not "b"? a. b* b. *b c. *b* d. [!b]*

d. [!b]*

Which two of the following are ways in which Red Hat develops their products for thefuture and interacts with the community? (Choose two.) a. Sponsor and integrate open source projects into the community-driven Fedora project. b. Develop specific integration tools only available in Red Hat distributions. c. Participate in upstream projects. d. Repackage and re-license community products.

a and c

Using the numeric method to change permissions chmod 644 sample file would result in permissions of? a. -rw-r--r-- b. -rw--w-r-- c. -r--r--r-- d. -r--r--rw-

a. -rw-r--r--

Which command updates the man database? a. mandb b. dbman c. managedb d. add-db

a. mandb

In Vim, which keystroke enters extended command mode? a. i b. v c. : d. Esc

c. :

Which regular file is owned by operator1 and readable by all users? a. lfile1 b. lfile2 c. rfile1 d. rfile2

c. rfile1

Info documentation is: (Choose Two) a. comprehensive b. otimized for printing c. hyperlinked d. inflexable

a and c

Which pattern will match only filenames at least three characters in length? a. ???* b. ??? c. \3* d. +++*

a. ???*

Which state represents a process that has released all of its resources except its PID? a. Z b. D c. R d. T

a. Z

In Vim, which keystroke enters insert mode? a. i b. Esc c. e d. :

a. i

In Vim, which keystroke enters visual mode? a. v b. i c. p d. Esc

a. v

Which of the following is not generally considered a type of process? (Choose Two) a. A shell job b. A cron job c. A daemon d. A thread

b and d

Which of the following commands cannot be used to send signals? a. kill b. mkill c. pkill d. killall

b. mkill

Which answer displays output to a terminal and ignores all errors? a. &>file b. 2> &>file c. 2>/dev/null d. 1>/dev/null

c. 2>/dev/null

Which item represents a number that identifies the group at the most fundamental level? a. primary group b. UID c. GID d. groupid

c. GID

Which state represents a process that is sleeping until some condition is met? a. D b. R c. S d. Z

c. S

Which item or file represents the location of the local user account information? a. /etc/passwd b. home directory c. /etc/UID d. /etc/group

a. /etc/passwd

Which directory contains temporary files? a. /tmp b. /trash c. /run d. /var

a. /tmp

Which key combination enables you to cancel a current interactive shell job? a. Ctrl-C b. Ctrl-D c. Ctrl-Z d. Ctrl-Break

a. Ctrl-C

To display the directory of topics in info user the __ key. a. D b. B c. T d. C

a. D

To search for a string in man pages precede the term with a a. Forward Slash / b. Back Slash \ c. Colon : d. Question mark ?

a. Forward Slash /

Linux was developed by __________ to resemble the _________ operating system. a. Linus Torvalds, MINIX b. Linux Torvalds, GNU c. Richard Stallman, GNU d. Richard Stallman, MINIX

a. Linus Torvalds, MINIX

Use this key to display the next node (chapter) in topic using info pages. a. N b. X c. T d. E

a. N

To scroll forward (down) one screen in man pages use the ____ key a. PageDown b. PageUp c. DownArrow d. UpArrow

a. PageDown

Which Bash shortcut or command jumps to the beginning of the command line? a. Pressing Ctrl+A b. Pressing Ctrl+K c. Pressing Ctrl+LeftArrow d. !string

a. Pressing Ctrl+A

Which Bash shortcut or command jumps to the beginning of the previous word on the command line? a. Pressing Ctrl+LeftArrow b. Pressing Ctrl+K c. Pressing Ctrl+A d. !number

a. Pressing Ctrl+LeftArrow

Which Bash shortcut or command is used to clear characters from the cursor to the endof the command line? a. Pressing Ctrl+LeftArrow b. Pressing Ctrl+K c. Pressing Ctrl+A d. Pressing Esc+.

b. Pressing Ctrl+K

Which item represents a number that identifies the user at the most fundamental level? a. primary user b. UID c. GID d. username

b. UID

Which command will always change the working directory to the parent of the current location? a. cd ~ b. cd .. c. cd ../.. d. cd -u1

b. cd ..

Which command will always change the working directory to /bin? a. cd bin b. cd /bin c. cd ~bin d. cd -bin

b. cd /bin

Which process does a parent use to duplicate to create a new child process? a. exec b. fork c. zombie d. syscall

b. fork

Which command is used to switch users? a. sudo b. su c. switch d. root

b. su

Which directory contains persistent, system-specific configuration data? a. /etc b. /root c. /run d. /usr

a. /etc

Which answer sends output to a file and sends errors to a different file? a. >file 2>file2 b. >file 1>file2 c. >file &2>file2 d. | tee file

a. >file 2>file2

Which pattern will match only filenames ending with "b"? a. b* b. *b c. *b* d. [!b]*

b. *b

To scroll forward (down) one line in man pages use the ____ key a. PageDown b. Spacebar c. DownArrow d. D

c. DownArrow

Which item represents the program that provides the user's command-line prompt? a. primary shell b. home directory c. login shell d. command name

c. login shell

Which command is used to add a user? a. usermod b. adduser c. useradd d. add-user

c. useradd

Which two of the following are benefits of open source software for the user? (Choosetwo.) a. Code can survive the loss of the original developer or distributor. b. Sensitive portions of code are protected and only available to the original developer. c. You can learn from real-world code and develop more effective applications. d. Code remains open as long as it is in a public repository but the license may change when included with closed source software.

a and c

Which term describes the part of the command line that specifies the target that the command should operate on? a. Argument b. Command c. Option d. Prompt

a. Argument

How do man pages reference different sections? a. By placing the section number in parentheses b. By placing the section number in single quotes c. By placing the section number in brackets d. By placing the section number in double quotes

a. By placing the section number in parentheses

Which term describes the hardware display and keyboard used to interact with a system? a. Physical Console b. Virtual Console c. Shell d. Terminal

a. Physical Console

Which command is used to return to the current user's home directory, assuming the current working directory is /tmp and their home directory is /home/user? a. cd b. cd .. c. cd * d. cd /home

a. cd

Which command will always return you to the working directory used prior to the current working directory? a. cd - b. cd -p c. cd ~ d. cd ..

a. cd -

Which item or file represents the location of the user's personal files? a. home directory b. login shell c. /etc/passwd d. /etc/group

a. home directory

Which file has a group ownership of consultant1? a. lfile1 b. lfile2 c. rfile1 d. rfile2

a. lfile1

Which command enables you to find the correct man page based on keyword usage? a. man -k b. man -l c. man -o d. man -a

a. man -k

Many types of software are available today. Which type of software does Linux represent? a. open source software b. closed source software c. freeware d. shareware

a. open source software

Which of the following are characteristics of Open Source Software? (Choose all that apply.) a. The value of the software is directly related to its price b. The software is developed collaboratively c. The source code for software is available for a small fee. d. Any bugs are fixed quickly.

b and d

Which two statements describe the benefits of Linux? (Choose two.) a. Linux is developed entirely by volunteers making it a low cost operating system. b. Linux is modular and can be configured as a full graphical desktop or a small appliance. c. Linux is locked in a known state for a minimum of one year for each release, making it easier to develop custom software. d. Linux includes a powerful and scriptable command-line interface, enabling easier automation and provisioning.

b and d

Which pattern will match only filenames that contain a number? a. *#* b. *[[:digit:]]* c. *[digit]* d. [0-9]

b. *[[:digit:]]*

Which directory is the top of the system's file system hierarchy? a. /etc b. / c. /home/root d. /root

b. /

Which directory contains user home directories? a. / b. /home c. /root d. /user

b. /home

Which term describes the name of a program to run? a. Argument b. Command c. Option d. Prompt

b. Command

Which of the following can be used to move a job to the background? a. Press & b. Press Ctrl-Z then type bg c. Press Ctrl-D then type bg d. Press Ctrl-Z then &

b. Press Ctrl-Z then type bg

In the symbolic method of changing file permissions the letter g is used to represent? a. user b. group c. other d. global

b. group

Which file can be modified by the contractor1 user? a. lfile1 b. lfile2 c. rfile1 d. rfile2

b. lfile2

Special permissions include all but: a. u+s (suid) b. m+u (muid) c. g+s (sgid) d. o+t (sticky)

b. m+u (muid)

Linux is a ___________ and ___________ operating system. a. production, stable b. multiuser, multitasking c. processing, operating d. large, useful

b. multiuser, multitasking

Which Bash shortcut or command is used to re-execute a recent command by matchingthe command name? a. Pressing Tab b. !number c. !string d. history

c. !string

Which pattern will match all filenames containing a "b"? a. b* b. *b c. *b* d. [!b]*

c. *b*

Which directory contains non-persistent process runtime data? a. /tmp b. /etc c. /run d. /var

c. /run

Which directory contains installed software programs and libraries? a. /etc b. /lib c. /usr d. /var

c. /usr

Which directory contains regular commands and utilities? a. /commands b. /run c. /usr/bin d. /usr/sbin

c. /usr/bin

Which files can be deleted by the operator1 user? a. rfile1 b. rfile2 c. All of the above. d. None of the above.

c. All of the above.

To which license does Linux adhere? a. open license b. artistic license c. GNU General Public License d. free source license

c. GNU General Public License

When the core components of the Linux operating system are packaged together with other Open Source Software, it is called a: a. new kernel b. new platform c. Linux distribution d. GNU Project

c. Linux distribution

Which term describes the part of the command line that adjusts the behavior of a command? a. Argument b. Command c. Option d. Prompt

c. Option

Which answer saves output to a file and discards error messages? a. &>file b. | tee file 2> /dev/null c. > file 1> /dev/null d. > file 2> /dev/null

d. > file 2> /dev/null

Which files can be deleted by the operator2 user? a. lfile1 b. lfile2 c. All of the above. d. None of the above.

d. None of the above.

Which Bash shortcut or command copies the last argument of previous commands? a. Pressing Ctrl+K b. Pressing Ctrl+A c. !number d. Pressing Esc+.

d. Pressing Esc+.

Which state represents a process that has been stopped or suspended? a. D b. R c. S d. T

d. T


Set pelajaran terkait

Marketing Test #2 - Chapter 6 - Segmentation, Target Market, & Positioning

View Set

Obstetrics/Maternity Practice Exam

View Set

Relationship Development + Therapeutic Communication

View Set

MKTG 3320 - Consumer Behavior - Exam 2 Practice Questions

View Set

Chapter 7 - Virtualization and Cloud Computing

View Set