Computing.Net > Forums > Linux > Find hard drive and memory size

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Find hard drive and memory size

Reply to Message Icon

Name: MicrosoftMAN
Date: August 31, 2004 at 06:29:28 Pacific
OS: Gentoo Linux 2.6.8-r2
CPU/Ram: 167MHZ/I Need To Find Thi
Comment:

I know this sounds really n00b. But I wish to know with a currently installed version of Linux to find the size of my memory and hard drive. I can take it in bytes but I wish to hav e it in MB.



Sponsored Link
Ads by Google

Response Number 1
Name: anenefan
Date: August 31, 2004 at 10:04:14 Pacific
Reply:

Hi

man free
man ls

read -- should all be there.



0

Response Number 2
Name: C_Legend
Date: August 31, 2004 at 14:25:36 Pacific
Reply:

You may also want to look at "df" (just enter "df" or "man df" to learn what it does - shows partition information and other mounted filesystems).

Enter "cat /var/log/dmesg|more" to view all sorts of info about your machine (that which Linux has recognized), including memory and hard disk size.

Also, enter "cat /proc/meminfo" for memory-specific info (this should match up with data from "free" command.)

Good luck.


0

Response Number 3
Name: Wolfbone
Date: September 1, 2004 at 06:05:28 Pacific
Reply:

for disk in /proc/ide/hd*/capacity; do echo "${disk/\/proc\/ide\//}: $(($(cat $disk)*512/1000000)) MB"; done



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


How To Setup KDE 3.3 With... Transfer complete HD to a...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Find hard drive and memory size

Maxtor Ultra 100 Controller, cannot find hard drive attached to it. www.computing.net/answers/linux/maxtor-ultra-100-controller-cannot-find-hard-drive-attached-to-it/1910.html

adding 2nd hard drive and linux www.computing.net/answers/linux/adding-2nd-hard-drive-and-linux/5078.html

BUSlink USB hard drive and Linux www.computing.net/answers/linux/buslink-usb-hard-drive-and-linux/4765.html