Sponsored Content
Full Discussion: command for debian OS
Top Forums UNIX for Dummies Questions & Answers command for debian OS Post 97737 by cbkihong on Thursday 2nd of February 2006 02:10:04 AM
Old 02-02-2006
Code:
[root@localhost ~]# cat /proc/meminfo | head
MemTotal:       514672 kB
MemFree:         26468 kB
Buffers:         85784 kB
Cached:         129196 kB
SwapCached:          0 kB
Active:         214056 kB
Inactive:       108524 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       514672 kB

 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

debian help

ok -- i've got the main install done, but when it goes to set up apt, i can't get to an http or ftp server to get the packages. seems my dns isn't working. problem is -- i have no way, or at least don't know a way, to get into any sort of gui, in which i think i could get it going myself. i'm stuck... (1 Reply)
Discussion started by: aenemated
1 Replies

2. UNIX for Dummies Questions & Answers

Getting ONLINE with Debian

ok i installed DEBIAN, and i cant get online.. so suppp. i ahve cable and it uses DHCP. so i ahd red hat :eek: and i jsut type modprobe 8139too, dhcpcd eth0 and... i think thats it.. im pretty sure thats it. but NOW. i install DEBIAN type out my modprobe it works yah yah. then i type out 'dhcpcd... (1 Reply)
Discussion started by: z3mo
1 Replies

3. Debian

Debian Help

It says that these files should be written to a floppy: Studenten Net Twente - Index of /debian/dists/etch/main/installer-i386/current/images/floppy/ How would all of those fit onto a floppy? Could I write a CD instead? (8 Replies)
Discussion started by: Bradj47
8 Replies

4. Debian

Debian Isos

Hi Guys, I'm new to Linux and Debian (Solaris is by bag). Anybody know where I can download a set of installation cd's/dvd's for Debian from (latest stable release please). Thanks in advance Marty (3 Replies)
Discussion started by: callmebob
3 Replies

5. Debian

Installing Debian

I'm trying to install Debian to a partition on my hard drive. I have my computer booted into Knoppix from a CD and I'm using it to download the necessary files to create an install disk that I can boot from (on a USB memory stick). Here is what someone on another forum told me to do: Are... (0 Replies)
Discussion started by: Ultrix
0 Replies

6. UNIX for Dummies Questions & Answers

Executing a tar command with the --exclude option in a Debian shell script.

Hi All, I am trying to execute the following tar command with two --exclude options to suppress extract of the two directories specified. Do I need to single quote the directory paths ?? Many thanks for your help. The relevant code excerpt from the script is: cd /var/www/${SITE} ... (7 Replies)
Discussion started by: daveu7
7 Replies

7. Debian

Need to upgrade Debian 7.8 to Debian 8.5 (Not 8.5)

Hello, I need to upgrade my Debian system 7.8 to 8.5 but by default via apt-get It moves to 8.6 version(latest stable version). I'm new to Debian so didn't figure out the solution. I've checked few suggestions over internet like editing apt source list file using snapshot archive. Please... (2 Replies)
Discussion started by: Mannu2525
2 Replies
GET_PHYS_PAGES(3)					     Linux Programmer's Manual						 GET_PHYS_PAGES(3)

NAME
get_phys_pages, get_avphys_pages - get total and available physical page counts SYNOPSIS
#include <sys/sysinfo.h> long int get_phys_pages(void); long int get_avphys_pages(void); DESCRIPTION
The function get_phys_pages() returns the total number of physical pages of memory available on the system. The function get_avphys_pages() returns the number of currently available physical pages of memory on the system. RETURN VALUE
On success, these functions return a nonnegative value as given in DESCRIPTION. On failure, they return -1 and set errno to indicate the cause of the error. ERRORS
ENOSYS The system could not provide the required information (possibly because the /proc filesystem was not mounted). CONFORMING TO
These functions are GNU extensions. NOTES
These functions obtain the required information by scanning the MemTotal and MemFree fields of /proc/meminfo. The following sysconf(3) calls provide a portable means of obtaining the same information as the functions described on this page. total_pages = sysconf(_SC_PHYS_PAGES); /* total pages */ avl_pages = sysconf(_SC_AVPHYS_PAGES); /* available pages */ EXAMPLE
The following example shows how get_phys_pages() and get_avphys_pages() can be used. #include <stdio.h> #include <stdlib.h> #include <sys/sysinfo.h> int main(int argc, char *argv[]) { printf("This system has %ld pages of physical memory and " "%ld pages of physical memory available. ", get_phys_pages(), get_avphys_pages()); exit(EXIT_SUCCESS); } SEE ALSO
sysconf(3) GNU
2019-03-06 GET_PHYS_PAGES(3)
All times are GMT -4. The time now is 01:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy