Linux Exam 1

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

Which prompt does the root user receive when he is logged in to the system? (/) (#) ($) (!)

#

Which prompt (character) does a regular user receive when he is logged in to the system?

$

Which directory below contains static, persistent system configuration data. (/bin) (/home) (/etc) (/root)

/etc

Which of the following is an absolute path name? (Choose all that apply) (/etc) (home/resume) (/home/student/Documents) (../../videos)

/etc & /home/student/Documents

If "blue_sky" is the name of a file in the home directory off the root of the filesystem ( / ) and you are root and your present working directory is /home, what is the relative name of the file, "blue_sky" ?

/home/blue_sky

What key combination would you use in command mode to search for a string pattern from the current insertion point forward through your document?

/pattern

Which of the following file descriptor numbers represents stdout? (0)(1)(2)(3)

1

To redirect stdout and stderr to overwrite the file named project_1 use the following standard out command. (&>> project_1) (>> project_1 2>&1) (>project_1 2>&1) (2>/dev/null)

>project_1 2>&1

What is the BASH shell?

A command line interpreter that processes Linux commands.

Which command blanks the terminal screen, erasing previously displayed output?

Clear

When sitting at a computer running Linux in TTY4, what key combination is pressed to return to the graphical terminal?

Ctrl + Alt + F1

What standard was created to define a standard file structure with common file locations for Linux?

FHS

Because Standard Error and Standard Output represent the results of a command and Standard Input represents the input required for a command, only Standard Error and Standard Output can be redirected to/from a file. (True or False?)

False

During normal usage,Users enter commands directly to the kernel of the Linux operating system. (True or False)?

False

Linux commands entered via the command line are not case-sensitive. (True or False)

False

The less command offers less functionality than the more command. (True or False)

False

Which common GUI environments are available in most Linux distributions? (Choose 2) (GNOME) (RPM) (CDE) (KDE)

GNOME and KDE

What does the meta character ">>" accomplish when entered on the command line after a command?

It appends Standard Ouput to a file.

How can you protect a metacharacter (such as the $ character) from shell interpretation?

Precede it with a \

How can the user switch from editing a document in vim to a point where she can save and quit the text editor?

Press the Esc key

After you log into a terminal window (pts) or virtual console (TTY), you receive a user interface called a______________.

Shell

Which of the following is not necessarily generated by every command on the system? (Choose all that apply.) (Standard Input) (Standard Out) (Standard Deviation) (Standard Error)

Standard Input and Standard Deviation

A directory is a type of file. ( True or False )

True

Linux has only one root directory per directory tree. (True or False )

True

The alias command can be used to make a shortcut to a single command. True or False?

True

You have redirected Standard Error to a file called Errors. You view the contents of this file afterward and notice that there are six error messages. After repeating the procedure, you notice that there are only two error messages in this file. Why?

You did not append the Standard Error to the Error file and as a result, it was overwritten when the command was run a second time.

Using wildcard metacharacters, how can you indicate a character that is not a or b or c or d?

[!abcd]

Jim typed in pwd and the output was /home/jim/sales/pending. How could jim navigate back to /home/jim ?

cd

If the user's current directory is /home/mary/project1, which command could she use to move to the etc directory?

cd /etc

Which command line will generate an error? (cd) (cd /) (cd *) (cd -)

cd*

What does entering cd - do ?

changes directory to whatever previous directory you were in

The vim editor can function in which two of the following modes? (Choose two) (command) (input) (insert) (text)

command & input

The Linux ________________ is a text-based interface which can be used to input instructions to a computer system.

command line

what does the tac command do?

displays the content of a file in reverse order :last line first and first line last

What will be the result of the following command: touch file{a..c}

filea fileb filec

Which command could you use to see a list of directories and sub directories from your current working directory ___________________?

ls -R

You know a Linux command will perform a desired function for you, but you cannot remember the full name of the command. You do remember it will flush a variable from your system. What would you type at the command prompt to display a list of commands that would likely contain the command you want.

man -k flush

The command: apropos password will generate a list of keyword-matching man page topics for "password" with section numbers. is equivalent to:

man -k passwd

What equivalent to " man " generally provides an easy-to-read command description alternative?

pinfo

Which command would the user type to find out where he/she was in the directory tree?

pwd

If you want to exit the vim text editor without saving any of the changes you made to the text file, enter the following keystrokes at the " : " prompt at the bottom of your display.

q!

The metacharacter ( ;)

separates commands on the command line

Which command searches for and displays any text string contents of a binary file?

strings

Using relative referencing instead of absolute referencing can save time on the command line. An alternative method for saving time when typing pathnames as arguments to commands is _____________

tab completion

The user types in the command: head Documents/cis126/lab_report What will be displayed on the terminal screen?

the first 10 lines of the lab_report

When you enter the command ls -F you notice files are listed that end with an " * " What does this mean?

they are executable files

After entering ls -a you notice that there are files listed that begin with a period "." What does this mean?

they are hidden files

What must a user do to run cp or mv interactively; in other words be asked if she wants to overwrite a file.

type cp -i or mv -i

A special device file found in the /dev directory _____________________

used to access a hardware device like a hard drive

Which command displays the users who are currently logged in to the Linux system?

who


Kaugnay na mga set ng pag-aaral

THE 24-HOUR CLOCK - 24-hour time convert to 12-hour

View Set

PE Units 1-5 Test Questions Review

View Set

Restorative art chapter 11 cosmetics

View Set