initial commit
This commit is contained in:
9
chapter23/function_get_real_mem
Executable file
9
chapter23/function_get_real_mem
Executable file
@@ -0,0 +1,9 @@
|
||||
get_real_mem ()
|
||||
{
|
||||
# Query the system for the total real memory
|
||||
|
||||
echo "$(bootinfo -r)KB"
|
||||
|
||||
# lsattr -El sys0 -a realmem | awk '{print $2}' # Works too
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user