CIT 173 Midterm

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

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

Terminal

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

!number

Which Bash shortcut or command is used to re-execute a recent command by matching the command name?

!string

Which answer discards all messages normally sent to the terminal? A >file 2>file2 B &>/dev/null C &>/dev/null 2>file D &>file

&>/dev/null

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

&>file

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

/usr

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

;

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

> file 2> /dev/null

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

T

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 process does a parent use to duplicate to create a new child process? A exec B fork C zombie D syscall E reap

fork

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

pwd

The system has four users assigned to the following groups: User consultant1 is in groups consultant1 and database1 User operator1 is in groups operator1 and database1 User contractor1 is in groups contractor1 and contractor3 User operator2 is in groups operator2 and contractor3 The current directory (.) contains four files with the following permissions information: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 lfile1 -rw-r--rw-. consultant1 database1 lfile2 -rw-rw-r--. operator1 database1 rfile1 -rw-r-----. operator1 database1 rfile2 2. Which file can be modified by the contractor1 user? A lfile1 B lfile2 C rfile1 D rfile2

lfile2

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

| tee file

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

/var

Which Bash shortcut or command is used to complete commands, file names, and options?

Tab

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

*[[:digit:]]*

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

*b

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

*b*

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

/usr/bin

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

/

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 group information? A home directory B /etc/passwd C /etc/GID D /etc/group

/etc/group

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 temporary files? A /tmp B /trash C /run D /var

/tmp

Which answer displays output to a terminal and ignores all errors? A &>file B 2> &>file C 2>/dev/null D 1>/dev/null

2>/dev/null

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

>>file 2>&1

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

>file 2>file2

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

???*

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 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. CheckResetShow Solution

A & C

The system has four users assigned to the following groups: User consultant1 is in groups consultant1 and database1 User operator1 is in groups operator1 and database1 User contractor1 is in groups contractor1 and contractor3 User operator2 is in groups operator2 and contractor3 The current directory (.) contains four files with the following permissions information: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 lfile1 -rw-r--rw-. consultant1 database1 lfile2 -rw-rw-r--. operator1 database1 rfile1 -rw-r-----. operator1 database1 rfile2 5. Which files can be deleted by the operator1 user? A rfile1 B rfile2 C All of the above. D None of the above.

All of the above.

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

Argument

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 term describes the name of a program to run?

Command

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

Ctrl+A

Which Bash shortcut or command is used to clear characters from the cursor to the end of the command line?

Ctrl+K

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

Ctrl+LeftArrow

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

Esc+

The system has four users assigned to the following groups: User consultant1 is in groups consultant1 and database1 User operator1 is in groups operator1 and database1 User contractor1 is in groups contractor1 and contractor3 User operator2 is in groups operator2 and contractor3 The current directory (.) contains four files with the following permissions information: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 lfile1 -rw-r--rw-. consultant1 database1 lfile2 -rw-rw-r--. operator1 database1 rfile1 -rw-r-----. operator1 database1 rfile2 6. Which files can be deleted by the operator2 user? A lfile1 B lfile2 C All of the above. D None of the above.

None of the above.

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

Option

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

Physical Console

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

Prompt

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

S

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

Shell

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?

Virtual Console

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

Z

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

[!b]*

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

[[:upper:]]*

Which pattern will match only filenames beginning 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 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 will always return you to the working directory used prior to the current working directory? A cd - B cd -p C cd ~ D cd ..

cd -

Which command will always change the working directory to the parent of the current location? A cd ~ B cd .. C cd ../.. D cd -u1

cd ..

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

cd ../..

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

cd ../../tmp

Which command will always change the working directory to /bin? A cd bin B cd /bin C cd ~bin D cd -bin

cd /bin

Which Bash shortcut or command displays the list of previous commands?

history

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

The system has four users assigned to the following groups: User consultant1 is in groups consultant1 and database1 User operator1 is in groups operator1 and database1 User contractor1 is in groups contractor1 and contractor3 User operator2 is in groups operator2 and contractor3 The current directory (.) contains four files with the following permissions information: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 lfile1 -rw-r--rw-. consultant1 database1 lfile2 -rw-rw-r--. operator1 database1 rfile1 -rw-r-----. operator1 database1 rfile2 4. Which file has a group ownership of consultant1? A lfile1 B lfile2 C rfile1 D rfile2

lfile1

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

ls -al

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

primary group

The system has four users assigned to the following groups: User consultant1 is in groups consultant1 and database1 User operator1 is in groups operator1 and database1 User contractor1 is in groups contractor1 and contractor3 User operator2 is in groups operator2 and contractor3 The current directory (.) contains four files with the following permissions information: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 lfile1 -rw-r--rw-. consultant1 database1 lfile2 -rw-rw-r--. operator1 database1 rfile1 -rw-r-----. operator1 database1 rfile2 1. Which regular file is owned by operator1 and readable by all users? A lfile1 B lfile2 C rfile1 D rfile2

rfile1

The system has four users assigned to the following groups: User consultant1 is in groups consultant1 and database1 User operator1 is in groups operator1 and database1 User contractor1 is in groups contractor1 and contractor3 User operator2 is in groups operator2 and contractor3 The current directory (.) contains four files with the following permissions information: drwxrwxr-x. operator1 database1 . -rw-rw-r--. consultant1 consultant1 lfile1 -rw-r--rw-. consultant1 database1 lfile2 -rw-rw-r--. operator1 database1 rfile1 -rw-r-----. operator1 database1 rfile2 3. Which file cannot be read by the operator2 user? A lfile1 B lfile2 C rfile1 D rfile2

rfile2


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

CHAPTER 26 - Survivors of Abuse or Neglect

View Set

Chemistry Exam #4 Ch. 7&8 #'s 1-59

View Set

Home Vertical Happy Hour Q2 2021

View Set

Market-Based Management Chapter 4: The Customer Experience and Value Creation

View Set

AP Comparative Gov & Politics - Exam Review PRACTICE QUESTIONS

View Set

Attention: If you or a loved one has been diagnosed with Mesothelioma you may to be entitled to financial compensation. Mesothelioma is a rare cancer linked to asbestos exposure. Exposure to asbestos in the Navy, shipyards, mills, heating, construction or

View Set