UNIX Operating System I (31563)

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

Which shell metacharacter is used to dereference a shell variable?

$ The correct answer is the $ character, as in: echo $PATH

Which of the following are common shell metacharacters?

* ? | [ ]

What is a UNIX shell?

A program which interprets user commands.

What is an editor buffer?

A temporary storage area in memory.

On a typical Unix system, which directory contains commands and files used by the system administrator only.

A, B, and C.

Which of the following is not a common text editing operation?

Adding bit mapped images.

Which of the following is a common method for connecting and logging in to a UNIX system.

All of the above

Which of the following is a recognized operating system design.

All of the above

Why are text editors important when using the Unix operating system?

All of the above Unix is a text driven operating system.

A file with the permissions: -rwxr--r-- can be:

All of the above.

Path names can be specified:

All of the above.

A file directory is also referred to as a:

All of these is correct.

To delete an entire directory (with the name: history) which has seven files in it and is located below the current working directory, issue the command:

Check the basic commands discussed in Chapter 0. IS not: rmdir history

UNIX automatically opens three standard files with every command. They are:

Check the last part of chapter 7.

Unix refers to a family of operating systems. Which of the following is not a member of the "Unix Family?"

DEC/OS DEC/OS is not a member of the Unix family. It is not an operating system at all.

In UNIX, which of the following is not considered to be a file?

Data bus

The exact form of an E-mail address is dictated by:

Domain Name System (DNS)

The most complex and customizable of the UNIX editors is:

EMACS is the most complex and customizable of the traditional UNIX editors.

In vi, the command: :s/john/jane/g causes what action to occur in the file being edited?

Finds and replaces all occurences on the current line of john with jane.

While logged into his/her home directory, a user can:

In the home directory, a user can usually delete, modify, or add files.

When using vi, which of the following cannot be done while in command mode?

Inserting new text

How can you set the vi environment?

Inserting set commands in the .exrc will configure the vi environment.

While in vi command mode, typing a : (colon) permits you to:

Last Line Mode

While in vi command mode, typing a : (colon) permits you to:

Last Line Mode is the correct answer.

What does it mean to say that UNIX is case sensitive?

Lowercase a is not equivalent to uppercase A when using a UNIX shell.

What operating system was the immediate predecessor of UNIX?

MULTICS

The Multimedia Internet Mail Standard is the standard format used for:

Multimedia file attachments.

Which is the following is not another accepted name for named pipes:

Named pipes are not links.

Which is not a UNIX system (or a variant of it)?

OS/2 was the IBM OS comparable to Windows. It is not based on Unix or Linux

Which is not a UNIX system (or a variant of it)?

OS/2 was the IBM OS comparable to Windows. It is not based on Unix or Linux.

What is probably the most friendly and extensive of the text oriented UNIX e-mail programs?

PINE Among the common e-mail systems, pine is the most friendly and extensive.

What operating system management activities are performed by the UNIX kernel?

Process, File, Main Memory, and Disk

What command will display the name and path for your (the user) home directory.

Read the question carefully. The user's home directory is stored in the environmental variable HOME. But you must dereference the variable as you echo it echo $HOME

In vi, the command: :s/john/jane/g causes what action to occur in the file being edited?

See the sample commands for searching and replacing in Chapter 5.

The command: ls -a will display:

Shows entries for the "hidden" files.

The standard protocol for the form of an e-mail message is known as:

Simple Mail Transfer Protocol

Under UNIX System V, what are the files: .profile and .bashrc?

Start-up files used to configure an individual login session.

The /etc/passwd file contains lines for each user of the system. The fields of data in each line are separated by

The field separator in the passwd file is a colon.

Which command will return you to your home directory?

The first three choices are all correct.

Which is not a commonly available UNIX shell?

There is not a common UNIX shell with the name X.

Path names starting with the present working directory or the user's home directory are called:

These are relative paths.

The last 9 characters of the 10 character file attribute field, specifies:

These characters specify the read, write and executute permissions for the owner, the group, and other users.

Why is text editing important to UNIX?

UNIX is a text driven operating system.

Every word processor is capable of copying and pasting text. In vi copying and pasting are accomplished with the vi commands:

Yanking in vi means copying text from a document and in EMACS means pasting text into a document.

Which command will allow you to read a file into a new text file being edited with pico?

^R

In UNIX, which of the following best describes a file:

a sequence of bytes.

What command will create the pseudonym "dir" for the shell command "ls -al"?

alias dir='ls -al'

The command: ls -a will display:

all files including hidden files.

Which of the following is not a part of the UNIX kernel?

communication between system users.

The command: mkdir newdir

creates a new subdirectory located in the current working directory.

When examining the output of the command: ls -F entries followed by a "/" are:

directories

What is the purpose of the "ls" command?

displays files, directories and other entries in a directory.

What is the purpose of the echo command?

echo is used to display variables and constants on the screen.

What command will assist you in determing the contents of a file?

file is the command which attempts to classify files

On most UNIX systems, the /dev directory is the location of:

file names corresponding to system devices.

When a user logs in to a UNIX system, he/she is accessing the file system from his/her

home directory

When a user logs in to a UNIX system, he/she is accessing the file system from his/her:

home directory

A UNIX inode:

is all of the above.

In BSD Unix and Linux, what command will print a copy of file: Names to Printer: lp1?

lpr -Plp1 Names

In BSD Unix and Linux, what command will print a copy of file: Names to Printer: lp1?

lpr is used in BSD and Linux and lp in System V.

Which of the following commands will show the file attributes of file in a directory?

ls -l is the command.

In UNIX, file extensions such as .exe, .html, .cpp, or .doc are:

meaningless to UNIX, but useful to some applications..

What is the command to create a sub directory named scripts in directory /home/userX?

mkdir /home/userX/scripts

What command allows you to change your password?

passwd

The last 9 characters of the 10 character file attribute field, specifies:

read, write, and execute permissions for various users.

UNIX automatically opens three standard files with every command. They are:

stdin, stdout, stderr.

When a pathname starts with the root directory it is called:

the absolute path.

File attributes are show in a directory listing in a list of 10 characters. The first character in the list designates:

the type of the file.

The e-mail address [email protected] is composed of what three sections?

user name, host name, and domain name

In vi, what does the command: :wq accomplish?

writes the vi buffer contents to a file and then quits vi.

Which of the following is the command for yanking the current line in vi?

yy


Set pelajaran terkait

EVRN 148 ch 13 renewable energy questions

View Set

UNIT 1 EXAM: Perfusion Exemplars (HF, MI, Dysryhthmias)

View Set

TONGUE TWISTERS, Tongue Twister and Extra Topics., Tongue Twisters - 002, TONGUE TWISTERS, Tongue Twister 1-10, Tongue Twisters - 004, Tongue Twisters, Tongue Twisters, Tongue Twisters, tongue twister, Tongue Twister, Tongue twister

View Set