Yields entries in the form of "/dev/hda1" etc. Use this if you are on a new system and don't know how the storage hardware (ide, sata, scsi, usb - with ever changing descriptors) is connected and which partitions are available. Far better than using "fdisk -l" on guessed device descriptors. Show Sample Output
Loop is needed if you have more then one card. Show Sample Output
This command lists the names of your USB devices connected and what file in /dev they are using. It's pretty useful if you don't have an automount option in your desktop or you don't have any graphical enviroment. Show Sample Output
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
This command tell you if your hardware is 32 or 64 bits even if you install a 32bits OS on a 64 bits hardware.
If your distro don't support the -q switch, try doing :
grep &>/dev/null '\<lm\>' /proc/cpuinfo && echo 64 bits || echo 32 bits
Find installed network devices. Show Sample Output
CPU flags: rm --> 16-bit processor (real mode) tm --> 32-bit processor (? mode) lm --> 64-bit processor (long mode)
Formats the output from `ioreg` into XML, then parses the XML with `xmllint`'s xpath feature. Show Sample Output
Avoids cat abuse ;)
Info about Bluetooth devices. Show Sample Output
Gets the Hardware UUID of the current machine using system_profiler. Show Sample Output
Prints the type of computer you have.
I think this should be used more in distros and other applications because it is so easy to get. This can also be asked by tutorials as an easy way to get your base hardware.
Some alternatives:
sudo dmidecode -s system-product-name
and
sudo smbios-sys-info-lite | sed -n 's/^Product Name: *\(.*\)/\1/p'
Show Sample Output
CPU flags: rm --> 16-bit processor (real mode) tm --> 32-bit processor (? mode) lm --> 64-bit processor (long mode)
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: