Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> How To Open And Edit ?, noob at linux...but trying my best :)
xedor
post Sep 23 2004, 07:30 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 23-September 04
Member No.: 3,822



ohmy.gif Hi ! This will be simple for all u Linux doctors....I need to open and edit some .ini and .cfg files on our server and then save changes... I know its lame for me to not know how to do that...but im 1 step closer every day smile.gif
Thnx for helping me ..
Xedor ph34r.gif
Go to the top of the page
 
+Quote Post
Corey
post Sep 23 2004, 07:36 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 1,254
Joined: 21-September 02
From: St John's, Newfoundland, Canada
Member No.: 3



There are several different text editors included with linux, depending on the distribution you have on the server. After logging in remotely, try open the files with either "pico" or "nano".

Example:

pico /etc/filename.cfg

or

nano /etc/filename.cfg

Both of these editors are almost identical. After making the changes to your file, you can save and exit by pressing Ctrl+X, then press Y to save changes, and then "Enter" to accept the current filename.

If neither of these are available, you may have to use the vi editor which is included in every distribution (or at least should be). Vi is a little more trickier, but the basics are this:

Open the file:

vi /etc/filename.cfg

Enter into interactive mode by pressing the letter 'i'

After making the changes to the file, press "Esc" to go back to the 'command mode'. Then you can save and exit the program with the following command:

:wq

(that's colon+w+q)


--------------------
Corey Quilliam
(former) Linuxhelp.ca Administrator
cquilliam-AT-gmail-dot-com

Want to help out Linuxhelp.net? Check out our Linuxhelp Wiki and see if there are some articles you would like to submit!!

--
Ubuntu 8.04 64-bit - Work Laptop (HP-Compaq NC6400 Core2)
Kubuntu 8.04 64-bit - Desktop (HP m8120n QuadCore)
Ubuntu 6.04 - Server (I'm not upgrading this baby until support runs out in 2012) (Some old POS dell)
Go to the top of the page
 
+Quote Post
xedor
post Sep 23 2004, 08:08 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 23-September 04
Member No.: 3,822



wink.gif Thnx....u are the best....nano and pico are not on our redhat base server...but vi command works....and i remembered that guy seting up our server used that command.....BUT...here is another problem...when i type vi /etc/filename.ini or vi /etc/filename.cfg it opens blank and i know there should be something writen in these files...becouse i saw our "linux friend" add some lines in to them...and those lines need modification....But its inposible for me to change them if file opens and there is nothing writen in it...
SORY for bothering you....If you have a solution to my problem....help me again....AND YOU WILL GET MY BLESSING smile.gif tongue.gif

Xedor ...your Linux noob
Go to the top of the page
 
+Quote Post
michaelk
post Sep 23 2004, 02:07 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



What file are you trying to edit? Extensions are only for convienence in linux and you probably will not find any *.ini files. Some files have extensions and some do not so you really need to know the exact file name.

Example:
The file used to tell the OS what filesystems to mount is called fstab
The samba (smb protocol) is called smb.conf.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 12th December 2017 - 05:26 AM