LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-19-2001, 01:42 PM   #1
vicente
Member
 
Registered: Jul 2001
Location: Lx (Portugal)
Distribution: Mandrake workstation8.0,red hat 7.2 , peanut linux
Posts: 134

Rep: Reputation: 15
creating and writting files in rxvt


how can i create a file and writte it on rxvt?
 
Old 10-19-2001, 02:13 PM   #2
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
You could use vi or vim, but if you don't know this editor you will probably not be able to even close it once you've started it.

An easier editor is for example pico, but that might not be installed.



There are lots of other options.



Does it have to be in an rxvt/xterm? Can't you open an editor like nedit or something?
 
Old 10-19-2001, 02:31 PM   #3
vicente
Member
 
Registered: Jul 2001
Location: Lx (Portugal)
Distribution: Mandrake workstation8.0,red hat 7.2 , peanut linux
Posts: 134

Original Poster
Rep: Reputation: 15
yes it has to be in rxvt i dont have nothing else that i know... it was a linux for win install and the space was short .... and now all i have is rxvt thats why i need to create and writte files (text) on the rxvt i know how to make directories md but not files or writte then
 
Old 10-19-2001, 03:00 PM   #4
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
It sounds like you don't have the X windowing system running because you were short on disk space. But you also say that you have an rxvt and as far as I know, that's a window with a shell in it.

So I'm a bit confused if you're running X or not. If so, just try running nedit and also (if you have a bar full of buttons) try to find a text editor in the menu's.

What distribution did you install by the way?
 
Old 10-19-2001, 03:13 PM   #5
vicente
Member
 
Registered: Jul 2001
Location: Lx (Portugal)
Distribution: Mandrake workstation8.0,red hat 7.2 , peanut linux
Posts: 134

Original Poster
Rep: Reputation: 15
i have the mandrake 8.0 but i dont have kde or gnome i chose other on install when it boot goes to window maker loads the scream without window just the blue screen and informactions on the up rigth conner and on the left up cornner it has a small box with the number from the pages 1 to 4 on the left clik opens the selection menus but they are all enpty execpt the terminal rxvt and desemvolment that has python thats why i´m looking for the two comands to create and writte in a file from rxvt , i would really be greateful to you if you could told me thouse two comands if they exist i have tryed :w :e filename but does not work.
 
Old 10-19-2001, 03:17 PM   #6
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
if it's only a few lines of simple text you want to get into a textfile, then it is possible to use echo and then redirect the output to a file.



For example if I want to put the following text in a file:

Test line 1

Test line 2



I would do this in a shell:

echo Test line 1 > filename.txt

echo Test line 2 >> filename.txt



And then to look at the file you can of course use cat, more or less.



less filename.txt

cat filename.txt

more filename.txt

If all you want to do is create an empty file, you can do the following:
touch filename
 
Old 10-19-2001, 03:25 PM   #7
vicente
Member
 
Registered: Jul 2001
Location: Lx (Portugal)
Distribution: Mandrake workstation8.0,red hat 7.2 , peanut linux
Posts: 134

Original Poster
Rep: Reputation: 15
thanks you really help me thanks
 
Old 10-19-2001, 03:36 PM   #8
Griffon26
Member
 
Registered: Sep 2001
Location: The Netherlands
Distribution: Gentoo, Debian, Mandrake, LFS
Posts: 182

Rep: Reputation: 30
Quote:
Originally posted by Griffon26
And then to look at the file you can of course use cat, more or less.
Pun unintentional by the way =]
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in creating files saipraveen Linux - Newbie 3 08-08-2005 02:18 PM
Moving/Writting files to 2nd hard drive LiquidFlame Linux - Newbie 2 04-25-2005 04:40 PM
C programming help... about creating files borgy_t Programming 2 02-08-2005 04:35 AM
creating jar files linux_ub Programming 12 08-12-2004 04:34 PM
creating files Tigger Linux - Newbie 7 05-30-2003 04:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:38 AM.

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
Open Source Consulting | Domain Registration