Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating / Editing a file

Status
Not open for further replies.

kiv

Instructor
Jan 22, 2003
91
GB
Hi Guys,

I'm a linux newbie. I would like to know what command do I use to edit/create a file in linux command prompt.
I'm trying to edit the smb.conf file.

Any help appreciated!

Thanks
 
vi is the most common editor, though Linux might have a rather more newbie-friendly facility.
 
There are a number of choices, here's some for starters:

vi - powerful, but difficult to get used to at first

emacs - also very powerful, probably easier to get used to at first? May be called gmacs if you have the GNU version.

pico - a nice simple editor, the "pine composer" (pine is an email package)

joe - another simple editor

Some may or may not be available on your system.

Annihilannic.
 
Thanks, I realised that I can use emacs.

One more question....

I'm learning fedora core.
How do I find out things like the computer name, ip address, domain, etc?

Many Thanks

 
Have a look at the man pages (i.e. type man commandname) for uname, hostname and ifconfig.

Annihilannic.
 
I use Pico. It rocks, but you only have it if you've installed the PINE package.



Just my 2¢

"In order to start solving a problem, one must first identify its owner." --Me
--Greg
 
Oh... and if you just want to create a file, you can "touch" it.....

touch will create a 0-byte empty file for you.



Just my 2¢

"In order to start solving a problem, one must first identify its owner." --Me
--Greg
 
You don't say if you are running in GUI mode or not ...

If you are, there are graphical text editors that will have shipped with the distro (such as kate in KDE), which you may find easier than vi or emacs.

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
I use Pico. It rocks, but you only have it if you've installed the PINE package.

nano is a pico clone that works almost identically to it. It's generally installed by default these days.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top