• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/25

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

25 Cards in this Set

  • Front
  • Back
You are starting a new year and need to create 10 empty files for your accounting
system. Which of the following commands or operators enable you to quickly create
these files?
>
Your project team uses a group of the same files and tracks whether they are still in
use by looking at the last modified date. You need to show that a series of files are
still in use by changing the last modified date to today. What command do you use?
touch
Which of the following are ways in which you can structure a record containing
data?
fixed-length
variable-length
You need to delete 30 files that all start with the letters "customer", such as customer_accounts, customer_number, and so on. Which command enables you to quickly delete these files?
rm customer*
You are in your home directory and need to copy the file MemoRequest to a folder
under your home directory called Memos. Which of the following commands do
you use?
cp MemoRequest Memos
You have a personnel file that contains the names, addresses, and telephone numbers
of all employees. The first field in the personnel file is the employee number and the
second field is the employee last name. The third field is the first name and middle
initial. Because there are no employees with the same last name, you want to check
the file by last name to make certainall employees are included. Which command do you use?
cut -f2 personnel
You are doing some “house cleaning” and want to delete several empty directories.
Which of the following commands can you use?
rmdir
You are trying to use the command sort -t: +5 datastore, but you get an error message
each time you try it. How can you save the error message in a file called error, so
you can e-mail the file to your computer support person?
Enter sort -t: +5 datastore 2> error
Which of the following commands would you use to make a backup copy of the file
AR2008?
cp AR2008 AR2008.bak
You have a lot of subdirectories under your home directory and know that you saved
the file supplemental in one of them, but you are not sure which one. After you use
cd to change to your home directory, which of the following commands enables you
to search all of your subdirectories for the file?
find -name supplemental
You have created a script file called sum_report in your home directory and have
made it executable. What command do you use to run the script?
./sum_report
Standard output is referred to as which of the following?
stdout
Which of the following conditions must be met for you to combine two files using
the join command?
Both files must have a field that contains a numbered identifier;
The two files must have a common field, such as last name
Which of the following commands can you use to sort the file vendor_name and
display the results on the screen?
sort vendor_name
When you use the paste command, columns of information are separated by a tab.
However, your boss wants the columns separated by a colon. What option enables
you to specify the colon as the separator?
-d:
You are examining your addresses file, which contains the first and last names of people
you know as well as their street address, city, state, zip code, and telephone number. You
want to print a list of last names, which is field 1, and telephone numbers, which is
field 7. Which of the following commands enables you to print this list?
cut -f1,7 addresses
You keep a yearly record of the birds you’ve seen in your town. The name of the file
is birds. The file contains the following fields: name (field 1), markings (field 2),
year(s) viewed (field 3), and location (field 4). You want to review the contents of
the file, sorted by location. Which of the following commands do you use?
sort -k 4 birds
Which of the following can be accomplished with the mv command?
move a file;
rename a file
Your boss asks you to create a professional-looking report from the contents of two
files. Which of the following tools enables you to produce a polished report?
awk
What command enables you to sort the contents of a file in reverse order?
sort -r
You want to combine two files, data07 and data08, into a file called data_all. Which
of the following commands do you use?
cat data07 data08 > data_all
How can you use the touch command to create four new files called sum, datanew,
results, and calcs (using one command line)?
separate each file name with a comma
Create a command that sorts on the second field in the file addresses and then writes
the sorted results to the new file, sorted_addresses.
Sort –k 2 sorted_addresses
Create a command that sorts on the second field in the file addresses and then writes
the sorted results to the new file, sorted_addresses.
Cp spreadsheets /* accounts
You play guitar and keep two files on your computer. One file, called strings, lists the
different brands of strings you keep on hand. Another file, called music, lists the
music books and scores you own. When you enter the command paste strings music,
what happens?
Side by side on the screen; the left column lists the strings; the right columns list the mucis books