Shared Flashcard Set

Details

Operating Systems
Practice Test Chapters 1 - 6
63
Other
Undergraduate 1
03/05/2014

Additional Other Flashcards

 


 

Cards

Term
An Operating system is
Definition
all of the above
(a collection of programs, provides user-interface, a resource manager)
Term
Computers main memory is primarily consisted of
Definition
RAM
Term
A machine cycle consists of
Definition
instruction cycle and execution cycle
Term
The operating system model consists of
Definition
kernel layer, service layer, and user-interface layer
Term
The argument part in the command line cal 2 2001 is
Definition
2 and 2001
Term
The option part in the command line who -H am i is
Definition
-H
Term
The $ prompt
Definition
indicates UNIX is ready to accept your next command
Term
You log in to the system by
Definition
answering to the login prompt by typing your User Id
Term
You log off from the system by
Definition
typing exit command or [Ctrl-d] key
Term
The command to change your password is
Definition
passwd
Term
Your password must...
Definition
All of the above
(must be at least six characters
must contain at least two characters and one number
must differ from your User Id)
Term
The end of the command line is indicated by
Definition
pressing the [Return] Key
Term
The command arguments are
Definition
optional part of the command line
Term
The command to display the calendar for January 2001 is
Definition
cal 1 2001
Term
The interrupt character is used to
Definition
terminate a running program
Term
The Bourne shell is
Definition
the standard shell
Term
The init program
Definition
activates the getty program for each terminal
Term
In a line oriented editor
Definition
changes are applied to a line or group of lines at a time
Term
The vi editor
Definition
is supported in most of the UNIX installations
Term
The command to exit vi and save your file is
Definition
:wq
Term
The command to search for the word "hello" in the file you are editing
Definition
/hello
Term
Using the [return] key while vi is in the text input mode you can
Definition
all of the above
(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)
Term
In the text input mode of vi
Definition
keys you press appear on the screen
Term
In vi command mode, to delete 3 characters starting from the cursor position you type
Definition
3x
Term
In vi command mode, to undo all the changes on the command line you type
Definition
U
Term
In vi command mode, to open a line below the current line you type
Definition
o
Term
To obtain a general command description under Linux's vi (vim) you type
Definition
help
Term
To obtain description for wq under Linux's vi (vim) you type
Definition
help wq
Term
The command to search backward for the word UNIX in a file you type
Definition
?UNIX
Term
The command to create a directory called xyz is
Definition
mkdir xyz
Term
The command to delete a file called xyz with confirmation option is
Definition
rm xyz -i
Term
If your current directory pathname is /usr/david, the command ls ..
Definition
lists files in the working directory
Term
Which of the following commands is not a correct use of the options?
Definition
All of the above.
(ls ?amF
ls a
lp ?tHELLO xyz)
Term
Which of the following filenames is not a correct filename?
Definition
XYZ>> xyz
Term
If your current directory is /usr/david, the command cd / changes your current directory to
Definition
root
Term
Which one of the following pathnames is considered an absolute pathname?
Definition
/bin/usr/u/se-bin
Term
The command to print a file on a specific printer is
Definition
lp -d printer-name filename
Term
The command to obtain the name of the default printer is
Definition
?????
Term
The Linux command to print on a specific (named) printer is
Definition
lpr -d printer filename
Term
The command to delete a directory and all the subdirectories and files
Definition
rm -r directory-name
Term
The Linux command to delete a directory and all the subdirectories and files in it is
Definition
rm - -recursive directory-name
Term
The command to list a hierarchy of directories is
Definition
ls -R directory
Term
The Linux command to list a hierarchy of directories is
Definition
ls -- recursive directory name
Term
The command to create 2 levels of directories is
Definition
mkdir -p level-1/level-2
Term
The Linux command to create 2 levels of directories is
Definition
mkdir --parent level-1/level-2
Term
The vi command :set all
Definition
displays a list of the parameters currently set for vi
Term
The vi command to set the showmode option is
Definition
:set showmode
Term
The vi command to display the list of abbreviations is
Definition
ab
Term
The vi command to copy the content of the temporary buffer named w at the cursor position is
Definition
"wp
Term
The vi command to move the cursor to the top of the page is
Definition
1G
Term
The vi command to cancel the displaying of the line numbers is
Definition
??
Term
The vi commands sequence: dd G p
Definition
??
Term
The vi command to repeat the last changes is
Definition
. (dot)
Term
The vi command Ctrl-g
Definition
displays the line number of the current line
Term
The vi command :ab hi hello
Definition
creates an abbreviation for hello
Term
The command line vi -r filename
Definition
opens vi for recovery
Term
The vi command : ! pwd
Definition
displays the current directory pathname
Term
The vi command : set report=2
Definition
sets confirmation messages for two or more lines
Term
The vi command to save lines 1-5 of the text in another file is
Definition
???
Term
The vi command : map
Definition
lists the macro names
Term
The vi command :r ! ls
Definition
imports the list of the files in the current directory
Term
The vi command to join 2 lines is
Definition
J
Term
The vi command to access the contents of a numbered buffer (say buffer number 2) is
Definition
"2p
Supporting users have an ad free experience!