trying to copy the output of /sbin/lspci to another window
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 14.2 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 368
Rep:
trying to copy the output of /sbin/lspci to another window
I was attempting to add my computer to the HCL. When I got to the section that asks for the output of /sbin/lspci, I could not figure out how to cut the info out of my bash shell to paste into the form. I'm sure there is probably a simple way to do this but my search has turned up nothing. Perhaps my search string is improperly phrased?
and then open out.txt in a program you are more familiar with. The >> means write the output of this command to a file.
Please excuse me for interferring!
1. Could you please let me know what's the difference between > and >> commands? Till now I only used the simple form >.
2. However, the command
Code:
/sbin/lspci > out.txt
always overwrites the out.txt file and removes all of its former content. Do you know how to append instead of removing contents?
Grateful thanks!
Thats correct >> appends to the end of an existing file, or creates a new file if one does not exist. > will overwrite the old file.
There, I'm sure, are better references than this one, but here is a Good Link that I found googling for "stdout redirection tutorial" on google.com/linux
You can do some cool basic things using this kind of redirection so it is good to be familiar with it.
Last edited by uopjohnson; 11-17-2005 at 06:34 PM.
Also, if you just did it in an xterm, you just highlight the text you want to put into the page. Then, select in the page and press your center mouse button (mouse wheel button). Of course, that only works if you have a center mouse button.
Originally posted by IRIGHTI Of course, that only works if you have a center mouse button.
Actually if you are lacking a center button you can press the left and right buttons simultaneously to get the same result. It requires that "Emulate 3 buttons" be turned on in the xorg.conf file, but that is the default I believe.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.