• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key

image

Play button

image

Play button

image

Progress

1/142

Click to flip

142 Cards in this Set

  • Front
  • Back
  • 3rd side (hint)
What are the two types of shell commands?

internal/built-in and external.
utility and program calls.
file manipulation and device use.
hardware applications and software.
internal/built-in and external.
What operating system management activities are performed by the UNIX kernel?

Process, File, Main Memory, and Disk
Program, File, Hardware, and Software
Process, Program, Software, and Utility
Process, File, Disk, and User
Process, File, Main Memory, and Disk
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:

rm -r history
rmdir history
del history
rd history
rm -r history
What is the purpose of the "ls" command?

lists the devices currently connected to the system.
loads software (ls) prior to execution.
displays files, directories and other entries in a directory.
lists the users currectly using the system.
displays files, directories and other entries in a directory.
Which of the following is credited with developing UNIX?

Dennis Ritchie and Ken Thompson
Bill Gates and Paul Allen
Linus Torvalds
The Faculty of the University of California at Berkley
Dennis Ritchie and Ken Thompson
What is an operating system?

a software system which allows the use of hardware and software resources.
a collection of application software packages
a collection of computer hardware and software assembled into a functioning unit.
A combined AUI and API.
a software system which allows the use of hardware and software resources.
Which is not a UNIX system (or a variant of it)?

Linux
Solaris
OS/2
Mac OS X
OS/2
What is a time-sharing system?

Allows quick execution of jobs in succession.
Allows multiple users to access the same file.
Allows for more than one person to use the same computer, keyboard and monitor.
provides for switching between multiple processes.
provides for switching between multiple processes.
What command displays the contents of a file on the screen?

display
echo
type
cat
cat
In the following UNIX command, which is a "command argument?" ls -al m*

m*
-al
ls
None of the above.
m*
What command will create the pseudonym "dir" for the shell command "ls -al"?

alias dir='ls -al'
dir='ls -al'
set dir='ls -al'
alias 'ls -al'=dir
alias dir='ls -al'
What is the purpose of the echo command?

Displaying the contents of operating system variables and displaying text.
repeating the output of a command?
Displaying the contents of a file.
Displaying a new text window on the monitor.
Displaying the contents of operating system variables and displaying text.
Which of the following is a recognized operating system design.

Single-user, single-process system.
single-user, multiprocess system
Multiuser, mulitprocess system
All of the above
All of the above
Which shell metacharacter is used to dereference a shell variable?

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

LAN connection.
Internet connection.
Stand-Alone connection
All of the above
Only choices 1 and 2 are correct.
All of the above
What operating system was the immediate predecessor of UNIX?
MULTICS
Which of the following is a recognized operating system design.
All of the above
Which of the following is not true of character user interfaces (CUI) and/or graphical user interfaces (GUI)?

Both interfaces allow keyboard entry.
The character set used by the two interfaces is different.
A GUI allows a point and click style of interaction.
A CUI is more versatile in the range of commands which can be created.
The character set used by the two interfaces is different.
Which is not a commonly available UNIX shell?

Korn
Z
X
C
X
What command allows you to change your password?

password
passwd
chpasswd
set passwd
passwd
How can you determine which shell you are using on your UNIX system?

Enter the command: shell
Enter the command: whichshell
Enter the command: echo $SHELL
Enter the command: cat $SHELL
Enter the command: echo $SHELL
What is a UNIX shell?

A program which interprets user commands.
A program which uniquely identifies the variant of UNIX running on a machine.
A primitive and inferior predecessor to X Windows.
The programmers interface to UNIX.
A program which interprets user commands
Unix refers to a family of operating systems. Which of the following is not a member of the "Unix Family?"

AIX
Solaris
LINUX
BSD
DEC/OS
DEC/OS
What does it mean to say that UNIX is case sensitive?

Lowercase and uppercase letters of the same type are not considered equivalent (u is not U).
A command typed uppercase will not work.
echo and ECHO are not the same.
All of the above.
All of the above.
Which shell environmental variable contains the name (and the path to it) of the user's home directory when the user logs on?

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

print Names to lp1
lp Names, lp1
lpr -Plp1 Names
cat Names>printer
lpr -Plp1 Names
What will be the result of typing: :!pwd while in vi command mode?

