• 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 have just finished a 25-page paper that you have written using Emacs. After your instructor has briefly looked at the paper, she recommends that you change all instances of the reference "data is" to "data are" before you submit it. Which command can you use to locate these references in the file for a quick assessment of how much you have to change?
grep "data is" /assignments/data_sources
You are interested in determining the number of words in your /assignments/
data_sources file mentioned in Question 1.Which of the following commands should
you use?
wc -w /assignments/data_sources
Which of the following are examples of manipulation and transformation
commands?
sed
pr
join
paste
Which of the following is true of the pipe operator?
It redirects the output of one command to the input of another command.
Because the data was formatted the same in two inventory files, you decided to combine their contents into one file. Now you want to determine if there are duplicate entries on consecutive lines in the new file. Which command enables you to find the duplicate entries?
uniq
Your friend is using the command comm entryfile, but is getting an error message.
What is the problem?
It is necessary to specify two files when you use the comm command.
Your boss is trying to import the customers file into her spreadsheet program, but
the data goes into the spreadsheet incorrectly.This is because the fields are separated
by dashes (-) and the spreadsheet program requires the fields to be separated by
colons (:).Which of the following commands can you use to convert the
customers file?
tr "-" ":" < customers
How can you link multiple files to manipulate the data in those files?
with a common or key field
While in the Bash shell, you have written a simple script file and now want to
execute the script.Which of the following commands enables you to run the script?
sh
You are using the grep command, but it is only searching through files in your immediate home directory. What option enables you to search through subdirectories
below your home directory?
-r
Your software has a bug in that it enables you to create a vendors file in which there
are duplicate entries of vendors.Which of the following methods enables you to
remove the duplicate vendors in this text file?
Sort the file and then use the uniq command to remove the duplicates, inputting the
result in a new file.
Each time you list the files in your home directory, the output scrolls by so fast you
can’t read it.Which of the following enables you to view the output one screen at
a time?
ls -l | more
You are creating a file to send over the Internet via a satellite connection that only
allows you to send files under 250 KB.Which of the following commands enables
you to determine the number of bytes in the file before you try to send it?
wc -c
In the command sed -f fixit notes > instructions, what is “fixit”?
a script file
When you design a record layout, you should do which of the following?
identify each field by data type
identify each field by name
store only fields relevant to the record’s purpose
What sed command option enables you to append new text to a file?
a\
Your boss has two salary scale files, salary and salary1, and wants to compare their contents side by side to see if there are any differences in the files. Which of the following commands should he use?
comm salary salary1
When you use the pr command how can you limit the output to only a screen full
of text to view
Use the -l 23 option
When you use the Awk printf capability, what does the dollar sign ($) represent?
a data field
Your boss is trying to delete the word “difficult” as it appears in a text file containing
his speech about motivation.The name of the file is motivate.When he decides to
use the tr command to delete this word, it instead deletes characters throughout the
text.Which of the following commands is he likely to have used?
tr -d "difficult" < motivate
When you enter the command grep Linux /info/Linux_ features | head, what is the
maximum number of lines that will be displayed?
10 lines
List four examples of selection commands
Comm: compares sorted files and shows differences;
cut: selects columns (fields);
diff: compares and selects differences in two files;
grep: selects lines or rows
What is the general format for using the pipe operator?
First_command | second_command
Briefly explain what you can accomplish with the sed command
Sed can make large changes to large files
You want to create a file of your friends’ and relatives’ names, addresses, telephone
numbers, and other information.When you mention this to your sister-in-law, she
recommends having separate fields for the first, middle, and last names. Briefly
explain why this is a good idea.
When you divide the name into three fields, you can use many more data sorting techniques, like sorting by last name, or using all three fields to identify duplicate data