![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Hi
I am trying to get the memory in the box using the belkow command. this is giving me the proper result in KB's. I would like to convert it into MB's. cat /proc/meminfo | grep MemTotal | cut -d " " -f6 32962184 But when I execute the below command, its throwing the error. expr ` \( cat /proc/meminfo | grep MemTotal | cut -d " " -f6 \) / 1024 ` -bash: (: command not found cut: ): No such file or directory cut: /: Is a directory cut: 1024: No such file or directory expr: missing operand Try `expr --help' for more information. Can somebody please suggest me how to do it? |
|
|||
|
or you can try this: Code:
vmstat -s -S M | egrep -ie 'memory|swap' |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Logic 9: About memory management and memory alert dialogs | Linux Bot | OS X Support RSS | 0 | 11-17-2009 05:00 PM |
| How to deal with lots of data in memory in order not to run out of memory | emitrax | High Level Programming | 1 | 05-28-2009 11:09 AM |
| How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9 | 0ktalmagik | SUN Solaris | 4 | 02-03-2009 09:37 AM |
| how to round up a memory address(memory alignment problem) | nj302 | High Level Programming | 6 | 09-21-2005 09:57 PM |
| Shared memory shortage but lots of unused memory | cjcamaro | UNIX for Advanced & Expert Users | 1 | 10-13-2004 06:10 PM |