Nothing. This is an illegal command.
The letters pwd will be added to the last line of the file.
The current working directory will be displayed.
The output of pwd will be inserted in the file being edited.
The current working directory will be displayed.
When using vi, which of the following cannot be done while in command mode?

Writing text to a new file.
Opening a file for editing.
Inserting new text.
Searching and replacing text.
Inserting new text.
The exact form of an E-mail address is dictated by:

/usr/spool/mail
Multimedia Internet Mail
World Wide Web Mail System
Domain Name System
Domain Name System
Which command will allow you to read a file into a new text file being edited with pico?

^I
Read
^KR
^R
^R
In vi, what does the command: :wq accomplish?

writes the vi buffer contents to a file and then quits vi.
writes a q to the cursor position.
quits vi in w mode.
inserts wq after each colon in the file.
writes the vi buffer contents to a file and then quits vi.
Every word processor is capable of copying and pasting text. In vi copying and pasting are accomplished with the vi commands:

Copy and Paste.
Yank and Put.
Cut and Insert.
Mark and Buffer.
Yank and Put.
The Multimedia Internet Mail Standard is the standard format used for:

Multimedia file attachments.
GUI standards for mail programs running under X-Windows.
Compressing multimedia files.
All of the above.
Multimedia file attachments.
Why is text editing important to UNIX?

Computer output is in text format.
UNIX is a text driven operating system.
There are no UNIX word processors.
Only text files are portable to other operating systems.
UNIX is a text driven operating system.
The e-mail address joes@linuxserver.com is composed of what three sections?

user name, host name, and domain name
user name, machine name, and type of server.
user name, network name, and category.
user name, host name, and category.
user name, host name, and domain name
What is probably the most friendly and extensive of the text oriented UNIX e-mail programs?

BSD Mail
Elm
Pine
Outlook
Pine
Which of the following is not a common text editing operation?

Adding bit mapped images.
Saving a File.
Copying text blocks.
Replacing blocks of text.
Adding bit mapped images.
How can you set the vi environment?

Create or modify a cfgvi file and place it in your home directory.
Modify the .exrc file in your home directory.
Use the setvi command.
Modify the .profile or .cshrc files.
Modify the .exrc file in your home directory.
The standard protocol for the form of an e-mail message is known as:

BSD Mail Protocol
ANSI E-Mail Protocol
Simple Mail Transfer Protocol
Internet Standard Mail Protocol
Simple Mail Transfer Protocol
Which of the following is not a commonly used text editor in UNIX?

pico
EMACS
joe
edlin
vi
edlin
While in vi command mode, you enter: 7dd What happens?

Line 7 is deleted.
7 lines including the current line are deleted.
7 lines are inserted from the indexed buffer d.
7 blank lines are inserted at the cursor position.
7 lines including the current line are deleted.
In vi, the command: :s/john/jane/g causes what action to occur in the file being edited?

Nothing, this is an invalid attempt to do search and replace.
Finds and replaces the next occurence of jane with john.
Finds and replaces all occurences on the current line of john with jane.
displays the lines with either john or jane embedded in them.
Finds and replaces all occurences on the current line of john with jane.
The most complex and customizable of the UNIX editors is:

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

Enter last line mode.
Do nothing, this is not a valid command.
Enter new text.
Open a new editor buffer.
Enter last line mode.
Why are text editors important when using the Unix operating system?

It is a text-driven operating system.
Creating and sending email.
Writing programs and/or scripts.
B and C only.
All of the above.
All of the above
What is the difference between e-mail running a program like Kmail or Pine and web based email such as Gmail or Yahoo.

Gmail and Yahoo webmail is not compatible with Unix..
Pine and Kmail email require that an email client program be used on the local computer.
Pine and Kmail require the use of a web browser to read the mail.
Unix does not support Graphical User Interfaces commonly used with Gmail and Yahoo.
Pine and Kmail email require that an email client program be used on the local computer.
Which key allows you to switch from insert mode to command mode in vi?

^C
F10
Escape Key
Shift Tab
Escape Key
The ^ symbol when it appears on the pico editor menu means what?

Hold the control key down while typing a character.
Insert text with this command.
Mark the beginning and ending of a block.
Use the escape key with command.
Hold the control key down while typing a character.
The two common protocols for transferring e-mail messages between computers are:

Post Office Protocol and Internet Message Access Protocol.
E-Mail Transfer Agent Protocol and Internet E-Mail Protocol.
Internet Mail Standard Protocol and the Electronic Transfer Agent Protocol.
BSD E-Mail Protocol and ANSI E-Mail Protocol.
Post Office Protocol and Internet Message Access Protocol.
Which of the following is not a function commonly included in UNIX e-mail systems?

Savings in Folders
Aliases
Accessing electronic yellow pages
Attachments
Accessing electronic yellow pages
Which of the following is the command for yanking the current line in vi?

y
yc
yy
y1
yy
KMail is a Unix email system that distiguishes itself from other Unix email systems through:

a cut and paste command system.
a graphical user interface.
allowing intranet email use.
Use of a signature file which allows you to define information which is a part of all your email correspondence.
a graphical user interface.
What is an editor buffer?

A filtering program to remove errors.
A temporary storage area in memory.
A special machine attached to your network to eliminate viruses.
A program which is used to enhance your text files by adding special features.
A temporary storage area in memory.
A simple/ordinary file in UNIX can be:

a C++ program source file.
an HTML file.
a printer.
an executable program
All of these
Choices A, B, and D only.
Choices A, B, and D only.
A special file is a:

new link file.
file without a normal inode entry.
means of accessing hardward devices.
file without restricted read and write permissions.
means of accessing hardward devices.
While logged into his/her home directory, a user can:

create new files and directories.
change the permissions of files and directories.
delete existing files and directories.
All of the above.
None of the above.
All of the above.
UNIX automatically opens three standard files with every command. They are:

cin, cerr, cout.
stdin, stdout, stderr.
input, output, errors.
None of the above.
stdin, stdout, stderr.
A user can switch directories with the command:

cd
chdir
set
None of the above
cd
A UNIX inode:

is the same as an index node.
is an element of an array on the disk.
is allocated whenever a new file is created.
contains file attributes.
is all of the above.
is all of the above.
The /bin directory on a Unix system

contains binary (executable) images of most Unix commands.
contains configuration files for most system users.
is usually a symbolic link to /usr/bin.
Both A and C are correct.
Both A and C are correct.
The command: mkdir newdir

creates a new directory in the root subdirectory.
will not work without an absolute path.
is not a valid UNIX command.
creates a new subdirectory located in the current working directory.
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
ordinary files
links
executable
directories
On most UNIX systems, the /dev directory is the location of:

file names corresponding to system devices.
files representing commands and system utilties.
file names for binary files.
all of the above.
file names corresponding to system devices.
A link file can best be described as:

a special file.
a device file.
a named pipe.
a new file name which points to an existing file.
all of the above.
a new file name which points to an existing file.
The /etc/passwd file contains lines for each user of the system. The fields of data in each line are separated by

a space
a colon
a period
a semi-colon
a colon
Which command will return you to your home directory?

cd
cd $HOME
cd ~
B and C only.
None of the above.
A, B, and C.
A, B, and C.
When a user logs in to a UNIX system, he/she is accessing the file system from his/her:

base directory
home directory
/usr/bin directory
/root
home directory
What command will assist you in determing the contents of a file?

file
ls
whatis
find
file
When a user changes directories a number of times, how can he/she determine in which directory he/she is currently working?

Type the command: find dir.
Look at the command prompt.
Type the command "where am i".
Type the command "pwd".
Type the command "pwd".
Path names starting with the present working directory or the user's home directory are called:

the absolute path.
the relative path.
the indirect path.
All of the above.
the relative path.
The command: ls -a will display:

all files including hidden files.
the directory in abbreviated format.
all files with read access permissions.
None of the above.
all files including hidden files.
The last 9 characters of the 10 character file attribute field, specifies:

ownership of the file.
which group can change or access the file.
read, write, and execute permissions for various users.
the inode size.
read, write, and execute permissions for various users.
Path names can be specified:

starting with the root directory.
starting with the present working directory.
starting with the user's home directory.
All of the above.
None of the above.
All of the above.
The UNIX file system is hierarchical similar to an organization chart. The top level directory in the hierarchy of directories is the:

ceo
prime
executive
root
root
Which of the following commands will show the file attributes of file in a directory?

ls
dir
ls -l
dir/atr
ls -l
Which of the following is a character oriented device?

Keyboard.
Hard Disk Drive.
Mouse.
In UNIX, all devices are block oriented.
Keyboard.
A file directory is also referred to as a:

