Posted on 2014-02-26
Medium Priority
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
Question by:thomasliju
LVL 22

Expert Comment

by:Brian Utterback
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.

Accepted Solution

Reza_a earned 2000 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.

Author Closing Comment

ID: 40383648
options helped.

Thank you.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

607 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