The best place to ask programming/development questions, imo. UPDATE: stackoverflow is the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but a great reference for finding answers.

My Music (Nickleus)

20120904

ubuntu linux bash command of the day

export your hardware configuration as a html file:
sudo lshw -html > hardware.html

OUTPUT:

id:
laptop
description: Notebook
product: VPCSE2V9E (N/A)
vendor: Sony Corporation
version: C60A6XQR
serial: 27553856-5000146
width: 64 bits
capabilities: smbios-2.6 dmi-2.6 vsyscall32
configuration:
boot=normal
chassis=notebook
family=VAIO
sku=N/A
uuid=E029B046-7565-E111-8895-211273E37426
...


############


display amount of free and used memory in the system, in gigabytes:
free -g

OUTPUT:

             total       used       free     shared    buffers     cached
Mem:             7          3          4          0          0          1
-/+ buffers/cache:          2          5
Swap:            7          0          7



############

No comments:

Post a Comment