Subdirectory.
Folder.
Drawer.
Cabinet.
All of the above.
All of the above.
On a typical Unix system, which directory contains commands and files used by the system administrator only.

/bin
/etc
/sys
/adm
/etc
streetcar (s)
трамвАй (и) m.
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 file owner.
the file size.
None of the above
the type of the file.
Which is the following is not another accepted name for named pipes:

IPC mechanisms.
links
sockets
FIFO pipes
links
In UNIX, which of the following best describes a file:

information stored in a disk file.
text saved on optical or magnetic media.
non-text information stored in permanent form.
a sequence of bytes.
a sequence of bytes.
What command will display the name and path for your (the user) home directory.

echo HOME
echo $PATH
echo $USER
echo ~
echo ~
In UNIX, which of the following is not considered to be a file?

Text data stored on a disk.
Directories
Printers
Network interface card
Data bus
Data bus
A file with the permissions: -rwxr--r-- can be:

read by any system user.
executed only by the owner.
written only by the owner.
All of the above.
None of the above.
All of the above.
When a pathname starts with the root directory it is called:

the absolute path.
the relative path.
the indirect path.
All of the above.
the absolute path.
In UNIX, file extensions such as .exe, .html, .cpp, or .doc are:

meaningless to UNIX, but useful to some applications..
useful for assigning process ids.
determine how the OS uses the file.
useful in determining file permissions.
meaningless to UNIX, but useful to some applications..
Terminates a process or command
Ctrl-D or ^D
Allows you to create pseudonyms for commands.
alias
Notifies you of new e-mail
biff
Displays a calendar on screen
cal
Allows joining of files
cat
Allows you to change the current working directory.
cd
Allows you to copy files
cp
Ends a shell that you have started
exit
Displays the name of the host computer that you are logged on to.
hostname
Allows you to log on to the computer with a valid username/password pair.
login
Allows printing of text files
lpr or lp
Allows you to display names of files and directories in the current working directory
ls
Allows you to view a manual page for a command or topic
man
Allows or disallows writing messages to the screen
mesg
Allows you to create a new directory
mkdir
Allows viewing of the contents of a file one screenful at a time
more
Allows you to move the path location of or rename files.
mv
Allows you to change your password on the computer
passwd
System V command that displays one screenful of a file at a time
pg
Allows you to see the name of the current working directory
pwd
Allows you to delete a file from the file structure
rm
Allows deletion of directories
rmdir
Allows you to send real-time messages to other users
talk
allows you to log on to a computer on a network or the internet
telnet
Allows you to undefine pseudonyms for commands
unalias
Displays information about the operating system running the computer
uname
Allows you to view a brief description of a command
whatis
Displays the path(s) to commands and utilities in a certain key directories
whereis
Allows you to find out log-in names of users currently on the system
who
Displays your username
whoami
Allows real-time messaging between users on the system
write
New Line
To end a command line
Space
To separate elements on a command line
ls /etc
Tab
To separate elements on a command line
ls /etc
#
To start a comment
# This is a comment line
"
To quote multiple characters but allow substitution
"$file" bak
$
To end line and deference a shell variable
$PATH
&
To provide background execution of a command
command &
'
To quote multiple characters
'$100,000'
( )
To execute a command list in a subshell
(commandl; command2)
*
To match zero or more characters
chap* .ps
[ ]
To insert wild cards
[a-s] or [1,5-9]
^
To begin a line and negation symbol
[ ^3-8 ]
`
To substitute a command
PS1=`command`
{ }
To execute a command list in the current shell
{commandl; command2}
|
To create a pipe between commands
command1 | command2
;
To separate commands in sequential execution
command1; command2
<
To redirect input for a command
command < file
>
To redirect output for a command
command > file
?
To substitute a wild card for exactly one character
lab.?
/
To be used as the root directory and as a component separator in a pathname
/usr/bin
\
To escape/quote a single character; used to quote <New Line> character to allow continuation of a shell command on the following line
command argl \
arg2 arg3
\?
(Korn and C Shells Only)

!
To start an event specification in the history list and the current event
!!, !$, !4
(Korn and C Shells Only)

%
The C shell prompt, or the starting character for specifying a job number
% or %3
(Korn and C Shells Only)

~
To name home directory
~/ .profile