LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 10-04-2001, 07:47 AM   #1
Terri
Member
 
Registered: Jun 2001
Location: NY
Distribution: RedHat 7.2
Posts: 46

Rep: Reputation: 15
Very Basic Question


How do I edit a file in the console of Rethat 7?
 
Old 10-04-2001, 08:43 AM   #2
DoubleLetter
Member
 
Registered: Jun 2001
Location: Sharjah, United Arab Emirates
Distribution: Mandrake Linux 10.1
Posts: 132

Rep: Reputation: 15
You can use the standard vi editor.

type in the command:

vi filename

Be sure to read a vi tutorial first; it's quite hard to use.

To merely view a file, use:

less filename

there are other editors too, like pico, jed ....
 
Old 10-12-2001, 08:11 PM   #3
ejtbrown
Member
 
Registered: Mar 2001
Location: Santa Maria CA USA
Distribution: RedHat 6.0 & RedHat 7.0
Posts: 36

Rep: Reputation: 15
Another editor is emacs. It is quite a lot larger (and therefore slower, more cumbersome, etc) than vi or pico, but it will present and interface more familiar to Windows or Mac users. This having been said, it's still byzantine compared to, say notepad in Windows or SimpleText on the Mac. Reading up on how to use it is recommended.
 
Old 10-13-2001, 12:43 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
i use vi.. i think its probably the fastest once you get the hang of it... here is a pretty cool link with a quick tutorial of vi and how to use it http://www.eng.hawaii.edu/Tutor/vi.html
 
Old 10-14-2001, 11:54 PM   #5
toxic53
Member
 
Registered: Sep 2001
Posts: 30

Rep: Reputation: 15
You can also use pico its easier to use than vi if your not used to using vi you might want to try pico its almost like pine

so just type in:

pico filename


~Jesus~
 
Old 10-15-2001, 01:12 AM   #6
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
one more vote for vi - it's a pain to learn it at first ("esc-ZZ? what the hell is esc-ZZ?" ) but, once you get used to it, you just can't use anything else anymore. kinda like how i used to hate coffee when i was younger...
 
Old 10-17-2001, 01:31 AM   #7
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Midnight Commander is another one, just type "mc" in a console. There are a heap of good editors for linux, it's just a matter of trying them out and picking the one you like best.
 
  


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
Basic C++ question ooagentbender Programming 10 12-10-2003 09:34 PM
*very* basic c question usernamed Programming 9 08-21-2003 08:29 AM
Very basic question rajanr Linux - Newbie 2 07-23-2003 03:13 AM
A really basic question pilotgi Linux - Newbie 10 10-14-2002 04:57 PM
basic question kurgan70 Linux - General 2 12-06-2001 03:42 PM


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