Complete this assignment by downloading this HTML file and editing it (using a text editor---not a special HTML editor). Wherever you see emphasized text (e.g. "Your name" and "Your Student Number" above) you should insert your own text, as appropriate. Submit via D2L at the end of the lab period.
What commands could be used to accomplish to following?
my-dictionary in your home directory.Change this with your answer.
Change this with your answer.
/usr/share/dict/words called words.Change this with your answer.
/usr/share/dict/words to a file called local-words.Change this with your answer.
Change this with your answer.
words.Change this with your answer.
local-words.Change this with your answer.
my-dictionary called my-dictionary-2. How were the symbolic links copied?Change this with your answer.
my-dictionary and my-dictionary-2 directories. What command was used?Change this with your answer.
Change into the /bin directory and use globbing to determine the following. State the command and the result.
c.Change this with your answer.
z.Change this with your answer.
x.Change this with your answer.
l and end with s.Change this with your answer.
l or m and end with d or t.Change this with your answer.
l or m and end with d or t are symbolic links.Change this with your answer.
In a terminal window, enter the following:
$ cd ~ # Or other suitable directory
$ git clone https://gitlab.com/COMP2718/lab2_repos.git
$ cd lab2_repos
Some of the git repo contents include: words, words1, words2, words3, words4, and words5. words is a copy of the dictionary from /usr/share/dict/words. The rest of the files contain a random shuffle of the words found in words. These files with the shuffled words can be recombined to produce words.
Solve the following questions using some of the text tools: wc, ls, cat, grep, sort, uniq, head, and tail. All of the problems can be solved with one command pipeline.
words1, words2, words3, words4, and words5. Use globbing to select these files.Change this with your answer.
words1, words2, words3, words4, and words5. Use globbing to select these files. What is the total count of lines for all the files?Change this with your answer.
pre in words2 and words3. Use globbing to select words2 and words3.Change this with your answer.
ation in words5, using only the last 100 lines from words5.Change this with your answer.
words3.Change this with your answer.
words4.Change this with your answer.
words1.Change this with your answer.
words1, but you must use the -r option to sort. The words from this answer must be the same as the previous question (although their order may differ).Change this with your answer.
all-words that is identical to words, using the files: words1, words2, words3, words4, and words5.Change this with your answer.
x and y from the file words. You cannot use regular expressions.Change this with your answer.
x, y and u from the file words. You cannot use regular expressions.Change this with your answer.
x, y and u from the files words2 and words3. The list of words must be sorted before the first five are selected. You cannot use regular expressions.Change this with your answer.
less, sort, grep and date manpageUsing the man command, answer the following questions.
sort causes sort to ignore case when sorting?Change this with your answer.
sort causes sort to use numeric sorting?Change this with your answer.
-c option do for grep? Give an example using the words file.Change this with your answer.
-n option do for grep.Change this with your answer.
less words and after typing G, what does typing ?oo do. Describe in general terms.Change this with your answer.
Enter the following commands and observe the date program's output:
% date +"%m-%d-%y"
% date +"%d/%m/%Y"
% date +"date is %d/%m/%Y"
Modify the date's format to produce an output similar to the following:
February 1, 2016Change this with your answer.