LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-15-2002, 09:44 AM   #1
John_Saunders
Member
 
Registered: Jun 2002
Location: Wilmington, NC
Distribution: Red Hat 7.2
Posts: 47

Rep: Reputation: 15
How Do I Edit Files in SSH/Telnet?


I used to use Webmin File Manager to edit the files on my dedicated server but now I can only connect via SSH. Can somebody tell me how I can edit files such as the httpd.conf? I need to make some changes but I have no idea how to do this without Webmin.

Any help would be appreciated.
 
Old 06-15-2002, 10:11 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Just use any command line editor to edit files..

Like vi,vim, pico, jed... and so many others... too many to list.

I always recommend learning or knowing vi, there might be times its the only editor of choice.
 
Old 06-15-2002, 10:13 AM   #3
sbscomp
LQ Newbie
 
Registered: Feb 2001
Location: Eastern IL Univ, Charleston, IL
Posts: 11

Rep: Reputation: 0
You can use vi or emacs (the old standby's). If you're not familiar with those, try using pico. It's incredibly easy, intuitive, and gets the job done.


On the other hand, if you want to go for sadomasochism, you could use ed ;-)

HTH
 
Old 06-15-2002, 10:46 AM   #4
John_Saunders
Member
 
Registered: Jun 2002
Location: Wilmington, NC
Distribution: Red Hat 7.2
Posts: 47

Original Poster
Rep: Reputation: 15
Are any of those installed by default on Red Hat 7.2? Could you tell me how I would go about using one of those programs to get the /usr/local/apache/conf/httpd.conf, open it and make some changes to it?
 
Old 06-15-2002, 11:06 AM   #5
sbscomp
LQ Newbie
 
Registered: Feb 2001
Location: Eastern IL Univ, Charleston, IL
Posts: 11

Rep: Reputation: 0
VI, Emacs, and Pico are by default. (Pico is part of the PINE email package). As for the others, that will depend on how the system was installed. Just try a command and see if it works. VI and emacs are there for sure - They're the standard editors for linux.

As for editing it, you would use (command) (filename), for example:

vi /usr/local/apache/conf/httpd.conf

Last edited by sbscomp; 06-15-2002 at 11:07 AM.
 
Old 06-15-2002, 11:08 AM   #6
John_Saunders
Member
 
Registered: Jun 2002
Location: Wilmington, NC
Distribution: Red Hat 7.2
Posts: 47

Original Poster
Rep: Reputation: 15
OK Thanks!
 
  


Reply



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
Why you should use ssh instead of telnet. Artanicus Linux - Networking 1 12-02-2005 12:45 PM
X over SSH then telnet JSkalka Linux - Security 5 11-21-2003 04:19 PM
Telnet, ssh, etc. mrozkan *BSD 1 07-18-2002 11:55 AM
Telnet and SSH Rampage2884 Linux - Networking 3 04-30-2002 02:31 PM
Telnet / SSH Seph Linux - Security 2 07-13-2001 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:28 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
Open Source Consulting | Domain Registration