This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes How to find the free(available) memory for a physical hard disk  in linux machine. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "How to find the free(available) memory for a physical hard disk  in linux machine." Watch "How to find the free(available) memory for a physical hard disk  in linux machine." New topic
Author

How to find the free(available) memory for a physical hard disk in linux machine.

RameshBabu
Greenhorn

Joined: Jul 29, 2005
Posts: 7
How to find the free(available) memory for physical hard disk in linux machine, not a logical disk. Is there any shell script or command is available .
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17038
    
  26

"dmesg" should show it when it prints out boot log's reported architecture. For redhat, it's also in /var/log/messages.

Also fdisk will do it, but that tends to be in sectors, not in GB, so a little interpretation is required. But it's also the most accurate.


An IDE is no substitute for an Intelligent Developer.
 
Have you checked out Aspose?
 
subject: How to find the free(available) memory for a physical hard disk in linux machine.
 
jQuery in Action, 3rd edition