ANSWERS!!!
When you use find, it is useful to note that some UNIX versions require the ____ option after
the file name to display the names of files.
-display
-show
-names correct answers -print
When you no longer need a file, you can delete it using the ____ command.
rm
remove
dl
delete correct answers rm
The cp ____ option creates a symbolic link or name at the destination rather than a physical
file.
-s
-y
-l
-n correct answers -s
If you execute ____, the contents of file1 are sorted and the results are stored in file2.
sort file1 -o file2
sort file1 -d file2
sort file1 > file2
sort file1 > file2
sort file1 file2 correct answers sort file1 > file2
What is a shell script? correct answers
____________________ special files are related to devices, such as disks, and send
information using blocks of data. correct answers
Consider a simple file, called vegetables, containing the following four lines:
Carrots
Spinach
Lettuce
Beans
We also have a bread file that contains the following four lines:
Whole wheat
White bread
Sourdough
, Pumpernickel
What will be the result of executing the following command?
paste -d’,’ vegetables bread > food correct answers
You can use the ____________________ command to associate lines in two files on the basis
of a common field in both files. correct answers Join?
The ____ option of the find command displays files that have been changed within the last n
minutes.
-min n
-cmin n
-nmin n
-mmin n correct answers -mmin n
The ____ command is used to look for patterns in files.
awk
find
pattern
search correct answers awk
What is the purpose of entering the following command?
cp designs/* duplicates correct answers
You can use the ____________________ command to remove specific columns or fields
from a file. correct answers
You can use the ____ command to create empty files.
touch
create
make
null correct answers touch
Moving and renaming a file are essentially the same operation.
True
False correct answers True
Assuming project1, project2 and project3 are files, what is the purpose of entering the
following command?
cp project1 project2 project3 duplicates correct answers
this option prevents the touch command from creating a file, if it does not already exist
paste
-i
> (gt;)
-t
-u
-d