UNIX Final Flashcards
UNIX was designed as a multi-user, multi-tasking operating system. T/F?
True
Which of the following is not a UNIX based operating system?
Question options:
BSD
SunOS
SVR4
MVS
MVS
A 10Mb and 100Mb connection both transmit individual bits at the same speed, but the 100Mb connection has more _______ than the 10Mb connection.
bandwidth
Which of the following is not a Linux based operating system?
Question options:
Ubuntu
WNT
SuSE
RedHat
WNT
Which of the following commands can be used to change the permissions of a file?
Question options:
chmod
chown
ps -ef
ls -l
chmod
UNIX was created by researchers in AT&T’s Bell Laboratories after they had worked on a project called Multics.
Question options:
True
False
True
The original term ‘computer’ referred to people, not machines.
Question options:
True
False
True
Which of the following is not a valid filename?
Question options:
pV_test
zero/one
test.txt
How many times?
zero/one
When I want to make a new directory I would issue the _____ command.
mkdir
The first process, PID 1, is always the process called ____.
init
Which of the following will NOT display the contents of a file?
Question options:
cat
file
more
less
file
Fill in the blank so that the following command appends (does not overwrite) to an existing file:
$ps aux ___ test.txt
> >
An option to prevent accidental overwrites of existing file is to set an environment variable using ‘set -o’. Type the name of the variable:
noclobber
Which of the following files is the special file that will not retain anything written to it, also known as ‘the bit bucket’?
Question options:
/dev/null
/dev/2
/dev/tty
/bin/sh
/dev/null
Output is sent to standard out - stdout, errors are sent to standard error - stderr.
Question options:
True
False
True
The ed editor is a line editor than can be exited by typing the letter q.
Question options:
True
False
True
Which of the following is not a valid mode for vi?
Question options:
command
insert
extended
binary
binary
The arrow keys can be used in vi to move about in the file. The arrow keys are duplicated by what other keys: ______
hjkl
The vi command, ____, will write the changes and quit the editor.
:wq
The ‘i’ command in vi will _____ text in a file.
insert
Which of the following commands cannot be used to display output?
Question options:
less
cat
tail
cd
cd
Which of the following commands will redirect errors of a find command to the ‘bit bucket’ - null file?
Question options:
find / -name test -print > /dev/null
find / -name test -print»_space; /dev/null
find / -name test -print > /dev/null/test
find / -name test -print 2> /dev/null
find / -name test -print 2> /dev/null
The editor, ed, was developed before computer displays and mice were readily avaialble.
Question options:
True
False
True
UTF-8 can be considered an extension of what other character code set?
Question options:
EBCDIC
FORTRAN
ASCII
ISO 9000
ASCII
Searching for a single digit in grep can be done by placing the range of numbers in square brackets. The following selects any number zero through nine - [0-9]. What is the appropriate POSIX construction for [0-9]?
Question options:
[[:digit:]]
[[digit]]
[:digit:]
[digit]
[[:digit:]]
The command grep stands for Globally search for Regular Expression and Print.
Question options:
True
False
True
Which of the following will look for an E or e at the beginning of a line?
Question options:
‘[Ee]’
’[^Ee]’
’^[Ee]’
‘[Ee]$’
’^[Ee]’
The following will find any sting of three digits preceded by and followed by a space in the file text;
grep ‘ [0-9]{3} ‘ text
Question options:
True
False
True