Solved

sunsolaris

Posted on 2014-02-26
3
104 Views
Last Modified: 2014-10-15
In sunsolaris

if we are using vi editor..
how we will remove all characters from the cursor towards the end
0
Comment
Question by:thomasliju
3 Comments
 
LVL 22

Expert Comment

by:blu
ID: 39889967
End of the line, or end of the file? To delete from the cursor to the end of the line, simply type capital "D". After that, if you want to delete from the next line to the end of the file (assuming you are not already at the last line of the file) type "j" followed by ":.,$d" and the press carriage return.
0
 
LVL 1

Accepted Solution

by:
Reza_a earned 500 total points
ID: 39891057
Press "d"  then "$"  will delete until end of the line
Pressing "d" then "G" will delete until end of the file.
0
 

Author Closing Comment

by:thomasliju
ID: 40383648
options helped.

Thank you.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Video Streaming 6 56
Backup & Restore 3 47
Hacked File Timestamps 4 50
reset ubuntu password for root and admin after clearing it. 7 25
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now