Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 (1 point) Which of the following is a root directory in Linux? Confusion alert (root directory vs. root's home directory) - every Linux

Question 1 (1 point)

Which of the following is a root directory in Linux?

Confusion alert (root directory vs. root's home directory) - every Linux system contains a user named root. User root has her/his own home directory. This is usually /root. We call this the root's home directory. This is different from the root directory on a Linux system.

Question 1 options:

A)

C:\

B)

Linux:\

C)

\

D)

/

image text in transcribedView hint for Question 1

Question 2 (1 point)

Which of the following can be valid pathnames in Linux?

Please select all that apply.

Question 2 options:

A)

\etc\sysconfig

B)

oot\

C)

/home/user/impact

D)

/user/

image text in transcribedView hint for Question 2

Question 3 (1 point)

What types of files can you expect to find in the /etc directory?

Question 3 options:

A)

System configuration files

B)

Trash files

C)

Miscellaneous items

D)

Binary files

image text in transcribedView hint for Question 3

Question 4 (1 point)

Which of the following are examples of editors in Linux?

Please select all that apply.

Question 4 options:

milli

nano

pico

vi

Question 5 (1 point)

What do up/down arrows at the command prompt in BASH do?

Question 5 options:

A)

Cycle through commands executed in the past

B)

Edit scripts

C)

Scroll up and down

D)

Finds and replaces strings

Question 6 (1 point)

What does the touch command do? Use man, if needed, to answer this question.

Question 6 options:

A)

Add content to a file

B)

Removes content from a file

C)

Change file access and modification times

Question 7 (1 point)

How is pushd different from cd?

Question 7 options:

A)

They are the same

B)

Pushd moves files from one directory to another

C)

Pushd keeps track of what directories we have visited in the past

Question 8 (1 point)

Which of the following is the default shell on most Linux installations?

Question 8 options:

A)

zsh

B)

csh

C)

bash

D)

tcsh

Question 9 (1 point)

What does a shell do on a Linux machine?

Question 9 options:

a)

Ensures the user is authenticated

b)

Executes programs/command entered by user

c)

Runs a security wrapper around programs

d)

Allows attackers to run any commands of their choice

image text in transcribedView hint for Question 9

Question 10 (1 point)

Which of the following is true about the PATH environment variable?

Question 10 options:

a)

It lists the current directory of the user

b)

It is a pointer to all the programs that can be executed

c)

When a user tries to execute a program, the shell looks for the program in the list of directories listed in the PATH variable

d)

It is a fixed list of directories containing all the programs that can be executed

image text in transcribedView hint for Question 10

Question 11 (1 point)

What is the delimiter used to separate various directories in the PATH environment variable?

Question 11 options:

a)

; (semi-colon)

b)

- (hyphen)

c)

: (colon)

d)

, (comma)

image text in transcribedView hint for Question 11

Question 12 (1 point)

What is the first directory in the PATH after the execution of this command: export PATH=$PATH:/usr/bin? The answer is specific to rucs.radford.edu .

Question 12 options:

A)

/usr/local/gnat/bin

B)

/usr

C)

/usr/bin

D)

/bin

Question 13 (1 point)

Which of the following demonstrates the command to add a directory /root to the end of the PATH environment variable?

Question 13 options:

a)

export PATH=$PATH:/root

b)

export PATH=/root,$PATH

c)

export PATH=/root:$PATH

d)

export PATH=/root;$PATH

Question 14 (1 point)

Which command would you use to print all the environment variables?

Question 14 options:

A)

showenv

B)

displayenv

C)

getenv

D)

printenv

image text in transcribedView hint for Question 14

Question 15 (1 point)

Question 15 options:

The variable HISTSIZE stores the amount of history that bash stores. What is the value of HISTSIZE set to?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions