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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-15-2010, 03:14 AM
|
#1
|
LQ Newbie
Registered: Jul 2007
Posts: 5
Rep:
|
server name directive
Hi there
So im setting up my own server never done it before so should be interesting Im going to install apache but it says in my instructions
First thing is make sure you open up /etc/httpd/conf/httpd.conf and at least change the ServerName directive
So ive found the file, and i managed to open it with hte command
ed httpd.conf
But it just showed a 5 or 6 digit number.
Do i need to edit this and why ?
What command should i use to edit? what should i put into this file ? how do i close the file when ive edited it?
Woc
Last edited by worldofchat; 01-15-2010 at 03:16 AM.
|
|
|
01-15-2010, 05:45 AM
|
#2
|
Member
Registered: Aug 2007
Location: Pune, Maharashtra, India
Distribution: Gentoo
Posts: 84
Rep:
|
LOL ! ed is not an editor.
Use vim or vi to edit if you are familiar with it. Otherwise use some GUI editor like gedit.
|
|
|
01-15-2010, 09:12 AM
|
#3
|
Member
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Rep:
|
GNU nano is quite an easy editor.
|
|
|
01-17-2010, 07:39 PM
|
#4
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415
|
Actally, ed is a really old school editor, pre-cursor to vi. However, these days I'd definitely use vim (may be symlinked from the name vi).
http://linux.die.net/man/1/ed
|
|
|
01-27-2010, 11:32 AM
|
#5
|
Member
Registered: Aug 2007
Location: Pune, Maharashtra, India
Distribution: Gentoo
Posts: 84
Rep:
|
Quote:
Originally Posted by chrism01
Actally, ed is a really old school editor, pre-cursor to vi. However, these days I'd definitely use vim (may be symlinked from the name vi).
http://linux.die.net/man/1/ed
|
vi and vim are different.
vim stands for vi improved. vim has a pleothra of features as compared to its predecessor vi.
|
|
|
01-27-2010, 12:54 PM
|
#6
|
LQ Newbie
Registered: Jun 2003
Distribution: Debian, Ubuntu, RedHat, CentOS and others
Posts: 3
Rep:
|
Both vi and vim are great editors. They however have quite a steep learning curve. If you are new to Linux I would recommend nano as it is easy to use....
|
|
|
01-27-2010, 08:43 PM
|
#7
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,415
|
Different editors, but some distros do symlink the name vi to point to vim. You can usually access it from via the full path.
|
|
|
All times are GMT -5. The time now is 09:07 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|