LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   im bored-quick question (https://www.linuxquestions.org/questions/linux-newbie-8/im-bored-quick-question-78991/)

headshot 08-04-2003 04:50 PM

im bored-quick question
 
I was just wondering... how do i paste text from the console into one of the message boxes? For instance suppose I wanted to display the results of ifconfig eth0 for you all to see, how do I do that? :D

I've tried a few things, but nothing works so far
thanx:D

fancypiper 08-04-2003 05:10 PM

You can do the normal linux copy/paste with the mouse from the x terminal to another application by left clicking and swiping the text you want in the x terminal, switch focus to the app you wish to paste into, and middle click will paste the text.

For a two button mouse, try both-click to sub for a middle click.

# Red Hat links
Red Hat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
Red Hat 8.0 Tips & Tricks

# Red Hat 7.3 down configuration commands
setup leads to several configuration tools

# Red Hat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
Manage software:
redhat-config-packages

# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project

GŠutama 08-04-2003 05:13 PM

There is a program called script that captures the output from the shell and saves it in a file.

try
Code:

man script
for more info.

The simplest way is just
Code:

script
That will give you a file called typescript in the current directory.

headshot 08-04-2003 05:16 PM

okay, thanx:D Coulda sworn I've done that, but I guess I'll give it try again after I get Slack downloaded. My RH7.3 has gone sllightly crazy on me, and I wanted to try something newer, so I'm gonna give Slackware a shot. Heard it's tough to setup, so this could get interesting:D

sickboylives 08-04-2003 08:26 PM

Another way to do this would be to issue the command
ifconfig eth0 > /path/file.txt

Doing this routes all the output to a text file at /path/file.txt. If the file does not exist, it will be created. Note, you will get NO output in your terminal by doing this, it will look like it didn't do anything. To demonstrate this, I'm copying the results of my ifconfig eth0 command which was saved in /root/ifconfig.txt (and I have changed the IP values/MAC address for my own protection).

-----------------------------------------------------------
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:X.X.X.X Bcast:X.X.X.X Mask:X.X.X.X
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6530 errors:0 dropped:0 overruns:0 frame:0
TX packets:6862 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3770236 (3.5 Mb) TX bytes:830364 (810.9 Kb)
Interrupt:5 Base address:0x1400

headshot 08-05-2003 09:15 PM

What they said:
What they meant:

"You will be fortunate if you can get him to work for you."
(We certainly never succeeded.)
There is no other employee with whom I can adequately compare him.
(Well, our rats aren't really employees...)
"Success will never spoil him."
(Well, at least not MUCH more.)
"One usually comes away from him with a good feeling."
(And such a sigh of relief.)
"His dissertation is the sort of work you don't expect to see these days;
in it he has definitely demonstrated his complete capabilities."
(And his IQ, as well.)
"He should go far."
(The farther the better.)
"He will take full advantage of his staff."
(He even has one of them mowing his lawn after work.)

hahaa it works:) I used FancyPiper's both-click thing beacuse it looked the simplest:), but thanx to everybody for helpin:)

yowwww 08-05-2003 11:43 PM

ctrl c and then ctrl v seems to work well too


All times are GMT -5. The time now is 07:49 PM.