What's inside my machine?
My wife and I recently got an iMac PowerPC running Linux Debian from a friend of hers at work. I have no experience with Linux and very little with Macs. I'd like to know how to find out how much memory (hard drive and RAM) I have on it. I know it's been upgraded, but I don't know how much. My wifes friend doesn't remember exactly because she's upgraded a couple of them since this one. Any help would be appreciated.
|
Hello,
You can use the free command to find out how much RAM your system has, along with how much is used, and how much is free. Read the man page for exact details and arguments using "man free." An example would be as follows: Code:
free -m Cheers, Josh |
Sorry, forgot about hard drive space :P
Just use the following command for hard drive space: Code:
df -h Josh |
You want to learn and use the LS command in the terminal. It will tell you all your directories and hardware.
So open your terminal and type in LSHW, it will look like this: Code:
name@computer:$ lshw Code:
lifebook EDIT: Also take a look at this link, It was my Wallpaper for the longest time and proved to be very helpful: COMMANDS LIST IMAGE |
|
Debian also has a "System Information" graphical tool. If you are using the default Gnome desktop, it is likely under System-->Administration on the menu.
It's based on the hardinfo program. |
Quote:
Code:
[mrcode@lappy486 ~]$ free -m EDIT: Also, free's -g option rounds down to the nearest gigabyte (e.g. in the example above with 3827 MiB, free -g would round down to 3 GiB). |
True... But most likely, in most cases, you want to know what memory is available of use to the user only, not all of it, unless you are a programmer, messing with the kernel, etc.
|
|
Quote:
Also keep in mind that lshw, lspci and lsusb are (except for the name) not related to ls, they are separate commands that come in separate packages. In my Slackware standard installation lsusb comes with usbutils, lspci comes with pciutils and lshw isn't even installed. In Debian it was the same, lshw had to be installed, it was not part of the standard install. |
Quote:
This reminds me of another thing that often bothers me, that's well explained here: Quote:
|
Quote:
|
All times are GMT -5. The time now is 05:45 AM. |