Red Hat Administration I 9.0 RH124 Exam Review 1
Which Bash shortcut or command re-executes a specific command in the history list? A. Pressing Tab B. !number C. !string D. history E. Pressing Esc+.
!number
Which pattern matches all file names that contain a "b"? A. b* B. *b C. *b* D. [!b]*
*b*
To lock a user's account the command you use is usermod with what option? A. -U B. -a C. -L D. -c
-L
Use the man command _____option (equivalent to the apropos command) to search for a keyword in man pages' titles and descriptions. A. -K B. -S C. -k D. -s
-k
Which option in the chage command defines a minimum age? A. -M B. -I C. -m D. -W
-m
Which directory is the top of the system's file-system hierarchy? A. /etc B. / C. /home/root D. /root
/
Which directory contains files to boot the system? A. /boot B. /home/root C. /bootable D. /etc
/boot
Which directory contains system files to access hardware? A. /etc B. /run C. /dev D. /usr
/dev
Which directory contains persistent, system-specific configuration data? A. /etc B. /root C. /run D. /usr
/etc
Which item or file represents the location of the local user account information? A. Home directory B. /etc/passwd C. /etc/UID D. /etc/group
/etc/passwd
Which directory contains user home directories? A. / B. /home C. /root D. /user
/home
Which directory is the administrative superuser's home directory? A. /etc B. / C. /home/root D. /root
/root
Which directory contains non-persistent process runtime data? A. /tmp B. /etc C. /run D. /var
/run
Which directory contains installed software programs and libraries? A. /etc B. /lib C. /usr D. /var
/usr
Which directory contains regular commands and utilities? A. /commands B. /run C. /usr/bin D. /usr/sbin
/usr/bin
One source of documentation that is generally available on the local system is system manual pages or man pages. Software packages ship these pages to provide documentation, and you can access them from the command line by using the man command. The pages are stored in subdirectories of the ___________________directory. A. /usr/boot/man B. /usr/sys/man C. /usr/share/man D. /usr/etc/man
/usr/share/man
What is the Expected life cycle of Red Hat Enterprise Linux A. 25 year B. 10 years C. 12-18 months D. 5 years
10 years
Which Bash shortcut or command separates commands on the same line? A. Pressing Tab B. history C. ; D. !string E. Pressing Esc+.
;
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
Argument
Which term describes the name of a program to run? A. Argument B. Command C. Option D. Prompt
Command
A group is a collection of users that do not need to share access to files and other system resources? True. False.
False
The Input/Output (I/O) redirection does not change how the process gets its input or output? True. False.
False
The fifth colon in the /etc/shadow file is the number of days without activity, starting with the day that the password expired, before the account is automatically locked. A. True. B. False.
False
When running the su command from a regular user account with another user account as a parameter, you do don't need to provide the password of the account to switch to. True. False.
False
A process uses numbered channels called ________________ to get input and send output? A. Standard input B. Standard output C. File descriptors D. Standard error
File descriptors
Which item represents a number that identifies the group at the most fundamental level? A. Primary group B. UID C. GID D. Groupid
GID
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
Home directory
What graduate student in 1991 developed a UNIX-like kernel that he named Linux. A. Elon Musk B. Steve Jobs C. Linus Torvalds D. Bill Gates
Linus Torvalds
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
Login shell
Which term describes the hardware display and keyboard to interact with a system? A. Physical Console B. Virtual Console C. Shell D. Terminal
Physical Console
A __________ is a sequence of one or more commands that are separated by the vertical bar character A. Redirection B. Process C. Tee Command D. Pipeline
Pipeline
Which Bash shortcut or command jumps to the beginning of the command line? A. !number B. !string C. Pressing Ctrl+LeftArrow D. Pressing Ctrl+K E. Pressing Ctrl+A
Pressing Ctrl+A
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+.
Pressing Esc+.
Which Bash shortcut or command is used for completing commands, file names, and options? A. ; B. !number C. history D. Pressing Tab E. Pressing Esc+.
Pressing Tab
What is the fourth field of the /etc/passwd file? A. Home directory B. UID C. Login shell D. Primary group
Primary group
Which term describes the visual cue that indicates that an interactive shell is waiting for the user to type a command? A. Argument B. Command C. Option D. Prompt
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
Terminal
A running program, or process, reads input and writes output? True. False.
True
All processes start with at least three file descriptors? True. False.
True
Source code is the set of human-readable instructions that are used to make a program. A. True. B. False.
True
The root account on Linux is roughly equivalent to the local Administrator account on Microsoft Windows? True. False.
True
When managing Local User Accounts useradd, userdel, and passwd are the three commands used to create a user, delete a user, add a password to the Local user Account? True. False.
True
Which item represents a number that identifies the user at the most fundamental level? A. Primary user B. UID C. GID D. Username
UID
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
Virtual Console
Which pattern matches only file names that begin with "b"? A. b* B. *b C. *b* D. [!b]*
b*
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? A. cd B. cd .. C. cd . D. cd * E. cd /home
cd
Which command returns you to the working directory before the current working directory? A. cd - B. cd -p C. cd ~ D. cd ..
cd -
Which command changes the working directory to the parent of the current location? A. cd ~ B. cd .. C. cd ../.. D. cd -u1
cd ..
Which command changes the working directory up two levels from the current location? A. cd ~/.. B. cd ../ .. C. cd ../.. D. cd ~/
cd ../..
Which Bash command is used to display the file type? A. file B. less C. cat D. history E. view
file
The __________command creates groups? A. groupmod B. newgrp C. groupdel D. groupadd
groupadd
Which Bash shortcut or command displays the list of previously executed commands? A. Pressing Tab B. !string C. !number D. history E. Pressing Esc+.
history
Which command lists files in the current location, with a long format, and including hidden files? A. llong ~ B. ls -a C. ls -l D. ls -al
ls -al
Which term describes the part of the command line that adjusts the behavior of a command? A. Argument B. Command C. Option D. Prompt
option
Which Bash command is used to change a user's password? A. password B. pass C. passwd D. usermod E. userpassword
passwd
Which command displays the absolute path name of the current location? A. cd B. pwd C. ls ~ D. ls -d
pwd
Which term describes the interpreter that executes commands that are typed as strings? A. Command B. Console C. Shell D. Terminal
shell
Which Bash command displays the last five lines of the /var/log/messages file? A. head -n 10 /var/log/messages B. tail 10 /var/log/messages C. tail -n 5 /var/log/messages D. tail -l 10 /var/log/messages E. less /var/log/messages
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? A. touch cd /home/user/helloworld.py B. touch ~/helloworld.py C. touch helloworld.py D. touch ../helloworld.py
touch ~/helloworld.py
A __________provides security boundaries between different people and programs that can run commands? A. daemons B. user account C. system user account D. superuser account
user account