LinuxQuestions.org
Help answer threads with 0 replies.
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 03-26-2010, 11:31 AM   #1
myubuntu
LQ Newbie
 
Registered: Feb 2010
Posts: 23
Blog Entries: 2

Rep: Reputation: 15
OpenSuse Terminal text editor


Hi guys,

please let me know what are the commands I have to use & how to save a "OpenSuse Terminal text editor" once we have updated the file.
 
Old 03-26-2010, 01:12 PM   #2
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
You may want to rephrase your question. What do you mean by "OpenSuse Terminal text editor"? What file? Commands to do what?
 
1 members found this post helpful.
Old 03-26-2010, 11:31 PM   #3
myubuntu
LQ Newbie
 
Registered: Feb 2010
Posts: 23
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Post

Quote:
Originally Posted by penguiniator View Post
You may want to rephrase your question. What do you mean by "OpenSuse Terminal text editor"? What file? Commands to do what?
For example....I am trying to edit sshd_config in opensuse, I am trying to do as username@ubuntu$:etc/ssh/ vi sshd_config.....I did all the config changes, I couldnt save & close......any solutions please let me know.
 
Old 03-27-2010, 03:55 AM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I would suggest that you use kwrite instead of vi. But if you want to learn and use vi check out these sites.
 
1 members found this post helpful.
Old 03-27-2010, 05:28 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
vim (or any of its many clones for that matter) is not a trivial thing to learn and use, and the original poster seems to be lost enough already.

I suggest using either a GUI based simple editor, like gedit or kwrite, maybe leafpad or mousepad even. Else, if you really need to use a text mode editor, use something simpler like nano or mcedit. Those editors are simple enough to use if you follow the instructions you can read on the screen.
 
1 members found this post helpful.
Old 03-27-2010, 06:11 AM   #6
Krane
LQ Newbie
 
Registered: Feb 2010
Posts: 20

Rep: Reputation: 4
If the file you want to edit is in /etc/SSH/ you may need to be root to save any changes to the file.

Try opening a terminal and typing:

Code:
su
Password: (enter root password here)
nano /path/to/file/
Then use ctrl+x to save (write out) changes.
 
1 members found this post helpful.
Old 03-27-2010, 11:38 PM   #7
myubuntu
LQ Newbie
 
Registered: Feb 2010
Posts: 23
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Thumbs up OpenSuse Terminal text editor

Hey Guys thanks for your feed back.I can nano the file. I didnt install the "nano", I installed & its working now.....
 
Old 03-28-2010, 07:08 AM   #8
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If you did a default kde desktop, kwrite is the default editor with the installation. If you like nano there is nothing wrong there either.
 
Old 04-02-2010, 10:14 PM   #9
myubuntu
LQ Newbie
 
Registered: Feb 2010
Posts: 23
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Larry Webb View Post
If you did a default kde desktop, kwrite is the default editor with the installation. If you like nano there is nothing wrong there either.
thanks for your input
 
  


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
Whats your favorite terminal text editor??? Necronomicom Linux - Software 8 12-16-2011 06:45 AM
opening files in text editor from the terminal campanula Linux - Newbie 4 03-08-2010 03:51 PM
OpenSuse Text Editor greengrocer Linux - Newbie 15 10-16-2008 08:55 AM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 11:28 AM
How do I open a text editor in a shell terminal? alex1986 Linux - Newbie 9 11-30-2005 03:52 PM


All times are GMT -5. The time now is 02:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration