LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-21-2008, 08:37 PM   #1
bpc
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
How to find and edit a .conf file


Hello all, I am very new to Linux and I think I am getting the hang of it. My question is.... how do I find and edit a .conf (if I know the path)? I come from the windows world and I know how to edit these files but for the life of me, I can't get to this file.

Do I need to have an interface or is this a command line type of editing I need to do at the server level?

I just installed ClarkCOnnect and am experimenting on the different modules. One happens to be the FTP Server which uses ProFTPD.conf.

If there is documentation that simplifies the most basic commands, I would appreciate the info.
 
Old 04-21-2008, 08:57 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,164

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Depends on the distro ...
... and the Desktop manager ...
... and the security model ...
... and file manager (if any) ...

You get the idea. If you are in a (GUI) file manager, generally double-clicking should launch a GUI full-screen editor. Just like that other place. Saving it will usually be a problem in that you won't be authorised. That can be rectified a couple of different ways - depending on the distro ...

More info needed about your setup.
 
Old 04-21-2008, 09:11 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Easiest way I find is through a terminal, usually as root since root can save most configs.

Next question is choise of editor. I use vim, as a lot of people here do, but there is nano, emacs, plus more. For vim, you would type

vim /path_to_config/config_file.conf

Then edit away. You will want to find a decent tutorial on vim (or vi) since it's probably not like anything you've used. nano is pretty self explanetory from the couple of times I've had to use it.

Get used to vi(m) - it's commands are actually used quite a bit in *nix world.
 
Old 04-21-2008, 09:11 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by bpc View Post
Hello all, I am very new to Linux and I think I am getting the hang of it. My question is.... how do I find and edit a .conf (if I know the path)? I come from the windows world and I know how to edit these files but for the life of me, I can't get to this file.

Do I need to have an interface or is this a command line type of editing I need to do at the server level?

I just installed ClarkCOnnect and am experimenting on the different modules. One happens to be the FTP Server which uses ProFTPD.conf.

If there is documentation that simplifies the most basic commands, I would appreciate the info.
Hi,

and welcome to LQ!

You could try
locate -i ProFTPD.conf
or, if (s)locate isn't installed,
find / -iname ProFTPD.conf

Chances are that it's the capitalisation that throws you off
in your attempts to find it - mixed case in Linux is VERY uncommon
since Linux (like Unix) is case-sensitive.



Cheers,
Tink
 
Old 04-22-2008, 08:16 AM   #5
bpc
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Original Poster
Rep: Reputation: 0
How to find and edit a .conf file

I was able to locate the file (through the "locate" command) and by process of ellimnation, I was able to open it up to edit. This brings me bacl to my DOS years. (Oops! Sorry, I didn't mean to mention the other OS.)

One of the posts (syg00)mentions:
Depends on the distro ...
... and the Desktop manager ...
... and the security model ...
... and file manager (if any) ...
This is what I am looking for - a desktop manager. I am using ClarkCOnnect for my server. I did not see an option for a desktop. Is this something I need to install (or as you call "distro")?

Also, if there are any "Linux for Dummies" book that you would recommend, please let me know.
 
Old 04-22-2008, 08:36 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,164

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Having no experience of it, ClarkConnect appears to be a bit of a "niche" market. If you are merely looking for an intro to Linux, there are likely to be better options. Else maybe pay for their support - not that I'm in favour of that generally.

If you want that/need that particular distro (distribution - ClarkConnect in your case), you don't get to play with a GUI desktop. Your (best) edit options appear to be vim or nano - I like the latter.
 
Old 04-22-2008, 06:20 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,294

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
This is a very good tutorial: http://rute.2038bug.com/index.html.gz
 
  


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
edit conf file trecool Mandriva 4 02-18-2007 04:55 PM
edit a .conf file master Linux - General 7 10-13-2005 05:49 PM
How to edit yum.conf file? sirius57 Fedora 10 06-23-2005 12:00 PM
Can't find edit grub.conf when im in command line. izac5 Linux - Newbie 7 11-16-2004 04:24 PM
how and where to edit the resolv.conf file? apu95 Linux - Wireless Networking 3 05-05-2004 11:10 PM


All times are GMT -5. The time now is 10:10 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