CIT173 quizzes

Ace your homework & exams now with Quizwiz!

Which Bash shortcut or command is used to clear characters from the cursor to the end of the command line? A Pressing Ctrl+LeftArrow B Pressing Ctrl+K C Pressing Ctrl+A D ; E Pressing Esc+.

B

Which Bash shortcut or command is used to re-execute a recent command by matching the command name? A Pressing Tab B !number C !string D history E Pressing Esc+.

C

Which Bash shortcut or command separates commands on the same line? A Pressing Tab B history C ; D !string E Pressing Esc+.

C

Which directory contains regular commands and utilities? A /commands B /run C /usr/bin D /usr/sbin CheckResetShow Solution

C

Which item represents a number that identifies the group at the most fundamental level? A primary group B UID C GID D groupid

C

Which pattern will match all filenames containing a "b"? A b* B *b C *b* D [!b]*

C

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

What is the fourth field of the /etc/passwd file? A home directory B UID C login shell D primary group

D

Which pattern will match only filenames that begin with an uppercase letter? A ^?* B ^* C [upper]* D [[:upper:]]* E [[CAP]]*

D

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

Which state represents a process that has been stopped or suspended? A. D B. R C. S D. T E. Z

D.

Which pattern will match only filenames beginning with "b"? A b* B *b C *b* D [!b]*

A

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

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

Which two of the following are ways in which Red Hat develops their products for the future 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 & C

Which directory contains user home directories? A / B /home C /root D /user

B

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

B

Which item represents a number that identifies the user at the most fundamental level? A primary user B UID C GID D username

B

Which pattern will match only filenames ending with "b"? A b* B *b C *b* D [!b]*

B

Which pattern will match only filenames that contain a number? A *#* B *[[:digit:]]* C *[digit]* D [0-9]

B

Which process does a parent use to duplicate to create a new child process? A exec B fork C zombie D syscall E reap

B

Which directory is the administrative superuser's home directory? A /etc B / C /home/root D /root

D

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

Which directory is the top of the system's file system hierarchy? A /etc B / C /home/root D /root CheckResetShow Solution

B

Which term describes the name of a program to run? A Argument B Command C Option D Prompt

B

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

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

Which directory contains persistent, system-specific configuration data? A /etc B /root C /run D /usr

A

Which command displays the absolute path name of the current location? A cd B pwd C ls ~ D ls -d

B

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 !string E !number

A

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

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 * E cd /home

A

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

Which directory contains temporary files? A /tmp B /trash C /run D /var

A

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

Which pattern will match only filenames at least three characters in length? A ???* B ??? C \3* D +++* E ...*

A

1. Which two of the following are benefits of open source software for the user? (Choose two.) 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 & C

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+.

B

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

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

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 & D

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

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

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

Which command will always change the working directory up two levels from the current location? A cd ~ B cd ../ C cd ../.. D cd -u2

C

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

Which directory contains installed software programs and libraries? A /etc B /lib C /usr D /var

C

Which directory contains non-persistent process runtime data? A /tmp B /etc C /run D /var

C

Which state represents a process that is sleeping until some condition is met? A D B R C S D T E Z

C

Which term describes the interpreter that executes commands typed as strings? A Command B Console C Shell D Terminal

C

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

Which Bash shortcut or command displays the list of previous commands? A Pressing Tab B !string C !number D history E Pressing Esc+.

D

Which Bash shortcut or command is used to complete commands, file names, and options? A ; B !number C history D Pressing Tab E Pressing Esc+.

D

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

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

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

Which directory contains dynamic data, such as for databases and websites? A /etc B /run C /usr D /var

D

Which pattern will match only filenames where the first character is not "b"? A b* B *b C *b* D [!b]*

D

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

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

E

Which state represents a process that has released all of its resources except its PID? A D B R C S D T E Z

E


Related study sets

Chapter 10: Laws Governing Access to Foreign Markets

View Set

Fundamentals Networking Tech Chapter 8

View Set