Unix Final Exam

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Using the [return] key while vi is in the text input mode Question options:

you can split the current line you can open a new line above the current line you can open a new line below the current line all of the above

The command copies the current line into the temporary buffer

yy

Linux provides some alternative and new command options. When used, these command options are preceded by

--(dash dash)'

The option part in the command line who -H am i is:

-H

The vi command to repeat the last changes is

.(dot)

Which one of the following pathnames is considered an absolute pathname?

/bin/usr/use/bin

The command to search for the word "hello" in the file you are editing is

/hello

The letter K represents bytes:

1024

The vi command to move the cursor to the top of the page is

1G

The argument part in the command line cal 2 2001 is

2 and 2001

In vi command mode, to delete 3 characters starting from the cursor position

3x

The command to delete 5 lines in the file you are editing is Question options:

5dd

The vi command to save lines 1-5 of the text in another file is

:1,5 w filename

The vi command to display the list of abbreviations is

:ab

The vi command to set the showmode option is

:set showmode

The command to exit vi and save your file is

:wq

The command to search backward for the word UNIX in a file you type

?UNIX

Files in your current directory are immediately accessible. Files on the other directories must be identified by their pathnames.

True

GB is about one billion bytes.

True

In the operating system model the service layer translates the service requests from users/programs and passes them to the kernel layer.

True

MB is about one million bytes.

True

The command layer or shell responds to the set of commands that are supported by the operating system.

True

The directory structure is arranged in levels and is known as a hierarchical structure.

True

The kernel layer manages all the hardware dependent functions.

True

The resident program layer provides hardware and software supports.

True

The two major versions of the UNIX operating system are AT&T's UNIX version V and Berkeley UNIX.

True

The utility layer provides the user-interface.

True

UNIX is a multi-user, multi-tasking operating system.

True

UNIX looks at the devices such as printers and terminals as files.

True

You can copy one or more lines of text from one place in your file to another.

True

You can invoke vi with the -R option to prevent accidental changes.

True

You can run shell commands right from the vi command line.

True

You can start vi by giving it a list of filenames.

True

In vi command mode, to open a line below the current line you type

o

The command line vi -r filename

opens vi for recovery

The command arguments are

optional part of the command line

The command to change your password is

passwd

The Linux command to obtain help screen for the rm command is

rm - - help

The Linux command to delete a directory and all the subdirectories and files in it is

rm - -recursive directory-name

The command to delete a directory and all the subdirectories and files in it is

rm -r directory-name

The command to delete a file called xyz with confirmation option is

rm ?i xyz

If your current directory is /usr/david, the command cd / changes your current directory to:

root

The vi command to cancel the displaying of the line numbers is

set nonumber

The interrupt character is used to

terminate a running program

The Bourne shell is

the standard shell

You log off from the system by

typing exit command or [Ctrl-d] key

A machine cycle consists of

Instruction cycle and execution cycle

The vi command to join 2 lines is

J

An open source operating system based on UNIX is___________.

Linux

One of the main features of UNIX is its ___________.

Portability

Computers main memory is primarily consist of:

RAM

In UNIX, the user interface is called the ____________.

Shell

. (dot) and .. (dot dot) represent the current and a level higher directories respectively.

True

A multi-tasking operating system is capable of executing more than one program at a time for a user.

True

ASCII code is one of the code schemes used to represent characters in a byte.

True

About 95 percent of the UNIX operating system is written in C language.

True

Every UNIX file structures has a root directory named / (slash).

True

To obtain description for wq under Linux's vi (vim) you type

help wq

The $ prompt

indicates UNIX is ready to accept your next command

An Operating system:

is a collection of programs provides user interface is a resource manager all of the above

The vi editor

is supported in most of the UNIX installations

The operating system model consists of

kernel layer, service layer, and user interface layer

In the text input mode of vi

keys you press appear on the screen

If your current directory pathname is /usr/david, the command ls ..

lists files in the /usr/David directory

The command to print a file on a specific printer is

lp -d printer-name filename

The command to print file XYZ and xyz is:

lp XYZ xyz

The command to check the status of your print job is

lpstat

The command to obtain the name of the default printer is

lpstat -d

The command to list a hierarchy of directories is

ls -R directory -name

Which of the following commands is not a correct use of the options?

ls ?amF ls a lp ?tHELLO xyz all of the above

The Linux command to create 2 levels of directories is

mkdir - -parent level-1/level-2

The command to create a directory called xyz is

mkdir xyz

Your password

must be at least six characters must contain at least two characters and one number must differ from your User Id all of the above

The vi command to access the contents of a numbered buffer (say buffer number 2) is

"2p

UNIX was originally written in ___________ .

Assembly Language

The commands that place vi in the text input mode are

I and i A and O a and o all of the above

A single-tasking operating system executes one program at a time for many users.

False

Absolute and relative pathnames are the same and indicate the same pathname.

False

In UNIX filenames XYZ and xyz are indicating the same filename.

False

The UNIX operating system is available only on mini computers.

False

The contents of the numbered buffers are out of your reach.

False

The kernel is the outer most layer of the operating system, and it is the only layer that interacts with the user.

False

The pwd command prints your working directory on the printer.

False

The shell program is part of the UNIX kernel.

False

The shell scripts are programs written in C language.

False

To use the vi editor you must have a .exrc file in your home directory.

False

Using the set command while in vi editor will permanently set the vi parameters.

False

Virtual memory is another name for the secondary storage devices.

False

vi lets you save your entire file but not any portion of it.

False

The version of Linux we will be using in class is _________.

Fedora

vi lets you read (import) other files into your current editing file.

True

Which of the following filenames is not a correct filename?

XYZ>> xyz

The init program

activates the getty program for each terminal

You log in to the system by

answering to the login prompt by typing your User Id

The command to display the calendar for January 2001 is

cal 1 2001

In a line oriented editor

changes are applied to a line or group of lines at a time

The vi command :ab hi hello

creates an abbreviation for hello

The vi command : ! pwd

displays the current directory pathname

The commands $ and 0 (zero) move the cursor from on the current line to

end and beginning


Ensembles d'études connexes

Chapter 33 children and adolescents, Chapter 24: Children and Adolescents, Chapter 24: Children and Adolescents, Chapter 26 - Children & Adolescents

View Set

Health Assessment Test #1 COMBINED OFFICIAL

View Set

Pediatric Nursing HESI Case Study Cleft Lip and Cleft Palate (33 Questions with Background Info Given)

View Set

Bio 1B Ch. 40 Animal Bodies and Homeostasis

View Set