1.
Jim wants to alias the grep command to the string search. Choose the command that Jim should add to his .
kshrc file to accomplish this alias.
2.
Wally wants to quickly create a file that stores some information about a upcoming meeting. Wally is on the
phone with his customer and doesn't want to interrupt the conversation to find a pen or pencil. Choose the
command sequence that Wally might use on his system to store this information.
3.
While working in his home directory Jim lists the directory contents with the following result:
From this list of files, which file is executable?
4.
Val wants to change the permissions on a file to remove access for all user that are not in the file's group. She
also wants the group permissions to allow the file to have read and write access. Val can currently read and
write the file. Which octal mode with the chmod command will set those permissions?
5.
You have a file that contains a list of parts in a single column. You need to append the text string .ex2009 to
each entry. You will use the vi editor and the last line mode to append this text to each entry. Which command
will add the text correctly?
6.
You own a file that is part of a web development project. This file is shared by the group permission among the
members of the web development group called webdev. The world permissions for the file are set to read only
for security reasons. You wish to give write access on the file for a contractor not in the webdev group. You do
not have root access. Which method describes how you can grant write permissions to the contractor's user
ID?
7.
Jane is about to edit a file with the vi editor. She executes the following command:
$ vi ./customer_sat.txt
Choose the vi editor mode that Jane will be using when the file is opened.
8.
Jim is considering using a different shell. One of the shell features that Jim would like to use is the tilde (~)
metacharacter, used to move to the user's home directory. Choose the shell that does NOT support the tilde (~)
metacharacter.
9.
You have a directory that contains more than 30 files. You need to remove a number of these files, but each of
the files you need to remove is uniquely named. Choose the command that might best help you to remove
these dissimilar files.
10.
Wally has two files with data about dark and light coffee beans. The data is stored in the files named
dark_beans and light_beans. The files are in the coffee directory of Wally's home directory. Wally would like to
display a sorted list of all of the words from both lists that start with the letter "g" or "G". The files contain mixed
case names. Which command line can Wally use to display the data?