As I noted, you'll have to format the final print out based on your desired format.
It's hard understand what's your desired output should look like...
What is it?
LINK:
Unix Manual (man page) pages in HTML
http://www.rt.com/man/
: More then 100 Commands found on a Unix system mannual pages can be obtained/refered here. Good Link.. (1 Reply)
Hi i want to ask how can i use perl and find a word in a text file, and also telling that which page doesn't it exist?
Eample: have a 10 pages text file, then i need to find 'Hello' in the file, and show that which page is it contain in.
Output: Hello contains 8 times in page 1, 3, 4, 7, 10... (9 Replies)
I am working on an embedded linux router and trying to make a webpage where the user can input a desired number of CPE and have a script update that number on the router. I have a CLI where I can log in and type the following to change that number
echo "20">/proc/net/dbrctl/maxcpe which then... (7 Replies)
Hi,
I need a way to grab the total combines since inception, total pages read from webalizer on my centos server or any other location (as long as since inception) and display the result live on my website
So with each visit it would be increasing, or perhaps live (ajax) not sure
But can... (0 Replies)
Is firefox complaining to anyone else that this is a Reported Attack Page!? I have used this site a million times and now it feels like complaining.
Fedora Manpages: Home (5 Replies)
Hi,
I need your help on the following Scenario :
Consider a file has 650 records and I need to split this file into 4 files having a maximum of 200 records in each of them and also for the first splitted file it should get appended with Page 1 as a trailer( Similarly for the second file, Page... (4 Replies)
Hi,
If there is an expert that can help:
I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C.
I want to add page numbers before each page break as in : Page XXXX
Regards antman (9 Replies)
Discussion started by: antman
9 Replies
LEARN ABOUT CENTOS
get_phys_pages
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)COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
GNU 2017-09-15 GET_PHYS_PAGES(3)