great for running off a bootable cd to identify hardware other os's can't detect
probably only works if you have one graphics card.
used this: http://www.cyberciti.biz/faq/howto-find-linux-vga-video-card-ram/
as reference
can be expanded, for example:
lspci -v -s `lspci | awk '/VGA/{print $1}'` | sed -n '/Memory.*, prefetchable/s/.*\[size=\([^]]\+\)\]/\1/p'
will just get the amount of prefetchable memory
compare to:
lshw -C display
which does not give the size (it does give byte ranges and you could calculate the size from that, but that's a pain)
Also uses a command which is not standard on linux; wheras lspci is a core utility provided by most systems
Show Sample Output
Displays only the VGA adapter/chipset being used for the graphics. In this case, it gave me the "M22" and "Mobility Radeon x300" that I needed to research a graphics issue I was having. Show Sample Output
Maps block devices to the PCIe nodes
for redhat systems works sometimes :S tested on dell poweredge r7+ systems
Useful for big systems with lots of cards. (Update: does not work with USB disks)
Get information pci All
One liner is based on this article: https://www.computerhope.com/issues/ch001307.htm Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: