Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Complete Hands-On Projects 3-1 through 3-14. Using Linux Terminal: Complete the

ID: 3717664 • Letter: C

Question

Complete Hands-On Projects 3-1 through 3-14.
Using Linux Terminal: Complete the following and submit a copy paste of the terminal showing completed.
1. Create a new vi file called "textfiles".

2.Write text in "Textfiles" file.

3.Use the vi editors repeat command to copy text.

4.Move the cursor with vi commands.

5.Edit and delete text using vi commands.

6.Do string searches in text files using vi.

7.Use screen-oriented and line-oriented editing commands.

8.Save in vi without exiting.

9.Create a new file and copy text from "textfiles".

10.Use two ways to shell out of vi to run commands.

11.Turn on line numbers.

12.Cut and paste lines in vi.

13.Print documents with vi.

14.Exit a document without saving.

Explanation / Answer

Hi,
This has too many sub parts, please post others as separate questions, answering few as per chegg policy
This is related to vi command, let me explain the commands needed for each of the task

1. Create a new vi file called "textfiles". -- for this just type vi textfiles

2.Write text in "Textfiles" file. -- write text using keyboard

3.Use the vi editors repeat command to copy text. -- vi command to repeat text is "." , so type .

4.Move the cursor with vi commands. -- to move cursor within vi, we need to use following commands

To move left, press h.

To move right, press l.

To move down, press j.

To move up, press k.

5.Edit and delete text using vi commands.-- to edit you can use "cw" command, place the cursor at the beginning of the word that needs to be changed and type cw "newword"
similarly delete can be done by typing "dw" after taking cursor to the word beginning  

6.Do string searches in text files using vi.
for searching we need to use
/string search forward for occurrence of string in text

7.Use screen-oriented and line-oriented editing commands.
line oriented commands can be used after typing "ex" which will open the line oriented commands
vi is a screen oriented editor

8.Save in vi without exiting.
to save press esc to come out of insert mode and use the command ":w"


Thumbs up if this was helpful, otherwise let me know in comments

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote