Solved

sunsolaris

Posted on 2014-02-26
3
106 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fetching data from Multiple Linux Server using Shell Scripting 55 136
Martian Packets Unix 5 51
winscp where are logs stored 3 35
ignore other .htaccess 2 45
Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

770 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