- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can to save and cancel changes in VI Editor
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 04:59 AM
тАО10-27-2008 04:59 AM
Dears,
Can someone help me to know how to save and cancel changes in VI Editor.
PLS
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 05:04 AM
тАО10-27-2008 05:04 AM
Re: How can to save and cancel changes in VI Editor
To cancel:
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 05:06 AM
тАО10-27-2008 05:06 AM
Solution- hit ESC
- type ':wq' (without the quotes)
To just save (write):
- hit ESC
- type ':w' (without the quotes)
To quit, cancelling changes (force quit):
- hit ESC
- type ':q!' (without the quotes)
This document provides more very useful info on the vi editor: http://www.eng.hawaii.edu/Tutor/vi.html
Cheers,
Wout
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 05:07 AM
тАО10-27-2008 05:07 AM
Re: How can to save and cancel changes in VI Editor
Type ZZ to quit the program saving the changes, and if you want to quit without saving the changes type :q!
Press the ESC key to enter those commands...
Also for more references, just search for "vi sheet cheat" on google and you are going to find plenty of good info
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 05:13 AM
тАО10-27-2008 05:13 AM
Re: How can to save and cancel changes in VI Editor
To abort all changes and exit: :q!
To undo the last set of changes, either "u" or "U".
>Pete: To save:
>To cancel:
There should be a colon after the
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 05:15 AM
тАО10-27-2008 05:15 AM
Re: How can to save and cancel changes in VI Editor
esc :u
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 05:54 AM
тАО10-27-2008 05:54 AM
Re: How can to save and cancel changes in VI Editor
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 06:21 AM
тАО10-27-2008 06:21 AM
Re: How can to save and cancel changes in VI Editor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 10:14 PM
тАО10-27-2008 10:14 PM
Re: How can to save and cancel changes in VI Editor
use super user root for edit any system file:
you can get more help from
#man vi
#vi
To save:
To cancel:
Thanks
khairul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2008 11:12 PM
тАО10-27-2008 11:12 PM
Re: How can to save and cancel changes in VI Editor
http://www.adminschoice.com/docs/vi_editor_ref.htm
Regards,
Asif Sharif
Asif Sharif