LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-02-2009, 08:23 AM   #1
donadoni
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
Thumbs up exit text editor


using this tutorial to change ip settings how do i exit and save?
http://www.ubuntugeek.com/ubuntu-net...mand-line.html

im currently stuck here
http://img197.imageshack.us/img197/8362/76220183.jpg


cheers for any help
 
Old 06-02-2009, 08:25 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Code:
:wq
 
Old 06-02-2009, 08:26 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

That looks like vi.

Press ESC and then :wq!

The w tells vi to write the file, the q quits the file and the ! forces the write and quit.
 
Old 06-02-2009, 08:29 AM   #4
donadoni
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up

thanks very much been sitting for ages trying to exit that
 
Old 06-02-2009, 08:35 AM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
You can use gedit to edit files (until you've mastered vi, which I haven't yet ).
Code:
sudo gedit /etc/network/interfaces
Edit:
Should be :
Code:
gksudo gedit (then whatever file)

Last edited by brianL; 06-02-2009 at 09:10 AM.
 
Old 06-02-2009, 09:09 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,541
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

You should take a look at the 'Linux Editor' section of 'Slackware-Links'. More than just SlackwareŽ links!
 
Old 06-02-2009, 07:36 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
For vi/vim, you only need

esc

:x

that's it
 
Old 06-02-2009, 07:39 PM   #8
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Real programmers use emacs
 
Old 06-03-2009, 07:19 AM   #9
paul81
LQ Newbie
 
Registered: Feb 2008
Location: Rotterdam, Netherlands
Distribution: Fedora and Ubuntu
Posts: 14

Rep: Reputation: 1
My compliments for using vi It's a very good text editor, but it's very hard to learn. The advantage of vi above all the other editors, is that you'll find this text editor on every other linux and unix system you'll find. That's my reason for mastering the arts of vi

Try using the vi cheatsheet found here: http://www.lagmonster.org/docs/vi.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
text selection question in text editor olin Linux - Software 1 09-25-2007 02:25 PM
Text Editor on Fedora Core 4 in Text Mode blong4life Linux - Software 5 07-31-2006 10:07 PM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 12:28 PM
text editor Mig21 Linux - Software 17 07-07-2005 06:27 PM
exit slack gives a black screen, not a text mode jayandstuff Slackware 5 12-21-2004 12:32 AM


All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration