Exercises 1- Create the a time.txt file using vi editor and enter the following text: Time is slow when you wait Time is fast when you are late Time is deadly when you are sad Time is short when you are happy Time is endless when you are in pain Time is long when you feel bored Using the command mode, do the following: a) Replace the word "you" with the "we" word in the above exercise. b) Switch the lines 4 and 5. c) Duplicate the last line. d) Delete the last phrase: So, have a nice time always. e) Using one step only, merge all the lines together as one paragraph. 2- Create the file Sayings.txt using vi editor to write the following sayings: Keep true to the dreams of your youth Success comes to those who are too busy to be looking for it I find that the harder I work, the more luck I seem to have Fall seven times and stand up eight All progress takes place outside the comfort zone a) Save and exit from the file. b) Open the file again and write the following saying between line 1 and line 2: I never dreamed about success, I worked for it c) Switch line 1 with line 3. d) Save the file and exit. Then, display the content of the file with line numbers e) Display the content of the file in reverse order. ) Open the fle again and merge the last two lines. 3- For exercise above: a. Copy the first line of your file and paste it so that it becomes the last line. b. Paste it back at the top of the file.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Search the 25 using the keys {/,?}, what will appear?
- Then save your text and exit.
- Try :q!, :w, and q, record your comments for each command!
Exercises
1- Create the a time.txt file using vi editor and enter the following text:
Time is slow when you wait
Time is fast when you are late
Time is deadly when you are sad
Time is short when you are happy
Time is endless when you are in pain
Time is long when you feel bored
Using the command mode, do the following:
a) Replace the word "you" with the "we" word in the above exercise.
b) Switch the lines 4 and 5.
c) Duplicate the last line.
d) Delete the last phrase: So, have a nice time always.
e) Using one step only, merge all the lines together as one paragraph.
2- Create the file Sayings.txt using vi editor to write the following sayings:
Keep true to the dreams of your youth
Success comes to those who are too busy to be looking for it
I find that the harder I work, the more luck I seem to have
Fall seven times and stand up eight
All progress takes place outside the comfort zone
a) Save and exit from the file.
b) Open the file again and write the following saying between line 1 and line 2:
I never dreamed about success, I worked for it
c) Switch line 1 with line 3.
d) Save the file and exit. Then, display the content of the file with line numbers
e) Display the content of the file in reverse order.
f) Open the fle again and merge the last two lines.
3- For exercise above:
a. Copy the first line of your file and paste it so that it becomes the last line.
b. Paste it back at the top of the file.
8
OS Lab. - 3rd Class - Exp. 10 2021
c. Place the cursor at the beginning of the file and try the following keystrokes.
- уујуур
- 2ууp
d. What was the difference and can you suggest why this may be?
e. Check if the text deleted can be pasted back again.
Transcribed Image Text:Search the 25 using the keys {/,?}, what will appear? - Then save your text and exit. - Try :q!, :w, and q, record your comments for each command! Exercises 1- Create the a time.txt file using vi editor and enter the following text: Time is slow when you wait Time is fast when you are late Time is deadly when you are sad Time is short when you are happy Time is endless when you are in pain Time is long when you feel bored Using the command mode, do the following: a) Replace the word "you" with the "we" word in the above exercise. b) Switch the lines 4 and 5. c) Duplicate the last line. d) Delete the last phrase: So, have a nice time always. e) Using one step only, merge all the lines together as one paragraph. 2- Create the file Sayings.txt using vi editor to write the following sayings: Keep true to the dreams of your youth Success comes to those who are too busy to be looking for it I find that the harder I work, the more luck I seem to have Fall seven times and stand up eight All progress takes place outside the comfort zone a) Save and exit from the file. b) Open the file again and write the following saying between line 1 and line 2: I never dreamed about success, I worked for it c) Switch line 1 with line 3. d) Save the file and exit. Then, display the content of the file with line numbers e) Display the content of the file in reverse order. f) Open the fle again and merge the last two lines. 3- For exercise above: a. Copy the first line of your file and paste it so that it becomes the last line. b. Paste it back at the top of the file. 8 OS Lab. - 3rd Class - Exp. 10 2021 c. Place the cursor at the beginning of the file and try the following keystrokes. - уујуур - 2ууp d. What was the difference and can you suggest why this may be? e. Check if the text deleted can be pasted back again.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY