LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-03-2004, 02:25 PM   #1
legend1079
Member
 
Registered: Mar 2004
Location: Pakistan
Posts: 49

Rep: Reputation: 15
Question how to edit file from bash commands


hay every body
i want to know that how can i edit the file in
consol ie command line
as done in dos

edit [filename]

is there any command in RH 2.4 kernel
consol

plz do let me know
 
Old 03-03-2004, 02:34 PM   #2
lsmith
Member
 
Registered: Feb 2004
Posts: 40

Rep: Reputation: 15
These are common text editors:

vi
emacs
nano

and you start them just like edit eg. emacs <filename>

You will have to learn how to use them though - they are not the same as windows editors. If you are running KDE you can maybe use 'kate' which is very windows like. Under gnome try 'gedit' which is windows like too.
 
Old 03-03-2004, 02:55 PM   #3
legend1079
Member
 
Registered: Mar 2004
Location: Pakistan
Posts: 49

Original Poster
Rep: Reputation: 15
thanx ismith
i havn't check them till now
short of time
r u sure these commands run w/o X server
 
Old 03-03-2004, 02:59 PM   #4
lsmith
Member
 
Registered: Feb 2004
Posts: 40

Rep: Reputation: 15
These three definitely will, but be warned again that they do not work like edit.

I recommend using emacs if it works as it is most windows like of those editors.
 
  


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
bash commands davatar Slackware 2 04-06-2005 04:05 AM
Perl or Bash Mass File Edit redneon Programming 1 10-14-2004 12:43 PM
Bash script to edit passwd without Root password? NetFlash Linux - Newbie 2 11-29-2003 05:22 PM
Using PuTTY ... what are edit commands? jmueller0823 Linux - Networking 9 05-07-2003 02:38 PM
Bash commands wprescott Linux - Distributions 6 04-27-2002 03:56 PM


All times are GMT -5. The time now is 11:18 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration