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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education