ove cursor to the last line of the file with one key: G Use one key to move cursor to bottom line of screen: L Move cursor to line 32 with three keys: <32>G Turn on/off line numbers: :set nu , :set nonu Forward/backward one page: ctrl-f , ctrl-b Join the current line with next line: J Replace the whole current line with “abc” with five keys: Append text “abc” at the end of current line: A You just deleted one line by accident. Undo this with one key: u Delete next six lines including current line with three keys: 6dw Delete from cursor to the rest of current line with one key: D Save your changes without quitting vi: :w Delete next five lines from current line and paste them back at the end of the file: 5dd, p Delete next seven characters from cursor with two keys: 7x Swap current char with the next one with just two keys: r Temporarily leave vi as a background process and then come back to vi: ctrl-z You are in vi with file science.txt, turn on search highlight and find all strings of “child”: :set hlsearch , / , ? You are in vi with file science.txt, replace all “the”s with “abc” without prompt: :n,m s///g Clear the highlights from last search: :set hlsearch! Read a file a.cpp into vi below the current line: :r

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

pls check if my unix answers are correct and provide corrections if necessary(commas separate the commands)

 

Move cursor to the last line of the file with one key: G

Use one key to move cursor to bottom line of screen: L

Move cursor to line 32 with three keys: <32>G

Turn on/off line numbers: :set nu , :set nonu

Forward/backward one page: ctrl-f , ctrl-b

Join the current line with next line: J

Replace the whole current line with “abc” with five keys:

Append text “abc” at the end of current line: A

You just deleted one line by accident. Undo this with one key: u

Delete next six lines including current line with three keys: 6dw

Delete from cursor to the rest of current line with one key: D

Save your changes without quitting vi: :w

Delete next five lines from current line and paste them back at the end of the file: 5dd, p

Delete next seven characters from cursor with two keys: 7x

Swap current char with the next one with just two keys: r<c>

Temporarily leave vi as a background process and then come back to vi: ctrl-z

You are in vi with file science.txt, turn on search highlight and find all strings of “child”: :set hlsearch , /<child> , ?<string>

You are in vi with file science.txt, replace all “the”s with “abc” without prompt: :n,m s/<the’s>/<abc>/g

Clear the highlights from last search: :set hlsearch!

Read a file a.cpp into vi below the current line: :r <a.cpp> 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Multimedia tools and applications
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L