IU Bloomington Evaluation Services and Testing

Indiana University
Bloomington Evaluation Services and Testing

QuizSite  Students
Quizzes · Tests · Evaluations · Surveys
Activity: Unix
Student: dgerman (Adrian German)
Instructor: dgerman
Course: A348 Section: LECT
Question 1.
One can use the Unix du command to

manipulate file names and attributes
summarize a hierarchy of directories and their contents
delete a username from a list of known usernames
find out the differences between two files
this command is not a valid command on the burrow machines.


Question 2.
One can use the Unix file command to

summarize disk usage
list the last few lines of a file
find out the type of a file
display the actual contents of a file
none of the above.


Question 3.
What could you use tail -f for?

to shorten a file to a specified size
to monitor access as logged to a file
to append a file to another one
the command is not a valid Unix command


Question 4.
One could use the grep command to:

search for patterns in a file or text output
show the state of all sockets and all routing table entries
grab a process id and restart the process associated with it
concatenate and display files
print the route packets take to network host


Question 5.
To type the contents of a file one can use:

umask
du
file
grep
cat


Question 6.
The netstat command can be used to

print the route packets take to network host
show which ports are being used on the host
monitor access to your web server's log files
send a file over the network and receive back a reply
find the IP number of a remote computer from its DNS name


Question 7.
The Unix nslookup command can be used to

print the route packets take to network host
show which ports are being used on the host
monitor access to your web server's log files
send a file over the network and receive back a reply
find the IP number of a remote computer from its DNS name


Question 8.
The Unix command cp can be used to

change priority associated with a process
compare two files
change permissions on a file
copy files
concatenate and display files


Question 9.
The rm command is used to

delete directory entries
rename files and directories
start a remote shell
kill a process given its process ID


Question 10.
The mkdir command can be used to

rename or delete files
create directories
compare files and directories
this is a DOS command and not a Unix command


Question 11.
To change permissions on a file one could use which command:

chgpm
chmod
cp
pm


Question 12.
One could use the ps command to

work with postscript files
print information about the active processes
print status (of a network port)
print size of a specified file


Question 13.
The cd command could be used to

compare directories for size and number of files
change the default login shell on the host it's run on
move from a directory to another
this is not a Unix command


Question 14.
The which command can be used to

find out which processes are currently running
locate a command and display its pathname
which users are currently logged on
determine the IP number of the host you're logged into


Question 15.
To compare two text files for differences one can use

compare
file
diff
tar


Question 16.
The ls command is used to

list contents of directory
list process status
create tape archives and add or extract files
rename files


Question 17.
The Unix command mv can be used to

list contents of directory
list process status
create tape archives and add or extract files
rename files


Question 18.
The Unix command pwd can be used to

create a directory
kill a process given its ID
print the current location in the file system
produce a detailed report on the network status


Question 19.
To create an archive one could use which command:

mv
tar
ls
grep


Question 20.
The Unix gunzip is used to

create a tape archive
uncompress a file
double the size of a file
create an identical copy of the file on disk


Click to submit your answers.   Help


This activity is available between these dates and times: 09.12.08:00-12.27.23:59
It can be submitted a total of 100 times.
If it is a scored activity, the highest non-zero score will be counted.


Screen: TAKE_QUIZ
Last updated: Thu Mar 8 13:40:07 2001
URL: https://www.indiana.edu/~best/cgi-bin/quizsite/students.pl
Comments: best@indiana.edu
Copyright 2000, BEST & The Trustees of Indiana University