IFT 250 Exam Questions and Correct
Answers
Question 1
Which command would you use to print the contents of an environment variable to
the screen?
Correct Answer
echo
Question 2
The UNIX shell is both an interpreter and a scripting language.
Correct Answer
True
Question 3
Linux uses the BSD printing system by default which includes the following
commands:
Correct Answer
lpr, lpq, and lprm
Question 4
Which of the following are common shells for UNIX?
Correct Answer
Correct! Bourne (/bin/sh)
Correct! Korn (/bin/ksh)
Correct! Bash (/bin/bash)
Correct! C (/bin/csh)
Page 1 of 142
,Question 5
UNIX/Linux uses a hierarchical directory structure.
Correct Answer
True
Question 6
Which of the following commands would you use to get help while using the UNIX
command line?
Correct Answer
-help
-info
-man
-(CORRECT)All of the above!
Question 7
Which of the following commands would you use to determine what directory you
are current in?
Correct Answer
pwd
Question 8
Which of the following commands could you use to see your IP address on UNIX?
Correct Answer
ifconfig
Question 9
A process is a running program.
Correct Answer
True
Page 2 of 142
,Question 10
Which of the following are valid metacharacters used to match file names, known as
wildcards in UNIX, although the implementation may differ some among various
shells?
Correct Answer
Correct! *
Correct! ?
Correct! [ ... ]
Correct! { ... }
Question 11
On the Unix / Linux operating system, the system admin user account is
___________________.
Correct Answer
root
Question 12
A _____________ is a component in Unix that runs on top of the kernel and provides a
command line user environment.
Correct Answer
shell
Question 13
Which of the following can be used in "quoting", which can be used to turn of the
meaning of a metacharacter?
Correct Answer
Correct! " (double quote)
Correct! ' (single quote)
Page 3 of 142
, Question 14
Which of the following commands could you use to find singular and not repeated
lines in a file?
Correct Answer
Correct! uniq
Correct! sort
Correct! comm
Question 15
The history feature lets you recall previous commands (even those executed in
previous sessions), edit them if required, and re-execute them.
Correct Answer
True
Question 16
To set a pointer with a new name or location to an existing file without making a
second copy of the file, use the ____________ command.
Correct Answer
ln
Question 17
Commands may vary from shell to shell. For example, commands in the bash shell
may not be the same syntax format or may not even be available at all in the C shell.
Correct Answer
True
Question 18
Which of the following commands would you use to send mail to another user on the
UNIX system?
Correct Answer
mail or mailx
Page 4 of 142
Answers
Question 1
Which command would you use to print the contents of an environment variable to
the screen?
Correct Answer
echo
Question 2
The UNIX shell is both an interpreter and a scripting language.
Correct Answer
True
Question 3
Linux uses the BSD printing system by default which includes the following
commands:
Correct Answer
lpr, lpq, and lprm
Question 4
Which of the following are common shells for UNIX?
Correct Answer
Correct! Bourne (/bin/sh)
Correct! Korn (/bin/ksh)
Correct! Bash (/bin/bash)
Correct! C (/bin/csh)
Page 1 of 142
,Question 5
UNIX/Linux uses a hierarchical directory structure.
Correct Answer
True
Question 6
Which of the following commands would you use to get help while using the UNIX
command line?
Correct Answer
-help
-info
-man
-(CORRECT)All of the above!
Question 7
Which of the following commands would you use to determine what directory you
are current in?
Correct Answer
pwd
Question 8
Which of the following commands could you use to see your IP address on UNIX?
Correct Answer
ifconfig
Question 9
A process is a running program.
Correct Answer
True
Page 2 of 142
,Question 10
Which of the following are valid metacharacters used to match file names, known as
wildcards in UNIX, although the implementation may differ some among various
shells?
Correct Answer
Correct! *
Correct! ?
Correct! [ ... ]
Correct! { ... }
Question 11
On the Unix / Linux operating system, the system admin user account is
___________________.
Correct Answer
root
Question 12
A _____________ is a component in Unix that runs on top of the kernel and provides a
command line user environment.
Correct Answer
shell
Question 13
Which of the following can be used in "quoting", which can be used to turn of the
meaning of a metacharacter?
Correct Answer
Correct! " (double quote)
Correct! ' (single quote)
Page 3 of 142
, Question 14
Which of the following commands could you use to find singular and not repeated
lines in a file?
Correct Answer
Correct! uniq
Correct! sort
Correct! comm
Question 15
The history feature lets you recall previous commands (even those executed in
previous sessions), edit them if required, and re-execute them.
Correct Answer
True
Question 16
To set a pointer with a new name or location to an existing file without making a
second copy of the file, use the ____________ command.
Correct Answer
ln
Question 17
Commands may vary from shell to shell. For example, commands in the bash shell
may not be the same syntax format or may not even be available at all in the C shell.
Correct Answer
True
Question 18
Which of the following commands would you use to send mail to another user on the
UNIX system?
Correct Answer
mail or mailx
Page 4 of 142