CIS126DL Linux Operating System

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

Which prompt does the root user receive when he is logged in to the system?

#

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

$

Which directory below contains static, persistent system configuration data.

/etc

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?

1

To redirect stdout and stderr to overwrite the file named project_1 use the following standard out command

>project_1 2>&1

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 Ouput represent the results of a command and Standard Input represents the input required for a command, only Standard Error and Standard Ouput 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

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

It appends Standard Ouput to a file.

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

It is an execuable 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

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]

What is the BASH shell?

a command line interpreter that processes Linux commands

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

cd

Which command line will generate an error?

cd *

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

cd /etc

What does entering cd - do ?

changes directory to whatever previous directory you were in

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

clear

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

command line

the tac command

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 password

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 ;

separate commands on the same command line

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

shell

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

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

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

• /etc • /home/student/Documents

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

• GNOME • KDE

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 • Standard Deviation

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

• command • insert


Set pelajaran terkait

CompTIA A+ 220-1001 Exam (Section 5.1 to 5.7)

View Set

Midterm 2 Anatomy and physiology (BI 331)

View Set

Chapter 24: Caring for Clients with Valvular Disorders of the Heart

View Set

ACCT 315 Exam 3 (CH 15,16,16,18,23,28)

View Set

Chapter 3: The human body: A nutrition perspective

View Set